Esempio n. 1
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     LastHeartbeatTimestamp   = reader.ReadDateTime();
     CurrentMembership        = reader.ReadObject() as Membership;
     MissingHeartbeatsCounter = reader.ReadInt32();
     LastOplogOperationId     = reader.ReadObject() as OperationId;
     CSStatus = (ConnectivityStatus)reader.ReadInt32();
 }
Esempio n. 2
0
        public void Deserialize(Common.Serialization.IO.CompactReader reader)
        {
            Storage = reader.ReadObject() as StorageConfiguration;
            Name    = reader.ReadObject() as string;

            UID  = reader.ReadObject() as string;
            Mode = (DatabaseMode)reader.ReadInt32();
            Type = (DatabaseType)reader.ReadInt32();
        }
Esempio n. 3
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     Name    = reader.ReadObject() as string;
     Port    = reader.ReadInt32();
     Servers = reader.ReadObject() as ServerNodes;
     Status  = (NodeRole)reader.ReadInt32();
     NodeHeartbeatInterval = reader.ReadInt32();
     UID = reader.ReadObject() as string;
 }
Esempio n. 4
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     Name         = reader.ReadObject() as string;
     _collections = SerializationUtility.DeserializeDictionary <string, CollectionInfo>(reader);
     UID          = reader.ReadObject() as string;
     Mode         = (DatabaseMode)reader.ReadInt32();
     PrimaryShard = reader.ReadObject() as string;
     Type         = (DatabaseType)reader.ReadInt32();
 }
Esempio n. 5
0
        public void Deserialize(Common.Serialization.IO.CompactReader reader)
        {
            _name       = reader.ReadObject() as string;
            _isHidden   = reader.ReadBoolean();
            _columnType = (ColumnType)reader.ReadInt32();

            int count = reader.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                _data.Add(reader.ReadInt32(), reader.ReadObject());
            }
        }
Esempio n. 6
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     _id             = reader.ReadInt64();
     NumberOfSlices  = reader.ReadInt64();
     Database        = reader.ReadString();
     DatabaseCluster = reader.ReadString();
     _crc            = reader.ReadInt64();
     Version         = reader.ReadString();
     _creationDate   = reader.ReadDateTime();
     SegmentMap      = Common.Util.SerializationUtility.DeserializeDictionary <long, long>(reader);
     _recoveryType   = (RecoveryJobType)reader.ReadInt32();
     _fullBackupDate = reader.ReadDateTime();
     _state          = (RecoveryFileState)reader.ReadInt32();
 }
Esempio n. 7
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     Address         = reader.ReadObject() as Address;
     LastOperationId = reader.ReadObject() as OperationId;
     Status          = (Status)reader.ReadInt32();
     UID             = reader.ReadObject() as string;
 }
Esempio n. 8
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     ElectionId     = reader.ReadObject() as ElectionId;
     PollingResult  = (Result)reader.ReadInt32();
     Voters         = Common.Util.SerializationUtility.DeserializeList <ServerNode>(reader);// reader.ReadObject() as IList<ServerNode>;
     ElectedPrimary = reader.ReadObject() as ServerNode;
 }
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     Name    = reader.ReadObject() as string;
     Port    = reader.ReadInt32();
     Servers = reader.ReadObject() as ServerNodes;
     UID     = reader.ReadObject() as string;
 }
Esempio n. 10
0
 public override void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     _value      = reader.ReadObject() as IComparable;
     _order      = (SortOrder)reader.ReadByte();
     _type       = (FieldDataType)reader.ReadByte();
     _actualType = (TypeCode)reader.ReadInt32();
 }
Esempio n. 11
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     Type          = (ReplicationType)reader.ReadInt32();
     Configuration = reader.ReadObject() as ClusterConfiguration;
     Metadata      = reader.ReadObject() as ClusterInfo;
     Command       = reader.ReadObject() as ManagementCommand;
 }
Esempio n. 12
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     _id                    = reader.ReadString();
     _chunkId               = reader.ReadInt32();
     _isDisposable          = reader.ReadBoolean();
     _nodeIpAddress         = reader.ReadObject() as Address;
     _isSocketServerDispose = reader.ReadBoolean();
 }
Esempio n. 13
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     DatabaseId          = reader.ReadObject() as string;
     DatabasePath        = reader.ReadObject() as string;
     MaxFileSize         = reader.ReadInt64();
     LMDBProvider        = reader.ReadObject() as LMDBConfiguration;
     StorageProviderType = (ProviderType)reader.ReadInt32();
     IsMultiFileStore    = reader.ReadBoolean();
 }
