Package com.sleepycat.db
Class ReplicationStats
java.lang.Object
com.sleepycat.db.ReplicationStats
Replication statistics for a database environment.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe environment is configured as a replication client, as reported bygetStatus().static final intThe environment is configured as a replication master, as reported bygetStatus().static final intReplication is not configured for this environment, as reported bygetStatus(). -
Method Summary
Modifier and TypeMethodDescriptionlongThe number of times the bulk buffer filled up, forcing the buffer content to be sent.longThe number of times a record was bigger than the entire bulk buffer, and therefore had to be sent as a singleton.longThe number of records added to a bulk buffer.longThe number of bulk buffers transferred (via a call to the application'sReplicationTransportfunction).longThe number of times this client site received a "re-request" message, indicating that a request it previously sent to another client could not be serviced by that client.longThe number of "request" type messages received by this client that could not be processed, forcing the originating requester to try sending the request to the master (or another client).longThe number of "request" type messages received by this client.intThe number of duplicate master conditions originally detected at this site.intgetEgen()The election generation number for the current or next election.longThe environment ID of the winner of the current or last election.intThe master data generation number of the winner of the current or last election.intThe master generation number of the winner of the current or last election.The maximum LSN of the winner of the current or last election.intThe number of sites responding to this site during the current election.intThe number of votes required in the current or last election.intThe priority of the winner of the current or last election.longThe number of elections held.intThe number of seconds the last election took (the total election time is this value plusgetElectionUsec()).intThe current election phase (0 if no election is in progress).longThe number of elections won.intThe tiebreaker value of the winner of the current or last election.intThe number of microseconds the last election took (the total election time is this value plusgetElectionSec()).intThe number of votes received during the current election.longgetEnvId()The current environment ID.intThe current environment priority.intgetGen()The current master generation number.longThe number of lease validity checks.longThe number of invalid lease validity checks.longThe number of lease refresh attempts during lease validity checks.longThe number of live messages sent while using leases.longThe number of duplicate log records received.longThe number of log records currently queued.longThe maximum number of log records ever queued at once.longThe total number of log records queued.longThe number of log records received and appended to the log.longThe number of times log records were missed and requested.longThe current master environment ID.longThe number of times the master has changed.intThe number of seconds of the longest lease (the total lease time is this value plusgetMaxLeaseUsec()).intThe number of microseconds of the longest lease (the total lease time is this value plusgetMaxLeaseSec()).The LSN of the maximum permanent log record, or 0 if there are no permanent log records.longThe number of messages received with a bad generation number.longThe number of messages received and processed.longThe number of messages ignored due to pending recovery.longThe number of failed message sends.longThe number of messages sent.longThe number of new site messages received.In replication environments configured as masters, the next LSN to be used.intThe next page number we expect to receive.intThe number of sites used in the last election.longTransmission limited.longThe number of outdated conditions detected.longThe number of duplicate pages received.longThe number of pages received and stored.longThe number of pages missed and requested from the master.longThe number of times the client had to delay the start of a cache flush operation (initiated by the master for an impending checkpoint) because it was missing some previous log record(s).booleanThe client site has completed its startup procedures and is now handling live records from the master.intThe current replication mode.longThe number of transactions applied.The LSN of the first log record we have after missing log records being waited for, or 0 if no log records are currently missing.intThe page number of the first page we have after missing pages being waited for, or 0 if no pages are currently missing.toString()For convenience, the ReplicationStats class has a toString method that lists all the data fields.
-
Field Details
-
REP_CLIENT
public static final int REP_CLIENTThe environment is configured as a replication client, as reported bygetStatus().- See Also:
-
REP_MASTER
public static final int REP_MASTERThe environment is configured as a replication master, as reported bygetStatus().- See Also:
-
REP_NONE
public static final int REP_NONEReplication is not configured for this environment, as reported bygetStatus().- See Also:
-
-
Method Details
-
getStartupComplete
public boolean getStartupComplete()The client site has completed its startup procedures and is now handling live records from the master. -
getLogQueued
public long getLogQueued()The number of log records currently queued. -
getStatus
public int getStatus() -
getNextLsn
In replication environments configured as masters, the next LSN to be used. In replication environments configured as clients, the next LSN expected. -
getWaitingLsn
The LSN of the first log record we have after missing log records being waited for, or 0 if no log records are currently missing. -
getMaxPermLsn
The LSN of the maximum permanent log record, or 0 if there are no permanent log records. -
getNextPages
public int getNextPages()The next page number we expect to receive. -
getWaitingPages
public int getWaitingPages()The page number of the first page we have after missing pages being waited for, or 0 if no pages are currently missing. -
getDupmasters
public int getDupmasters()The number of duplicate master conditions originally detected at this site. -
getEnvId
public long getEnvId()The current environment ID. -
getEnvPriority
public int getEnvPriority()The current environment priority. -
getBulkFills
public long getBulkFills()The number of times the bulk buffer filled up, forcing the buffer content to be sent. -
getBulkOverflows
public long getBulkOverflows()The number of times a record was bigger than the entire bulk buffer, and therefore had to be sent as a singleton. -
getBulkRecords
public long getBulkRecords()The number of records added to a bulk buffer. -
getBulkTransfers
public long getBulkTransfers()The number of bulk buffers transferred (via a call to the application'sReplicationTransportfunction). -
getClientRerequests
public long getClientRerequests()The number of times this client site received a "re-request" message, indicating that a request it previously sent to another client could not be serviced by that client. (Compare togetClientSvcMiss().) -
getClientSvcReq
public long getClientSvcReq()The number of "request" type messages received by this client. ("Request" messages are usually sent from a client to the master, but a message passed with the anywhere parameter set to true in the invocation of the application'sReplicationTransport.send()function may be sent to another client instead.) -
getClientSvcMiss
public long getClientSvcMiss()The number of "request" type messages received by this client that could not be processed, forcing the originating requester to try sending the request to the master (or another client). -
getGen
public int getGen()The current master generation number. -
getEgen
public int getEgen()The election generation number for the current or next election. -
getLeaseChk
public long getLeaseChk()The number of lease validity checks. -
getLeaseChkMisses
public long getLeaseChkMisses()The number of invalid lease validity checks. -
getLeaseChkRefresh
public long getLeaseChkRefresh()The number of lease refresh attempts during lease validity checks. -
getLeaseSends
public long getLeaseSends()The number of live messages sent while using leases. -
getLogDuplicated
public long getLogDuplicated()The number of duplicate log records received. -
getLogQueuedMax
public long getLogQueuedMax()The maximum number of log records ever queued at once. -
getLogQueuedTotal
public long getLogQueuedTotal()The total number of log records queued. -
getLogRecords
public long getLogRecords()The number of log records received and appended to the log. -
getLogRequested
public long getLogRequested()The number of times log records were missed and requested. -
getMaster
public long getMaster()The current master environment ID. -
getMasterChanges
public long getMasterChanges()The number of times the master has changed. -
getMsgsBadgen
public long getMsgsBadgen()The number of messages received with a bad generation number. -
getMsgsProcessed
public long getMsgsProcessed()The number of messages received and processed. -
getMsgsRecover
public long getMsgsRecover()The number of messages ignored due to pending recovery. -
getMsgsSendFailures
public long getMsgsSendFailures()The number of failed message sends. -
getMsgsSent
public long getMsgsSent()The number of messages sent. -
getNewsites
public long getNewsites()The number of new site messages received. -
getNumSites
public int getNumSites()The number of sites used in the last election. -
getNumThrottles
public long getNumThrottles()Transmission limited. This indicates the number of times that data transmission was stopped to limit the amount of data sent in response to a single call toEnvironment.processReplicationMessage. -
getOutdated
public long getOutdated()The number of outdated conditions detected. -
getPagesDuplicated
public long getPagesDuplicated()The number of duplicate pages received. -
getPagesRecords
public long getPagesRecords()The number of pages received and stored. -
getPagesRequested
public long getPagesRequested()The number of pages missed and requested from the master. -
getTxnsApplied
public long getTxnsApplied()The number of transactions applied. -
getStartSyncDelayed
public long getStartSyncDelayed()The number of times the client had to delay the start of a cache flush operation (initiated by the master for an impending checkpoint) because it was missing some previous log record(s). -
getElections
public long getElections()The number of elections held. -
getElectionsWon
public long getElectionsWon()The number of elections won. -
getElectionCurWinner
public long getElectionCurWinner()The environment ID of the winner of the current or last election. -
getElectionGen
public int getElectionGen()The master generation number of the winner of the current or last election. -
getElectionDatagen
public int getElectionDatagen()The master data generation number of the winner of the current or last election. -
getElectionLsn
The maximum LSN of the winner of the current or last election. -
getElectionNumSites
public int getElectionNumSites()The number of sites responding to this site during the current election. -
getElectionNumVotes
public int getElectionNumVotes()The number of votes required in the current or last election. -
getElectionPriority
public int getElectionPriority()The priority of the winner of the current or last election. -
getElectionStatus
public int getElectionStatus()The current election phase (0 if no election is in progress). -
getElectionTiebreaker
public int getElectionTiebreaker()The tiebreaker value of the winner of the current or last election. -
getElectionVotes
public int getElectionVotes()The number of votes received during the current election. -
getElectionSec
public int getElectionSec()The number of seconds the last election took (the total election time is this value plusgetElectionUsec()). -
getElectionUsec
public int getElectionUsec()The number of microseconds the last election took (the total election time is this value plusgetElectionSec()). -
getMaxLeaseSec
public int getMaxLeaseSec()The number of seconds of the longest lease (the total lease time is this value plusgetMaxLeaseUsec()). -
getMaxLeaseUsec
public int getMaxLeaseUsec()The number of microseconds of the longest lease (the total lease time is this value plusgetMaxLeaseSec()). -
toString
For convenience, the ReplicationStats class has a toString method that lists all the data fields.
-