Example #1
0
 public _IRunnable_111(MCommittedInfo _enclosing, CallbackObjectInfoCollections callbackInfos
                       , int dispatcherID)
 {
     this._enclosing    = _enclosing;
     this.callbackInfos = callbackInfos;
     this.dispatcherID  = dispatcherID;
 }
Example #2
0
 private void AddCommittedInfoMsg(CallbackObjectInfoCollections committedInfo, LocalTransaction
                                  serverTransaction)
 {
     lock (ContainerLock())
     {
         Msg.CommittedInfo.SetTransaction(serverTransaction);
         MCommittedInfo message = Msg.CommittedInfo.Encode(committedInfo, ServerMessageDispatcher
                                                               ().DispatcherID());
         message.SetMessageDispatcher(ServerMessageDispatcher());
         ServerMessageDispatcher().Server().AddCommittedInfoMsg(message);
     }
 }
Example #3
0
        public virtual MCommittedInfo Encode(CallbackObjectInfoCollections callbackInfo,
                                             int dispatcherID)
        {
            ByteArrayOutputStream os = new ByteArrayOutputStream();

            PrimitiveCodec.WriteInt(os, dispatcherID);
            byte[]         bytes         = EncodeInfo(callbackInfo, os);
            MCommittedInfo committedInfo = (MCommittedInfo)GetWriterForLength(Transaction(),
                                                                              bytes.Length + Const4.IntLength);

            committedInfo._payLoad.Append(bytes);
            return(committedInfo);
        }
Example #4
0
 public _IRunnable_111(MCommittedInfo _enclosing, CallbackObjectInfoCollections callbackInfos
     , int dispatcherID)
 {
     this._enclosing = _enclosing;
     this.callbackInfos = callbackInfos;
     this.dispatcherID = dispatcherID;
 }
Example #5
0
 internal InternalIDEncoder(MCommittedInfo _enclosing)
 {
     this._enclosing = _enclosing;
 }
Example #6
0
 internal FrozenObjectInfoEncoder(MCommittedInfo _enclosing)
 {
     this._enclosing = _enclosing;
 }
		public virtual void AddCommittedInfoMsg(MCommittedInfo message)
		{
			_committedInfosQueue.Add(message);
		}
Example #8
0
		private IObjectInfoCollection DecodeObjectInfoCollection(ByteArrayInputStream @is
			, MCommittedInfo.IObjectInfoEncoder encoder)
		{
			Collection4 collection = new Collection4();
			while (true)
			{
				IObjectInfo info = encoder.Decode(@is);
				if (null == info)
				{
					break;
				}
				collection.Add(info);
			}
			return new ObjectInfoCollectionImpl(collection);
		}
Example #9
0
		private void EncodeObjectInfoCollection(ByteArrayOutputStream os, IObjectInfoCollection
			 collection, MCommittedInfo.IObjectInfoEncoder encoder)
		{
			IEnumerator iter = collection.GetEnumerator();
			while (iter.MoveNext())
			{
				IObjectInfo obj = (IObjectInfo)iter.Current;
				encoder.Encode(os, obj);
			}
			PrimitiveCodec.WriteLong(os, -1);
		}
Example #10
0
 internal FrozenObjectInfoEncoder(MCommittedInfo _enclosing)
 {
     this._enclosing = _enclosing;
 }
Example #11
0
 internal InternalIDEncoder(MCommittedInfo _enclosing)
 {
     this._enclosing = _enclosing;
 }