Exemplo n.º 1
0
 public override void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     base.Serialize(writer);
     writer.Write(Database);
     writer.Write(Collection);
     writer.WriteObject(OpCode);
 }
Exemplo n.º 2
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.Write(_id);
     writer.Write(sliceCount);
     writer.Write(_crc);
     Common.Util.SerializationUtility.SerializeDictionary <long, long>(SliceMap, writer);
 }
Exemplo n.º 3
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.Write(_database);
     writer.Write(_shard);
     writer.WriteObject(_lastOperationID);
     writer.Write(_lastFullBackupDate);
 }
Exemplo n.º 4
0
 public override void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(_value);
     writer.Write((byte)_order);
     writer.Write((byte)_type);
     writer.Write((int)_actualType);
 }
Exemplo n.º 5
0
        public void Serialize(Common.Serialization.IO.CompactWriter writer)
        {
            writer.Write(_parameterList.Count);

            bool isByteArray = false;

            for (int i = 0; i < _parameterList.Count; i++)
            {
                isByteArray = _parameterList[i] != null && _parameterList[i].GetType() == typeof(byte[]);
                writer.Write(isByteArray);

                if (isByteArray)
                {
                    byte[] buffer = _parameterList[i] as byte[];
                    writer.Write(buffer.Length);
                    writer.Write(buffer);
                }
                else
                {
                    writer.WriteObject(_parameterList[i]);
                }
            }

            //writer.WriteObject(_parameterList);
        }
Exemplo n.º 6
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.Write(RequestId);
     writer.WriteObject(Source);
     writer.WriteObject(Message);
     writer.Write(NoResponse);
 }
Exemplo n.º 7
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.Write(LastHeartbeatTimestamp);
     writer.WriteObject(CurrentMembership);
     writer.Write(MissingHeartbeatsCounter);
     writer.WriteObject(LastOplogOperationId);
     writer.Write((int)CSStatus);
 }
Exemplo n.º 8
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.Write(_id);
     writer.Write(_chunkId);
     writer.Write(_isDisposable);
     writer.WriteObject(_nodeIpAddress);
     writer.Write(_isSocketServerDispose);
 }
Exemplo n.º 9
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.Write((byte)Type);
     writer.Write(DBName);
     writer.Write(ColName);
     writer.WriteObject(NodeInfo);
     writer.Write((byte)DistributionType);
 }
Exemplo n.º 10
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.Write(Id);
     writer.WriteObject(UID);
     writer.WriteObject(RequestingNode);
     writer.Write(ElectionTime);
     writer.WriteObject(AllowedDuration);
     writer.WriteObject(TimeTaken);
 }
Exemplo n.º 11
0
        public void Serialize(Common.Serialization.IO.CompactWriter writer)
        {
            writer.WriteObject(Storage);
            writer.WriteObject(Name);

            writer.WriteObject(UID);
            writer.Write((int)Mode);
            writer.Write((int)Type);
        }
Exemplo n.º 12
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(Name);
     SerializationUtility.SerializeDictionary <string, CollectionInfo>(Collections, writer);
     writer.WriteObject(UID);
     writer.Write((int)Mode);
     writer.WriteObject(PrimaryShard);
     writer.Write((int)Type);
 }
Exemplo n.º 13
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(DatabaseId);
     writer.WriteObject(DatabasePath);
     writer.Write(MaxFileSize);
     writer.WriteObject(LMDBProvider);
     writer.Write((int)StorageProviderType);
     writer.Write(IsMultiFileStore);
 }
Exemplo n.º 14
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(Name);
     writer.Write(Port);
     writer.WriteObject(Servers);
     writer.Write((int)Status);
     writer.Write(NodeHeartbeatInterval);
     writer.WriteObject(UID);
 }
Exemplo n.º 15
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(_name);
     writer.Write(_isHidden);
     writer.Write(Convert.ToInt32(_columnType));
     writer.Write(_data.Count);
     foreach (System.Collections.Generic.KeyValuePair <int, object> de in _data)
     {
         writer.Write(de.Key);
         writer.WriteObject(de.Value);
     }
 }
