public _IRunnable_670(ClientObjectContainer _enclosing, Transaction trans, ByRef result) { this._enclosing = _enclosing; this.trans = trans; this.result = result; }
public LazyClientQueryResult(Transaction trans, ClientObjectContainer client, int queryResultID) : base(trans) { _client = client; _queryResultID = queryResultID; _iterator = new LazyClientIdIterator(this); }
public LazyClientQueryResult(Transaction trans, ClientObjectContainer client, int queryResultID) : base(trans) { _client = client; _queryResultID = queryResultID; _iterator = new LazyClientIdIterator(this); }
public ClientSlotCacheImpl(ClientObjectContainer clientObjectContainer) { IEventRegistry eventRegistry = EventRegistryFactory.ForObjectContainer(clientObjectContainer ); eventRegistry.Activated += new System.EventHandler<Db4objects.Db4o.Events.ObjectInfoEventArgs> (new _IEventListener4_29(this).OnEvent); }
internal ClientMessageDispatcherImpl(ClientObjectContainer client, Socket4Adapter a_socket, BlockingQueue synchronousMessageQueue, BlockingQueue asynchronousMessageQueue ) { _container = client; _synchronousMessageQueue = synchronousMessageQueue; _asynchronousMessageQueue = asynchronousMessageQueue; _socket = a_socket; }
internal ClientMessageDispatcherImpl(ClientObjectContainer client, Socket4Adapter a_socket, BlockingQueue synchronousMessageQueue, BlockingQueue asynchronousMessageQueue ) { _container = client; _synchronousMessageQueue = synchronousMessageQueue; _asynchronousMessageQueue = asynchronousMessageQueue; _socket = a_socket; }
/// <exception cref="System.Exception"></exception> public virtual void TestIsAliveInMultiThread() { IBlockingQueue4 barrier = new BlockingQueue(); client = (ClientObjectContainer) OpenNewSession(); client.MessageListener(new _IMessageListener_23(this, barrier)); var workThread = new Thread(new _IRunnable_38(), "Quering"); workThread.SetDaemon(true); workThread.Start(); barrier.Next(); client.IsAlive(); }
public virtual int PrefetchObjects(ClientObjectContainer container, Transaction trans , IIntIterator4 ids, object[] prefetched, int prefetchCount) { int count = 0; IList idsToGet = new ArrayList(); while (count < prefetchCount) { if (!ids.MoveNext()) { break; } int id = ids.CurrentInt(); if (id > 0) { object obj = trans.ObjectForIdFromCache(id); if (obj != null) { prefetched[count] = obj; } else { idsToGet.Add(Pair.Of(id, count)); } count++; } } if (idsToGet.Count > 0) { ByteArrayBuffer[] buffers = container.ReadObjectSlots(trans, IdArrayFor(idsToGet) ); for (int i = 0; i < buffers.Length; i++) { Pair pair = ((Pair)idsToGet[i]); int id = (((int)pair.first)); int position = (((int)pair.second)); object obj = trans.ObjectForIdFromCache(id); if (obj != null) { prefetched[position] = obj; } else { prefetched[position] = new ObjectReference(id).ReadPrefetch(trans, buffers[i], Const4 .AddToIdTree); } } } return(count); }
public virtual int PrefetchObjects(ClientObjectContainer container, Transaction trans , IIntIterator4 ids, object[] prefetched, int prefetchCount) { int count = 0; IList idsToGet = new ArrayList(); while (count < prefetchCount) { if (!ids.MoveNext()) { break; } int id = ids.CurrentInt(); if (id > 0) { object obj = trans.ObjectForIdFromCache(id); if (obj != null) { prefetched[count] = obj; } else { idsToGet.Add(Pair.Of(id, count)); } count++; } } if (idsToGet.Count > 0) { ByteArrayBuffer[] buffers = container.ReadObjectSlots(trans, IdArrayFor(idsToGet) ); for (int i = 0; i < buffers.Length; i++) { Pair pair = ((Pair)idsToGet[i]); int id = (((int)pair.first)); int position = (((int)pair.second)); object obj = trans.ObjectForIdFromCache(id); if (obj != null) { prefetched[position] = obj; } else { prefetched[position] = new ObjectReference(id).ReadPrefetch(trans, buffers[i], Const4 .AddToIdTree); } } } return count; }
internal BlobProcessor(ClientObjectContainer aStream) { stream = aStream; }
internal BlobProcessor(ClientObjectContainer aStream) { stream = aStream; }
public _IEventListener4_145(ClientObjectContainer _enclosing) { this._enclosing = _enclosing; }
public _ICodeBlock_27(ClientObjectContainer client) { this.client = client; }
public ClientHeartbeat(ClientObjectContainer container) { _container = container; _timer = new SimpleTimer(this, Frequency(container.ConfigImpl)); }
public _IClosure4_58(ClientObjectContainer client, BooleanByRef eventRaised, Lock4 Lock) { this.client = client; this.eventRaised = eventRaised; this.Lock = Lock; }
public ClientHeartbeat(ClientObjectContainer container) { _container = container; _timer = new SimpleTimer(this, Frequency(container.ConfigImpl)); }
public _IRunnable_670(ClientObjectContainer _enclosing, Transaction trans, ByRef result) { this._enclosing = _enclosing; this.trans = trans; this.result = result; }
public virtual void MessageListener(ClientObjectContainer.IMessageListener listener ) { _messageListener = listener; }
public ClientEventRegistryImpl(ClientObjectContainer container) { _container = container; }
public _IEventListener4_145(ClientObjectContainer _enclosing) { this._enclosing = _enclosing; }
public _ICodeBlock_27(ClientObjectContainer client1) { this.client1 = client1; }
internal ClientTransaction(ClientObjectContainer container, Transaction parentTransaction , IReferenceSystem referenceSystem) : base(container, parentTransaction, referenceSystem ) { _client = container; }
internal ClientTransaction(ClientObjectContainer container, Transaction parentTransaction , IReferenceSystem referenceSystem) : base(container, parentTransaction, referenceSystem ) { _client = container; }