public class ReplicatedEnvironmentStats
extends java.lang.Object
implements java.io.Serializable
The statistics are logically grouped into four categories. Viewing the
statistics through toString()
displays
the values in these categories, as does viewing the stats through the RepJEMonitor
mbean. Viewing the stats with toStringVerbose()
will provide more detailed
descriptions of the stats and stat categories.
The current categories are:
Modifier and Type | Method and Description |
---|---|
long |
getAckWaitMs()
The total time in milliseconds that the master spent waiting for the
Durability.ReplicaAckPolicy to be satisfied during successful transaction
commits. |
long |
getLastCommitTimestamp()
The commit timestamp of the last committed transaction on the master, or
0 if not known or this node is not the master.
|
long |
getLastCommitVLSN()
The VLSN of the last committed transaction on the master, or 0 if not
known or this node is not the master.
|
int |
getNFeedersCreated()
The number of Feeder threads since this node was started.
|
int |
getNFeedersShutdown()
The number of Feeder threads that were shut down, either because this
node, or the Replica terminated the connection.
|
long |
getNMaxReplicaLag()
The lag (in VLSNs) associated with the replica that's farthest behind in
replaying the replication stream.
|
java.lang.String |
getNMaxReplicaLagName()
The name of the replica that's farthest behind in replaying the
replication stream.
|
long |
getNProtocolBytesRead()
The number of bytes of Replication Stream read over the network.
|
long |
getNProtocolBytesWritten()
The number of Replication Stream bytes written over the network.
|
long |
getNProtocolEntriesWrittenOldVersion()
Returns the number of messages containing log entries that were written
to the replication stream using the previous log format to support
replication to a replica running an earlier version during an upgrade.
|
long |
getNProtocolMessageBatches()
The number of Replication Stream message batches written to the network.
|
long |
getNProtocolMessagesBatched()
The number of Replication Stream messages that were written as part
of a message batch instead of being written individually.
|
long |
getNProtocolMessagesRead()
The number of Replication Stream messages read over the network.
|
long |
getNProtocolMessagesWritten()
The total number of Replication Stream messages written over the
network.
|
long |
getNReplayAborts()
The number of abort records which were replayed while the node was in
the Replica state.
|
long |
getNReplayCommitAcks()
The number of commit log records that needed to be acknowledged to the
Master by this node when it was a Replica.
|
long |
getNReplayCommitNoSyncs()
The number of commitNoSync() calls executed when satisfying transaction
commit acknowledgment requests from the Master.
|
long |
getNReplayCommits()
The number of commit log records that were replayed by this node when
it was a Replica.
|
long |
getNReplayCommitSyncs()
The number of commitSync() calls executed when satisfying transaction
commit acknowledgment requests from the Master.
|
long |
getNReplayCommitWriteNoSyncs()
The number of commitNoSync() calls executed when satisfying transaction
commit acknowledgment requests from the Master.
|
long |
getNReplayGroupCommitMaxExceeded()
The number of group commits that were initiated due the
max group size being
exceeded. |
long |
getNReplayGroupCommits()
The number of group commit operations.
|
long |
getNReplayGroupCommitTimeouts()
The number of group commits that were initiated due to the
group timeout
interval being exceeded. |
long |
getNReplayGroupCommitTxns()
The number of replay transaction commits that were part of a group
commit operation.
|
long |
getNReplayLNs()
The number of data records (creation, update, deletion) which were
replayed while the node was in the Replica state.
|
long |
getNReplayNameLNs()
The number of NameLN records which were replayed while the node was in
the Replica state.
|
long |
getNTxnsAcked()
The number of transactions that were successfully acknowledged based
upon the
Durability.ReplicaAckPolicy policy associated with the
transaction commit. |
long |
getNTxnsNotAcked()
The number of transactions that were not acknowledged as required by the
Durability.ReplicaAckPolicy policy associated with the transaction commit. |
long |
getProtocolBytesReadRate()
Bytes read throughput, in terms of bytes received from the replication
network channels per second.
|
long |
getProtocolBytesWriteRate()
Bytes written throughput, in terms of bytes written to the replication
network channels per second.
|
long |
getProtocolMessageReadRate()
Incoming replication message throughput, in terms of messages received
from the replication network channels per second.
|
long |
getProtocolMessageWriteRate()
Outgoing message throughput, in terms of message written to the
replication network channels per second.
|
long |
getProtocolReadNanos()
The number of nanoseconds spent reading from the network channel.
|
long |
getProtocolWriteNanos()
The number of nanoseconds spent writing to the network channel.
|
long |
getReplayElapsedTxnTime()
The total elapsed time in milliseconds spent replaying committed and
aborted transactions.
|
long |
getReplayMaxCommitProcessingNanos()
The maximum time taken to replay a transaction commit operation.
|
long |
getReplayMinCommitProcessingNanos()
The minimum time taken to replay a transaction commit operation.
|
long |
getReplayTotalCommitProcessingNanos()
The total time spent to replay all commit operations.
|
java.util.SortedMap<java.lang.String,java.lang.Long> |
getReplicaDelayMap()
Returns a map from replica node name to the delay, in milliseconds,
between when a transaction was committed on the master and when the
master learned that the transaction was processed on the replica, if
known.
|
java.util.SortedMap<java.lang.String,java.lang.Long> |
getReplicaLastCommitTimestampMap()
Returns a map from replica node name to the commit timestamp of the last
committed transaction that was processed on the replica, if known.
|
java.util.SortedMap<java.lang.String,java.lang.Long> |
getReplicaLastCommitVLSNMap()
Returns a map from replica node name to the VLSN of the last committed
transaction that was processed on the replica, if known.
|
java.util.SortedMap<java.lang.String,java.lang.Long> |
getReplicaVLSNLagMap()
Returns a map from replica node name to the lag, in VLSNs, between the
replication state of the replica and the master, if known.
|
java.util.SortedMap<java.lang.String,java.lang.Long> |
getReplicaVLSNRateMap()
Returns a map from replica node name to a moving average of the rate, in
VLSNs per minute, that the replica is processing replication data, if
known.
|
java.util.Map<java.lang.String,java.lang.String> |
getTips() |
long |
getTotalTxnMs()
The total time in milliseconds spent in replicated transactions.
|
long |
getTrackerLagConsistencyWaitMs()
The total time (in msec) for which a Replica held back a
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the TimeConsistencyPolicy . |
long |
getTrackerLagConsistencyWaits()
The number of times a Replica held back a
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the TimeConsistencyPolicy . |
long |
getTrackerVLSNConsistencyWaitMs()
The total time (in msec) for which a Replica held back a
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the CommitPointConsistencyPolicy . |
long |
getTrackerVLSNConsistencyWaits()
The number of times a Replica held back a
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the CommitPointConsistencyPolicy . |
long |
getVLSNRate()
A moving average of the rate replication data is being generated by the
master, in VLSNs per minute, or 0 if not known or this node is not the
master.
|
java.lang.String |
toString()
Returns a string representation of the statistics.
|
java.lang.String |
toStringVerbose() |
public int getNFeedersCreated()
public int getNFeedersShutdown()
getNFeedersCreated()
public long getNMaxReplicaLag()
public java.lang.String getNMaxReplicaLagName()
public java.util.SortedMap<java.lang.String,java.lang.Long> getReplicaDelayMap()
public java.util.SortedMap<java.lang.String,java.lang.Long> getReplicaLastCommitTimestampMap()
public java.util.SortedMap<java.lang.String,java.lang.Long> getReplicaLastCommitVLSNMap()
public java.util.SortedMap<java.lang.String,java.lang.Long> getReplicaVLSNLagMap()
public java.util.SortedMap<java.lang.String,java.lang.Long> getReplicaVLSNRateMap()
public long getNTxnsAcked()
Durability.ReplicaAckPolicy
policy associated with the
transaction commit.public long getNTxnsNotAcked()
Durability.ReplicaAckPolicy
policy associated with the transaction commit.
These transactions resulted in InsufficientReplicasException
or
InsufficientAcksException
.public long getTotalTxnMs()
getAckWaitMs()
.public long getAckWaitMs()
Durability.ReplicaAckPolicy
to be satisfied during successful transaction
commits.getTotalTxnMs()
public long getLastCommitVLSN()
public long getLastCommitTimestamp()
public long getVLSNRate()
public long getNReplayCommits()
public long getNReplayCommitAcks()
NReplayCommits
statistic, if the Durability
policy used by transactions on the master calls for transaction commit
acknowledgments and the Replica is current with respect to the Master.public long getNReplayCommitSyncs()
public long getNReplayCommitNoSyncs()
public long getNReplayCommitWriteNoSyncs()
public long getNReplayAborts()
public long getNReplayNameLNs()
public long getNReplayLNs()
public long getReplayElapsedTxnTime()
public long getNReplayGroupCommitTimeouts()
group timeout
interval
being exceeded.public long getNReplayGroupCommitMaxExceeded()
max group size
being
exceeded.public long getNReplayGroupCommitTxns()
public long getNReplayGroupCommits()
public long getReplayMinCommitProcessingNanos()
public long getReplayMaxCommitProcessingNanos()
public long getReplayTotalCommitProcessingNanos()
public long getNProtocolBytesRead()
If the node has served as both a Replica and Master since it was first started, the number represents the sum total of all Feeder related network activity, as well as Replica network activity.
public long getNProtocolMessagesRead()
If the node has served as both a Replica and Master since it was first started, the number represents the sum total of all Feeder related network activity, as well as Replica network activity.
public long getNProtocolBytesWritten()
If the node has served as both a Replica and Master since it was first started, the number represents the sum total of all Feeder related network activity, as well as Replica network activity.
public long getNProtocolMessagesBatched()
getNProtocolMessagesWritten()
getNProtocolMessageBatches()
public long getNProtocolMessageBatches()
getNProtocolMessagesBatched()
public long getNProtocolMessagesWritten()
If the node has served as both a Replica and Master since it was first started, the number represents the sum total of all Feeder related network activity, as well as Replica network activity.
public long getProtocolReadNanos()
If the node has served as both a Replica and Master since it was first started, the number represents the sum total of all Feeder related network activity, as well as Replica network activity.
public long getProtocolWriteNanos()
If the node has served as both a Replica and Master since it was first started, the number represents the sum total of all Feeder related network activity, as well as Replica network activity.
public long getProtocolMessageReadRate()
If the node has served as both a Replica and Master since it was first started, the number represents the message reading rate over all Feeder related network activity, as well as Replica network activity.
public long getProtocolMessageWriteRate()
If the node has served as both a Replica and Master since it was first started, the number represents the message writing rate over all Feeder related network activity, as well as Replica network activity.
public long getProtocolBytesReadRate()
If the node has served as both a Replica and Master since it was first started, the number represents the bytes reading rate over all Feeder related network activity, as well as Replica network activity.
public long getProtocolBytesWriteRate()
If the node has served as both a Replica and Master since it was first started, the number represents the bytes writing rate over all Feeder related network activity, as well as Replica network activity.
public long getNProtocolEntriesWrittenOldVersion()
public long getTrackerLagConsistencyWaits()
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the TimeConsistencyPolicy
.public long getTrackerLagConsistencyWaitMs()
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the TimeConsistencyPolicy
.public long getTrackerVLSNConsistencyWaits()
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the CommitPointConsistencyPolicy
.public long getTrackerVLSNConsistencyWaitMs()
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the CommitPointConsistencyPolicy
.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringVerbose()
public java.util.Map<java.lang.String,java.lang.String> getTips()
Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.