public class ReplicationStats
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
REP_CLIENT |
The environment is configured as a replication client, as reported by
getStatus() . |
static int |
REP_MASTER |
The environment is configured as a replication master, as reported by
getStatus() . |
static int |
REP_NONE |
Replication is not configured for this environment, as reported by
getStatus() . |
Modifier and Type | Method | Description |
---|---|---|
long |
getBulkFills() |
The number of times the bulk buffer filled up, forcing the buffer content to be sent.
|
long |
getBulkOverflows() |
The number of times a record was bigger than the entire bulk buffer,
and therefore had to be sent as a singleton.
|
long |
getBulkRecords() |
The number of records added to a bulk buffer.
|
long |
getBulkTransfers() |
The number of bulk buffers transferred (via a call to the
application's
ReplicationTransport function). |
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.
|
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).
|
long |
getClientSvcReq() |
The number of "request" type messages received by this client.
|
int |
getDupmasters() |
The number of duplicate master conditions originally detected at this site.
|
int |
getEgen() |
The election generation number for the current or next election.
|
long |
getElectionCurWinner() |
The environment ID of the winner of the current or last election.
|
int |
getElectionDatagen() |
The master data generation number of the winner of the current or last election.
|
int |
getElectionGen() |
The master generation number of the winner of the current or last election.
|
LogSequenceNumber |
getElectionLsn() |
The maximum LSN of the winner of the current or last election.
|
int |
getElectionNumSites() |
The number of sites responding to this site during the current election.
|
int |
getElectionNumVotes() |
The number of votes required in the current or last election.
|
int |
getElectionPriority() |
The priority of the winner of the current or last election.
|
long |
getElections() |
The number of elections held.
|
int |
getElectionSec() |
The number of seconds the last election took (the total election time
is this value plus
getElectionUsec() ). |
int |
getElectionStatus() |
The current election phase (0 if no election is in progress).
|
long |
getElectionsWon() |
The number of elections won.
|
int |
getElectionTiebreaker() |
The tiebreaker value of the winner of the current or last election.
|
int |
getElectionUsec() |
The number of microseconds the last election took (the total election
time is this value plus
getElectionSec() ). |
int |
getElectionVotes() |
The number of votes received during the current election.
|
long |
getEnvId() |
The current environment ID.
|
int |
getEnvPriority() |
The current environment priority.
|
long |
getExtDuplicated() |
The number of duplicate external file messages.
|
long |
getExtRecords() |
The number of external file messages.
|
long |
getExtRereq() |
The number of re-requested external file messages.
|
long |
getExtUpdateRereq() |
The number of re-requested external file update messages.
|
int |
getGen() |
The current master generation number.
|
long |
getLeaseChk() |
The number of lease validity checks.
|
long |
getLeaseChkMisses() |
The number of invalid lease validity checks.
|
long |
getLeaseChkRefresh() |
The number of lease refresh attempts during lease validity checks.
|
long |
getLeaseSends() |
The number of live messages sent while using leases.
|
long |
getLogDuplicated() |
The number of duplicate log records received.
|
long |
getLogQueued() |
The number of log records currently queued.
|
long |
getLogQueuedMax() |
The maximum number of log records ever queued at once.
|
long |
getLogQueuedTotal() |
The total number of log records queued.
|
long |
getLogRecords() |
The number of log records received and appended to the log.
|
long |
getLogRequested() |
The number of times log records were missed and requested.
|
long |
getMaster() |
The current master environment ID.
|
long |
getMasterChanges() |
The number of times the master has changed.
|
int |
getMaxLeaseSec() |
The number of seconds of the longest lease (the total lease time is
this value plus
getMaxLeaseUsec() ). |
int |
getMaxLeaseUsec() |
The number of microseconds of the longest lease (the total lease time
is this value plus
getMaxLeaseSec() ). |
LogSequenceNumber |
getMaxPermLsn() |
The LSN of the maximum permanent log record, or 0 if there are no permanent log records.
|
long |
getMsgsBadgen() |
The number of messages received with a bad generation number.
|
long |
getMsgsProcessed() |
The number of messages received and processed.
|
long |
getMsgsRecover() |
The number of messages ignored due to pending recovery.
|
long |
getMsgsSendFailures() |
The number of failed message sends.
|
long |
getMsgsSent() |
The number of messages sent.
|
long |
getNewsites() |
The number of new site messages received.
|
LogSequenceNumber |
getNextLsn() |
In replication environments configured as masters, the next LSN to be used.
|
int |
getNextPages() |
The next page number we expect to receive.
|
int |
getNumSites() |
The number of sites used in the last election.
|
long |
getNumThrottles() |
Transmission limited.
|
long |
getOutdated() |
The number of outdated conditions detected.
|
long |
getPagesDuplicated() |
The number of duplicate pages received.
|
long |
getPagesRecords() |
The number of pages received and stored.
|
long |
getPagesRequested() |
The number of pages missed and requested from the master.
|
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).
|
boolean |
getStartupComplete() |
The client site has completed its startup procedures and is now handling live records from the master.
|
int |
getStatus() |
The current replication mode.
|
long |
getTxnsApplied() |
The number of transactions applied.
|
boolean |
getView() |
True if the site is a view and false if not.
|
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.
|
java.lang.String |
toString() |
For convenience, the ReplicationStats class has a toString method
that lists all the data fields.
|
public static final int REP_CLIENT
getStatus()
.public static final int REP_MASTER
getStatus()
.public static final int REP_NONE
getStatus()
.public boolean getStartupComplete()
public boolean getView()
public long getLogQueued()
public int getStatus()
public LogSequenceNumber getNextLsn()
public LogSequenceNumber getWaitingLsn()
public LogSequenceNumber getMaxPermLsn()
public int getNextPages()
public int getWaitingPages()
public int getDupmasters()
public long getEnvId()
public int getEnvPriority()
public long getExtDuplicated()
public long getExtRecords()
public long getExtRereq()
public long getExtUpdateRereq()
public long getBulkFills()
public long getBulkOverflows()
public long getBulkRecords()
public long getBulkTransfers()
ReplicationTransport
function).public long getClientRerequests()
getClientSvcMiss()
.)public long getClientSvcReq()
ReplicationTransport.send()
function may be sent to another client instead.)public long getClientSvcMiss()
public int getGen()
public int getEgen()
public long getLeaseChk()
public long getLeaseChkMisses()
public long getLeaseChkRefresh()
public long getLeaseSends()
public long getLogDuplicated()
public long getLogQueuedMax()
public long getLogQueuedTotal()
public long getLogRecords()
public long getLogRequested()
public long getMaster()
public long getMasterChanges()
public long getMsgsBadgen()
public long getMsgsProcessed()
public long getMsgsRecover()
public long getMsgsSendFailures()
public long getMsgsSent()
public long getNewsites()
public int getNumSites()
public long getNumThrottles()
Environment.processReplicationMessage
.public long getOutdated()
public long getPagesDuplicated()
public long getPagesRecords()
public long getPagesRequested()
public long getTxnsApplied()
public long getStartSyncDelayed()
public long getElections()
public long getElectionsWon()
public long getElectionCurWinner()
public int getElectionGen()
public int getElectionDatagen()
public LogSequenceNumber getElectionLsn()
public int getElectionNumSites()
public int getElectionNumVotes()
public int getElectionPriority()
public int getElectionStatus()
public int getElectionTiebreaker()
public int getElectionVotes()
public int getElectionSec()
getElectionUsec()
).public int getElectionUsec()
getElectionSec()
).public int getMaxLeaseSec()
getMaxLeaseUsec()
).public int getMaxLeaseUsec()
getMaxLeaseSec()
).public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 1996, 2020 Oracle and/or its affiliates. All rights reserved.