Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Berkeley DB version 4.5.20
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sleepycat.db
Class ReplicationStats

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

    public class ReplicationStats

extends Object

Replication statistics for a database environment.

Method Summary
`int` | `getBulkFills()` The number of times the bulk buffer filled up, forcing the buffer content to be sent.
`int` | `getBulkOverflows()` The number of times a record was bigger than the entire bulk buffer, and therefore had to be sent as a singleton.
`int` | `getBulkRecords()` The number of records added to a bulk buffer.
`int` | `getBulkTransfers()` The number of bulk buffers transferred (via a call to the application's `ReplicationTransport.send(com.sleepycat.db.Environment, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LogSequenceNumber, int, boolean, boolean, boolean, boolean)` method).
`int` | `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.
`int` | `getClientSvcMiss()` The number of "request" type messages received by this client that could not be processed, forcing the originating requestor to try sending the request to the master (or another client).
`int` | `getClientSvcReq()` The number of "request" type messages received by this client.
`int` | `getDupmasters()` The number of duplicate master conditions detected.
`int` | `getEgen()` The current election generation number.
`int` | `getElectionCurWinner()` The election winner.
`int` | `getElectionGen()` The election generation number.
`LogSequenceNumber` | `getElectionLsn()` The maximum LSN of election winner.
`int` | `getElectionNumSites()` The number sites expected to participate in elections.
`int` | `getElectionNumVotes()` The number of votes required to complete the election.
`int` | `getElectionPriority()` The election priority.
`int` | `getElections()` The number of elections held.
`int` | `getElectionSec()` The number of seconds the last election took (the total election time is this plus `getElectionUsec()`).
`int` | `getElectionStatus()` The current election phase (0 if no election is in progress).
`int` | `getElectionsWon()` The number of elections won.
`int` | `getElectionTiebreaker()` The election tiebreaker value.
`int` | `getElectionUsec()` The number of microseconds the last election took (the total election time is this plus `getElectionSec()`).
`int` | `getElectionVotes()` The votes received this election round.
`int` | `getEnvId()` The current environment ID.
`int` | `getEnvPriority()` The current environment priority.
`int` | `getGen()` The current generation number.
`int` | `getLogDuplicated()` The number of duplicate log records received.
`int` | `getLogQueued()` The number of log records currently queued.
`int` | `getLogQueuedMax()` The maximum number of log records ever queued at once.
`int` | `getLogQueuedTotal()` The total number of log records queued.
`int` | `getLogRecords()` The number of log records received and appended to the log.
`int` | `getLogRequested()` The number of log records missed and requested.
`int` | `getMaster()` The current master environment ID.
`int` | `getMasterChanges()` The number of times the master has changed.
`int` | `getMsgsBadgen()` The number of messages received with a bad generation number.
`int` | `getMsgsProcessed()` The number of messages received and processed.
`int` | `getMsgsRecover()` The number of messages ignored due to pending recovery.
`int` | `getMsgsSendFailures()` The number of failed message sends.
`int` | `getMsgsSent()` The number of messages sent.
`int` | `getNewsites()` The number of new site messages received.
`LogSequenceNumber` | `getNextLsn()` In replication environments configured as masters, the next LSN expected.
`int` | `getNextPages()` The next page number we expect to receive.
`int` | `getNumSites()` The number of sites believed to be in the replication group.
`int` | `getNumThrottles()` Transmission limited.
`int` | `getOutdated()` The number of outdated conditions detected.
`int` | `getPagesDuplicated()` The number of duplicate pages received.
`int` | `getPagesRecords()` The number of pages received and stored.
`int` | `getPagesRequested()` The number of pages missed and requested from the master.
`int` | `getStartupComplete()` The client site has completed its startup procedures and is now handling live records from the master.
`int` | `getStatus()` The current replication mode.
`int` | `getTxnsApplied()` The number of transactions applied.
`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.
`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.
`String` | `toString()` 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`

Method Detail

### getStatus

    public int getStatus()

  The current replication mode. Set to DB_REP_MASTER if the environment is a replication master, DB_REP_CLIENT if the environment is a replication client, or 0 if replication is not configured.

### getNextLsn

    public LogSequenceNumber getNextLsn()

  In replication environments configured as masters, the next LSN expected. In replication environments configured as clients, the next LSN to be used.

### 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.

### 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 detected.

### getEnvId

    public int getEnvId()

  The current environment ID.

### getEnvPriority

    public int getEnvPriority()

  The current environment priority.

### getBulkFills

    public int getBulkFills()

  The number of times the bulk buffer filled up, forcing the buffer content to be sent.

### getBulkOverflows

    public int 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 int getBulkRecords()

  The number of records added to a bulk buffer.

### getBulkTransfers

    public int getBulkTransfers()

  The number of bulk buffers transferred (via a call to the application's `ReplicationTransport.send(com.sleepycat.db.Environment, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LogSequenceNumber, int, boolean, boolean, boolean, boolean)` method).

### getClientRerequests

    public int 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 int 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 marked with `anywhere = true` in the invocation of the application's `ReplicationTransport.send(com.sleepycat.db.Environment, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LogSequenceNumber, int, boolean, boolean, boolean, boolean)` method may be sent to another client instead.)

### getClientSvcMiss

    public int getClientSvcMiss()

  The number of "request" type messages received by this client that could not be processed, forcing the originating requestor to try sending the request to the master (or another client).

### getGen

    public int getGen()

  The current generation number.

### getEgen

    public int getEgen()

  The current election generation number.

### getLogDuplicated

    public int getLogDuplicated()

  The number of duplicate log records received.

### getLogQueued

    public int getLogQueued()

  The number of log records currently queued.

### getLogQueuedMax

    public int getLogQueuedMax()

  The maximum number of log records ever queued at once.

### getLogQueuedTotal

    public int getLogQueuedTotal()

  The total number of log records queued.

### getLogRecords

    public int getLogRecords()

  The number of log records received and appended to the log.

### getLogRequested

    public int getLogRequested()

  The number of log records missed and requested.

### getMaster

    public int getMaster()

  The current master environment ID.

### getMasterChanges

    public int getMasterChanges()

  The number of times the master has changed.

### getMsgsBadgen

    public int getMsgsBadgen()

  The number of messages received with a bad generation number.

### getMsgsProcessed

    public int getMsgsProcessed()

  The number of messages received and processed.

### getMsgsRecover

    public int getMsgsRecover()

  The number of messages ignored due to pending recovery.

### getMsgsSendFailures

    public int getMsgsSendFailures()

  The number of failed message sends.

### getMsgsSent

    public int getMsgsSent()

  The number of messages sent.

### getNewsites

    public int getNewsites()

  The number of new site messages received.

### getNumSites

    public int getNumSites()

  The number of sites believed to be in the replication group.

### getNumThrottles

    public int getNumThrottles()

  Transmission limited. This indicates the number of times data transmission was stopped to limit the amount of data sent in response to a single call to `Environment.processReplicationMessage`.

### getOutdated

    public int getOutdated()

  The number of outdated conditions detected.

### getPagesDuplicated

    public int getPagesDuplicated()

  The number of duplicate pages received.

### getPagesRecords

    public int getPagesRecords()

  The number of pages received and stored.

### getPagesRequested

    public int getPagesRequested()

  The number of pages missed and requested from the master.

### getStartupComplete

    public int getStartupComplete()

  The client site has completed its startup procedures and is now handling live records from the master.

### getTxnsApplied

    public int getTxnsApplied()

  The number of transactions applied.

### getElections

    public int getElections()

  The number of elections held.

### getElectionsWon

    public int getElectionsWon()

  The number of elections won.

### getElectionCurWinner

    public int getElectionCurWinner()

  The election winner.

### getElectionGen

    public int getElectionGen()

  The election generation number.

### getElectionLsn

    public LogSequenceNumber getElectionLsn()

  The maximum LSN of election winner.

### getElectionNumSites

    public int getElectionNumSites()

  The number sites expected to participate in elections.

### getElectionNumVotes

    public int getElectionNumVotes()

  The number of votes required to complete the election.

### getElectionPriority

    public int getElectionPriority()

  The election priority.

### getElectionStatus

    public int getElectionStatus()

  The current election phase (0 if no election is in progress).

### getElectionTiebreaker

    public int getElectionTiebreaker()

  The election tiebreaker value.

### getElectionVotes

    public int getElectionVotes()

  The votes received this election round.

### getElectionSec

    public int getElectionSec()

  The number of seconds the last election took (the total election time is this plus `getElectionUsec()`).

### getElectionUsec

    public int getElectionUsec()

  The number of microseconds the last election took (the total election time is this plus `getElectionSec()`).

### toString

    public String toString()

  For convenience, the ReplicationStats class has a toString method that lists all the data fields.

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Berkeley DB version 4.5.20
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright(c) 1996-2006 Oracle Corporation - All rights reserved.