Exemplo n.º 16
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(Name);
     writer.Write(Port);
     writer.Write(IsReadOnly);
     writer.WriteObject(Primary);
     SerializationUtility.SerializeDictionary <Address, ServerInfo>(ConfigureNodes, writer);
     SerializationUtility.SerializeDictionary <Address, ServerInfo>(RunningNodes, writer);
     writer.WriteObject(UID);
     writer.Write(GracefullRemovalInProcess);
     writer.WriteObject(LastOperationId);
 }
Exemplo n.º 17
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.Write(_id);
     writer.Write(Database);
     writer.Write(Collection);
     writer.Write(DataCount);
     writer.Write(OverFlow);
     writer.Write(NextSegmentId);
     writer.Write(CRC);
     writer.Write(_mappedData);
     writer.Write((int)_dataType);
     writer.Write(_totalSize);
 }
Exemplo n.º 18
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.Write(_id);
     writer.Write(NumberOfSlices);
     writer.Write(Database);
     writer.Write(DatabaseCluster);
     writer.Write(_crc);
     writer.Write(_version);
     writer.Write(_creationDate);
     Common.Util.SerializationUtility.SerializeDictionary <long, long>(SegmentMap, writer);
     writer.Write((int)_recoveryType);
     writer.Write(_fullBackupDate);
     writer.Write((int)_state);
 }
Exemplo n.º 19
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(CollectionName);
     writer.WriteObject(Indices);
     writer.WriteObject(Caching);
     writer.WriteObject(DistributionStrategy);
     writer.Write(CollectionSize);
     writer.Write(MaxDocuments);
     writer.WriteObject(Shard);
     writer.WriteObject(EvictionConfiguration);
     writer.WriteObject(PartitionKey);
     writer.WriteObject(UID);
     writer.WriteObject(Path);
 }
Exemplo n.º 20
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(Address);
     writer.WriteObject(LastOperationId);
     writer.Write((int)Status);
     writer.WriteObject(UID);
 }
Exemplo n.º 21
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(Name);
     writer.WriteObject(ConfigServers);
     writer.WriteObject(Shards);
     writer.Write(UID);
 }
Exemplo n.º 22
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.Write((int)Type);
     writer.WriteObject(Configuration);
     writer.WriteObject(Metadata);
     writer.WriteObject(Command);
 }
Exemplo n.º 23
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(Name);
     writer.Write(Port);
     writer.WriteObject(Servers);
     writer.WriteObject(UID);
 }
Exemplo n.º 24
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(ElectionId);
     writer.Write((int)PollingResult);
     Common.Util.SerializationUtility.SerializeList <ServerNode>(Voters, writer);
     writer.WriteObject(ElectedPrimary);
 }
Exemplo n.º 25
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.Write(_status);
     if (_requestResult == null)
     {
         writer.Write(false);
     }
     else
     {
         writer.Write(true);
         writer.Write(_requestResult.Count);
         foreach (ClusteredArray <byte> value in _requestResult)
         {
             SerializationUtility.SerializeClusteredArray(value, writer);
         }
     }
 }
Exemplo n.º 26
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(Name);
     writer.WriteObject(Attributes);
     writer.WriteObject(CachePolicy);
     writer.Write(JournalEnabled);
     writer.WriteObject(UID);
 }
Exemplo n.º 27
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.Write(_rowCount);
     // writer.Write(_columnCount);
     foreach (System.Collections.Generic.KeyValuePair <string, RecordColumn> kvp in _dataStringIndex)
     {
         writer.WriteObject(kvp.Key);
         writer.WriteObject(kvp.Value);
     }
 }
Exemplo n.º 28
0
 public virtual void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.Write(_operationId);
     writer.Write(_rowId);
     writer.Write(_collection);
 }
Exemplo n.º 29
0
 public override void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.Write((byte)type);
 }
Exemplo n.º 30
0
 public void Serialize(Common.Serialization.IO.CompactWriter writer)
 {
     writer.Write((int)this.EnvironmentOpenFlags);
     writer.Write(MaxCollections);
     writer.Write(MaxReaders);
 }