コード例 #1
0
ファイル: BackupFIle.cs プロジェクト: waqashaneef/NosDB
 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();
 }
コード例 #2
0
ファイル: DiffTrackObject.cs プロジェクト: waqashaneef/NosDB
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     _database           = reader.ReadString();
     _shard              = reader.ReadString();
     _lastOperationID    = reader.ReadObject() as OperationId;
     _lastFullBackupDate = reader.ReadDateTime();
 }
コード例 #3
0
ファイル: HeartbeatInfo.cs プロジェクト: waqashaneef/NosDB
 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();
 }
コード例 #4
0
ファイル: ElectionId.cs プロジェクト: waqashaneef/NosDB
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     Id              = reader.ReadInt64();
     UID             = reader.ReadObject() as string;
     RequestingNode  = reader.ReadObject() as ServerNode;
     ElectionTime    = reader.ReadDateTime();
     AllowedDuration = (TimeSpan)reader.ReadObject();
     TimeTaken       = (TimeSpan)reader.ReadObject();
 }