Esempio n. 14
0
        public void Deserialize(Common.Serialization.IO.CompactReader reader)
        {
            _status = reader.ReadInt32();
            bool isResultAvailable = reader.ReadBoolean();

            if (isResultAvailable)
            {
                int count = reader.ReadInt32();
                _requestResult = new ClusteredList <ClusteredArray <byte> >(count);
                for (int i = 0; i < count; i++)
                {
                    _requestResult.Add(SerializationUtility.DeserializeClusteredArray <byte>(reader));
                }
            }
            else
            {
                _requestResult = null;
            }
        }
Esempio n. 15
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     Name                      = reader.ReadObject() as string;
     Port                      = reader.ReadInt32();
     IsReadOnly                = reader.ReadBoolean();
     Primary                   = reader.ReadObject() as ServerInfo;
     ConfigureNodes            = SerializationUtility.DeserializeDictionary <Address, ServerInfo>(reader);
     RunningNodes              = SerializationUtility.DeserializeDictionary <Address, ServerInfo>(reader);
     UID                       = reader.ReadObject() as string;
     GracefullRemovalInProcess = reader.ReadBoolean();
     LastOperationId           = reader.ReadObject() as OperationId;
 }
Esempio n. 16
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     _rowCount = reader.ReadInt32();
     //this.ColumnCount = reader.ReadInt32();
     for (int i = 0; i < this.ColumnCount; i++)
     {
         string       key = reader.ReadObject() as string;
         RecordColumn col = reader.ReadObject() as RecordColumn;
         _dataStringIndex.Add(key, col);
         _dataIntIndex.Add(i, col);
     }
 }
Esempio n. 17
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     _id           = reader.ReadInt64();
     Database      = reader.ReadString();
     Collection    = reader.ReadString();
     DataCount     = reader.ReadInt64();
     OverFlow      = reader.ReadBoolean();
     NextSegmentId = reader.ReadInt64();
     _crc          = reader.ReadInt64();
     _mappedData   = reader.ReadInt64();
     _dataType     = (DataSliceType)reader.ReadInt32();
     _totalSize    = reader.ReadInt64();
 }
Esempio n. 18
0
        public void Deserialize(Common.Serialization.IO.CompactReader reader)
        {
            int length = reader.ReadInt32();

            _parameterList = new ArrayList();
            bool isByteArray = false;

            for (int i = 0; i < length; i++)
            {
                isByteArray = reader.ReadBoolean();
                if (isByteArray)
                {
                    int count = reader.ReadInt32();
                    _parameterList.Add(reader.ReadBytes(count));
                }
                else
                {
                    _parameterList.Add(reader.ReadObject());
                }
            }

            //_parameterList = (ArrayList)reader.ReadObject();
        }
Esempio n. 19
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     RequestingNode = reader.ReadObject() as ServerNode;
     Sourcenode     = reader.ReadObject() as ServerNode;
     NodeVote       = (Vote)reader.ReadInt32();
 }
Esempio n. 20
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     Name     = reader.ReadObject() as string;
     Priority = reader.ReadInt32();
     UID      = reader.ReadObject() as string;
 }
Esempio n. 21
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     ServerName = reader.ReadObject() as Address;
     ElectionId = reader.ReadObject() as ElectionId;
     ChangeType = (MembershipChangeType)reader.ReadInt32();
 }
Esempio n. 22
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     IP          = reader.ReadObject() as string;
     Port        = reader.ReadInt32();
     DbmClusters = reader.ReadObject() as DbmClustersConfiguration;
 }
Esempio n. 23
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     ReplicationType         = reader.ReadString();
     ReplicationTimeInterval = (int)reader.ReadInt32();
     ReplicationBulkSize     = (int)reader.ReadInt32();
 }
Esempio n. 24
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     RequestingServerInfo = reader.ReadObject() as ServerInfo;
     ElectionId           = reader.ReadObject() as ElectionId;
     ElectionType         = (ElectionType)reader.ReadInt32();
 }
Esempio n. 25
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     Name = reader.ReadObject() as string;
     _distributionSequence = reader.ReadInt32();
     _bucket = reader.ReadObject() as HashMapBucket;
 }
Esempio n. 26
0
 public virtual void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     MessageType = (MessageType)reader.ReadInt32();
     Payload     = reader.ReadObject();
 }