Class ReplicationStats

java.lang.Object
com.sleepycat.db.ReplicationStats

public class ReplicationStats extends Object
Replication statistics for a database environment.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The environment is configured as a replication client, as reported by getStatus().
    static final int
    The environment is configured as a replication master, as reported by getStatus().
    static final int
    Replication is not configured for this environment, as reported by getStatus().
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    The number of times the bulk buffer filled up, forcing the buffer content to be sent.
    long
    The number of times a record was bigger than the entire bulk buffer, and therefore had to be sent as a singleton.
    long
    The number of records added to a bulk buffer.
    long
    The number of bulk buffers transferred (via a call to the application's ReplicationTransport function).
    long
    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.
    long
    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).
    long
    The number of "request" type messages received by this client.
    int
    The number of duplicate master conditions originally detected at this site.
    int
    The election generation number for the current or next election.
    long
    The environment ID of the winner of the current or last election.
    int
    The master data generation number of the winner of the current or last election.
    int
    The master generation number of the winner of the current or last election.
    The maximum LSN of the winner of the current or last election.
    int
    The number of sites responding to this site during the current election.
    int
    The number of votes required in the current or last election.
    int
    The priority of the winner of the current or last election.
    long
    The number of elections held.
    int
    The number of seconds the last election took (the total election time is this value plus getElectionUsec()).
    int
    The current election phase (0 if no election is in progress).
    long
    The number of elections won.
    int
    The tiebreaker value of the winner of the current or last election.
    int
    The number of microseconds the last election took (the total election time is this value plus getElectionSec()).
    int
    The number of votes received during the current election.
    long
    The current environment ID.
    int
    The current environment priority.
    int
    The current master generation number.
    long
    The number of lease validity checks.
    long
    The number of invalid lease validity checks.
    long
    The number of lease refresh attempts during lease validity checks.
    long
    The number of live messages sent while using leases.
    long
    The number of duplicate log records received.
    long
    The number of log records currently queued.
    long
    The maximum number of log records ever queued at once.
    long
    The total number of log records queued.
    long
    The number of log records received and appended to the log.
    long
    The number of times log records were missed and requested.
    long
    The current master environment ID.
    long
    The number of times the master has changed.
    int
    The number of seconds of the longest lease (the total lease time is this value plus getMaxLeaseUsec()).
    int
    The number of microseconds of the longest lease (the total lease time is this value plus getMaxLeaseSec()).
    The LSN of the maximum permanent log record, or 0 if there are no permanent log records.
    long
    The number of messages received with a bad generation number.
    long
    The number of messages received and processed.
    long
    The number of messages ignored due to pending recovery.
    long
    The number of failed message sends.
    long
    The number of messages sent.
    long
    The number of new site messages received.
    In replication environments configured as masters, the next LSN to be used.
    int
    The next page number we expect to receive.
    int
    The number of sites used in the last election.
    long
    Transmission limited.
    long
    The number of outdated conditions detected.
    long
    The number of duplicate pages received.
    long
    The number of pages received and stored.
    long
    The number of pages missed and requested from the master.
    long
    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).
    boolean
    The client site has completed its startup procedures and is now handling live records from the master.
    int
    The current replication mode.
    long
    The 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.
    int
    The page number of the first page we have after missing pages being waited for, or 0 if no pages are currently missing.
    For convenience, the ReplicationStats class has a toString method that lists all the data fields.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • REP_CLIENT

      public static final int REP_CLIENT
      The environment is configured as a replication client, as reported by getStatus().
      See Also:
    • REP_MASTER

      public static final int REP_MASTER
      The environment is configured as a replication master, as reported by getStatus().
      See Also:
    • REP_NONE

      public static final int REP_NONE
      Replication is not configured for this environment, as reported by getStatus().
      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()
      The current replication mode. Set to one of REP_MASTER, REP_CLIENT or REP_NONE.
    • getNextLsn

      public LogSequenceNumber getNextLsn()
      In replication environments configured as masters, the next LSN to be used. In replication environments configured as clients, the next LSN expected.
    • getWaitingLsn

      public LogSequenceNumber 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

      public LogSequenceNumber 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's ReplicationTransport function).
    • 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 to getClientSvcMiss().)
    • 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's ReplicationTransport.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 to Environment.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

      public LogSequenceNumber 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 plus getElectionUsec()).
    • getElectionUsec

      public int getElectionUsec()
      The number of microseconds the last election took (the total election time is this value plus getElectionSec()).
    • getMaxLeaseSec

      public int getMaxLeaseSec()
      The number of seconds of the longest lease (the total lease time is this value plus getMaxLeaseUsec()).
    • getMaxLeaseUsec

      public int getMaxLeaseUsec()
      The number of microseconds of the longest lease (the total lease time is this value plus getMaxLeaseSec()).
    • toString

      public String toString()
      For convenience, the ReplicationStats class has a toString method that lists all the data fields.
      Overrides:
      toString in class Object