//ISession session = sessions.remove(id); //session.close(); //session = null; public virtual System.Collections.Generic.IList <string> GetSessionDescriptions(System.Collections.IDictionary connectionManagers) { System.Collections.Generic.IList <string> l = new System.Collections.Generic.List < string>(); System.Collections.Generic.IEnumerator <string> iterator = sessions.Keys.GetEnumerator (); string sid = null; NeoDatis.Odb.Core.Transaction.ISession session = null; NeoDatis.Odb.Core.Server.Connection.ConnectionManager cm = null; System.Text.StringBuilder buffer = null; while (iterator.MoveNext()) { sid = iterator.Current; session = sessions[sid]; cm = (NeoDatis.Odb.Core.Server.Connection.ConnectionManager)connectionManagers[session .GetBaseIdentification()]; buffer = new System.Text.StringBuilder("Session " + sid + " : " + session.ToString ()); if (cm != null) { buffer.Append(" - Number of connections=" + cm.GetNbConnections()); buffer.Append(cm.GetConnectionDescriptions()); } l.Add(buffer.ToString()); } return(l); }
public Connection(NeoDatis.Odb.Core.Server.Connection.ConnectionManager connectionManager , string connectionId, NeoDatis.Odb.Core.Layers.Layer3.IStorageEngine storageEngine ) { this.connectionManager = connectionManager; this.id = connectionId; this.storageEngine = storageEngine; this.baseIdentifier = storageEngine.GetBaseIdentification().GetIdentification(); this.oidsLockedForUpdate = new System.Collections.Generic.Dictionary <NeoDatis.Odb.OID , long>(); actions = new int[NeoDatis.Odb.Core.Server.Connection.ConnectionAction.GetNumberOfActions ()]; }
public DefaultServerConnection(NeoDatis.Odb.Core.Server.Connection.ConnectionManager connectionManager, string connectionId, NeoDatis.Odb.Core.Layers.Layer3.IStorageEngine storageEngine) { this.connectionManager = connectionManager; this.id = connectionId; this.storageEngine = storageEngine; this.baseIdentifier = storageEngine.GetBaseIdentification().GetIdentification(); this.oidsLockedForUpdate = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<NeoDatis.Odb.OID , long>(); actions = new int[NeoDatis.Odb.Core.Server.Connection.ConnectionAction.GetNumberOfActions ()]; }
public DefaultServerConnection(NeoDatis.Odb.Core.Server.Connection.ConnectionManager connectionManager, string connectionId, NeoDatis.Odb.Core.Layers.Layer3.IStorageEngine storageEngine) { this.connectionManager = connectionManager; this.id = connectionId; this.storageEngine = storageEngine; this.baseIdentifier = storageEngine.GetBaseIdentification().GetIdentification(); this.oidsLockedForUpdate = new NeoDatis.Tool.Wrappers.Map.OdbHashMap <NeoDatis.Odb.OID , long>(); actions = new int[NeoDatis.Odb.Core.Server.Connection.ConnectionAction.GetNumberOfActions ()]; }
public Connection(NeoDatis.Odb.Core.Server.Connection.ConnectionManager connectionManager , string connectionId, NeoDatis.Odb.Core.Layers.Layer3.IStorageEngine storageEngine ) { this.connectionManager = connectionManager; this.id = connectionId; this.storageEngine = storageEngine; this.baseIdentifier = storageEngine.GetBaseIdentification().GetIdentification(); this.oidsLockedForUpdate = new System.Collections.Generic.Dictionary<NeoDatis.Odb.OID , long>(); actions = new int[NeoDatis.Odb.Core.Server.Connection.ConnectionAction.GetNumberOfActions ()]; }