/// <summary>
 /// Initializes a new instance of the PrimaryReplicatorStatus class.
 /// </summary>
 /// <param name="replicationQueueStatus">Details about the replication queue on the primary replicator.</param>
 /// <param name="remoteReplicators">The status of all the active and idle secondary replicators that the primary is
 /// aware of.</param>
 public PrimaryReplicatorStatus(
     ReplicatorQueueStatus replicationQueueStatus           = default(ReplicatorQueueStatus),
     IEnumerable <RemoteReplicatorStatus> remoteReplicators = default(IEnumerable <RemoteReplicatorStatus>))
     : base(
         Common.ReplicaRole.Primary)
 {
     this.ReplicationQueueStatus = replicationQueueStatus;
     this.RemoteReplicators      = remoteReplicators;
 }
 /// <summary>
 /// Initializes a new instance of the SecondaryIdleReplicatorStatus class.
 /// </summary>
 /// <param name="replicationQueueStatus">Details about the replication queue on the secondary replicator.</param>
 /// <param name="lastReplicationOperationReceivedTimeUtc">The last time-stamp (UTC) at which a replication operation
 /// was received from the primary.
 /// UTC 0 represents an invalid value, indicating that a replication operation message was never received.
 /// </param>
 /// <param name="isInBuild">Value that indicates whether the replica is currently being built.</param>
 /// <param name="copyQueueStatus">Details about the copy queue on the secondary replicator.</param>
 /// <param name="lastCopyOperationReceivedTimeUtc">The last time-stamp (UTC) at which a copy operation was received
 /// from the primary.
 /// UTC 0 represents an invalid value, indicating that a copy operation message was never received.
 /// </param>
 /// <param name="lastAcknowledgementSentTimeUtc">The last time-stamp (UTC) at which an acknowledgment was sent to the
 /// primary replicator.
 /// UTC 0 represents an invalid value, indicating that an acknowledgment message was never sent.
 /// </param>
 public SecondaryIdleReplicatorStatus(
     ReplicatorQueueStatus replicationQueueStatus     = default(ReplicatorQueueStatus),
     DateTime?lastReplicationOperationReceivedTimeUtc = default(DateTime?),
     bool?isInBuild = default(bool?),
     ReplicatorQueueStatus copyQueueStatus     = default(ReplicatorQueueStatus),
     DateTime?lastCopyOperationReceivedTimeUtc = default(DateTime?),
     DateTime?lastAcknowledgementSentTimeUtc   = default(DateTime?))
     : base(
         Common.ReplicaRole.IdleSecondary,
         replicationQueueStatus,
         lastReplicationOperationReceivedTimeUtc,
         isInBuild,
         copyQueueStatus,
         lastCopyOperationReceivedTimeUtc,
         lastAcknowledgementSentTimeUtc)
 {
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the SecondaryReplicatorStatus class.
 /// </summary>
 /// <param name="kind">The role of a replica of a stateful service.</param>
 /// <param name="replicationQueueStatus">Provides various statistics of the queue used in the service fabric
 /// replicator.
 /// Contains information about the service fabric replicator like the replication/copy queue utilization, last
 /// acknowledgement received timestamp, etc.
 /// Depending on the role of the replicator, the properties in this type imply different meanings.
 /// </param>
 /// <param name="lastReplicationOperationReceivedTimeUtc">The last time-stamp (UTC) at which a replication operation
 /// was received from the primary.
 /// UTC 0 represents an invalid value, indicating that a replication operation message was never received.
 /// </param>
 /// <param name="isInBuild">Value that indicates whether the replica is currently being built.</param>
 /// <param name="copyQueueStatus">Provides various statistics of the queue used in the service fabric replicator.
 /// Contains information about the service fabric replicator like the replication/copy queue utilization, last
 /// acknowledgement received timestamp, etc.
 /// Depending on the role of the replicator, the properties in this type imply different meanings.
 /// </param>
 /// <param name="lastCopyOperationReceivedTimeUtc">The last time-stamp (UTC) at which a copy operation was received
 /// from the primary.
 /// UTC 0 represents an invalid value, indicating that a copy operation message was never received.
 /// </param>
 /// <param name="lastAcknowledgementSentTimeUtc">The last time-stamp (UTC) at which an acknowledgment was sent to the
 /// primary replicator.
 /// UTC 0 represents an invalid value, indicating that an acknowledgment message was never sent.
 /// </param>
 public SecondaryReplicatorStatus(
     ReplicaRole?kind,
     ReplicatorQueueStatus replicationQueueStatus     = default(ReplicatorQueueStatus),
     DateTime?lastReplicationOperationReceivedTimeUtc = default(DateTime?),
     bool?isInBuild = default(bool?),
     ReplicatorQueueStatus copyQueueStatus     = default(ReplicatorQueueStatus),
     DateTime?lastCopyOperationReceivedTimeUtc = default(DateTime?),
     DateTime?lastAcknowledgementSentTimeUtc   = default(DateTime?))
     : base(
         kind)
 {
     this.ReplicationQueueStatus = replicationQueueStatus;
     this.LastReplicationOperationReceivedTimeUtc = lastReplicationOperationReceivedTimeUtc;
     this.IsInBuild       = isInBuild;
     this.CopyQueueStatus = copyQueueStatus;
     this.LastCopyOperationReceivedTimeUtc = lastCopyOperationReceivedTimeUtc;
     this.LastAcknowledgementSentTimeUtc   = lastAcknowledgementSentTimeUtc;
 }