|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.conf.ReplicatorMonitor
public class ReplicatorMonitor
This class implements JMX monitoring statistics for the replicator.
| Field Summary | |
|---|---|
static int |
COUNT_COUNT
|
static int |
COUNT_EVENTS_PER_COMMIT
|
static int |
COUNT_EVENTS_PER_MESSAGE
|
static int |
COUNT_RECORDS_PER_EVENT
|
static java.lang.String[] |
countNames
|
static int |
CPU_APPLIERAEVENT
|
static int |
CPU_APPLIERBISQL
|
static int |
CPU_APPLIERBUSQL
|
static int |
CPU_APPLIEREXSQL
|
static int |
CPU_APPLIERGEVENT
|
static int |
CPU_APPLIERMEVENT
|
static int |
CPU_APPLIERPRSQL
|
static int |
CPU_APPLIERSTRANS
|
static int |
CPU_CHECKSUM
|
static int |
CPU_COUNT
|
static int |
CPU_DB_DESERIAL
|
static int |
CPU_DB_SERIAL
|
static int |
CPU_EXTRACT
|
static int |
CPU_INSERTTHL
|
static int |
CPU_MSG_DESERIAL
|
static int |
CPU_MSG_SERIAL
|
static java.lang.String[] |
cpuNames
|
static int |
REAL_APPLY
|
static int |
REAL_COMMIT
|
static int |
REAL_COUNT
|
static int |
REAL_DELWAIT
|
static int |
REAL_EXTBODY
|
static int |
REAL_EXTHEAD
|
static int |
REAL_EXTRACT
|
static int |
REAL_INSWAIT
|
static int |
REAL_THLCLIWAIT
|
static int |
REAL_THLSRVWAIT
|
static int |
REAL_UPDWAIT
|
static int |
REAL_WAIT4EXT
|
static int |
REAL_WAIT4THLCLI
|
static java.lang.String[] |
realNames
|
| Method Summary | |
|---|---|
void |
clearCounters()
Clear monitoring counters and timing intervals. |
DynamicMBeanHelper |
createHelper()
|
void |
decreaseUsedCacheSize()
|
long |
getApplied()
Returns the number of transactions applied to target. |
long |
getAppliedLastSeqNo()
Returns the last sequence number that was applied. |
java.sql.Timestamp |
getAppliedLastSourceTStamp()
Returns the source timestamp of the last event that was applied. |
java.sql.Timestamp |
getAppliedLastTargetTStamp()
Returns the timestamp when the last event was applied. |
double |
getAppliedLatency()
Returns the latency of the last event processed in seconds, including heartbeat events. |
double |
getAppliedPerSec()
Returns the average events applied per second. |
java.util.ArrayList<MonitorThreadInfo> |
getCPUTimes()
Returns hash map of CPUTimes per thread |
boolean |
getDetailEnabled()
return TRUE IFF detailed statistics are enabled |
long |
getEvents()
Returns the number of events (extracted for extractor, applied for applier). |
int |
getEventsTotalCacheSize()
Returns the events cache total size. |
int |
getEventsUsedCacheSize()
Returns the events cache used size. |
long |
getExtracted()
Returns the total events extracted. |
long |
getExtractedLastSeqNo()
Returns the last sequence number that was extracted. |
double |
getExtractedPerSec()
Returns the average events extracted per second. |
static ReplicatorMonitor |
getInstance()
Default method to use for normal operations |
static ReplicatorMonitor |
getInstance(java.lang.String instanceId,
boolean doClear)
Singleton implementation |
long |
getLatestEpochNumber()
|
java.lang.String |
getLatestEventId()
|
double |
getMonitoringIntervalSecs()
Gets the length of the current monitoring interval in seconds. |
long |
getReceived()
Returns the number of events received and placed in the THL. |
long |
getReceivedLastSeqNo()
Returns the sequence number of the last event received. |
java.sql.Timestamp |
getReceivedLastSourceTStamp()
Returns the source timestamp of the last event that was received. |
java.sql.Timestamp |
getReceivedLastTargetTStamp()
Returns the timestamp when the last event was received. |
double |
getReceivedLatency()
Returns the latency of the last event received in seconds. |
double |
getReceivedPerSec()
Returns the average events received per second. |
long |
getRows()
Returns the number of rows (extracted for extrator, applied for applier). |
long |
getStartTimeMillis()
Returns the monitoring start time in milliseconds. |
int |
getUsedCacheRatio()
Returns used vs. |
void |
increaseUsedCacheSize()
|
void |
incrementApplied()
Increment the number of applied transactions. |
void |
incrementEvents(int numberOfRows)
|
void |
incrementExtracted()
|
void |
incrementReceived()
Increment the number of received transactions. |
void |
recordEvent(int eventID)
|
void |
recordEvent(int eventID,
long count)
|
void |
setAppliedLastSeqNo(long lastSeqNoApplied)
|
void |
setAppliedLastSourceTStamp(java.sql.Timestamp appliedLastSourceTStamp)
|
void |
setAppliedLastTargetTStamp(java.sql.Timestamp appliedLastTargetTStamp)
|
void |
setCacheSize(int size)
|
void |
setDetailEnabled(boolean detailEnabled)
set value for detail statistics gathering |
void |
setExtractedLastSeqNo(long lastSeqNoExtracted)
|
void |
setLatestEpochNumber(long epochNumber)
|
void |
setLatestEventId(java.lang.String eventId)
|
void |
setReceivedLastSeqNo(long lastSeqNoReceived)
|
void |
setReceivedLastSourceTStamp(java.sql.Timestamp receivedLastSourceTStamp)
|
void |
setReceivedLastTargetTStamp(java.sql.Timestamp receivedLastTargetTStamp)
|
long |
startCPUEvent(int eventID)
|
long |
startRealEvent(int eventID)
|
void |
stopCPUEvent(int eventID,
long startingToken)
|
void |
stopRealEvent(int eventID,
long startingToken)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CPU_MSG_SERIAL
public static final int CPU_MSG_DESERIAL
public static final int CPU_DB_SERIAL
public static final int CPU_DB_DESERIAL
public static final int CPU_EXTRACT
public static final int CPU_INSERTTHL
public static final int CPU_CHECKSUM
public static final int CPU_APPLIERBUSQL
public static final int CPU_APPLIERPRSQL
public static final int CPU_APPLIERBISQL
public static final int CPU_APPLIEREXSQL
public static final int CPU_APPLIERGEVENT
public static final int CPU_APPLIERAEVENT
public static final int CPU_APPLIERMEVENT
public static final int CPU_APPLIERSTRANS
public static final int CPU_COUNT
public static final java.lang.String[] cpuNames
public static final int REAL_THLSRVWAIT
public static final int REAL_THLCLIWAIT
public static final int REAL_WAIT4EXT
public static final int REAL_WAIT4THLCLI
public static final int REAL_EXTHEAD
public static final int REAL_EXTBODY
public static final int REAL_INSWAIT
public static final int REAL_UPDWAIT
public static final int REAL_DELWAIT
public static final int REAL_COMMIT
public static final int REAL_APPLY
public static final int REAL_EXTRACT
public static final int REAL_COUNT
public static final java.lang.String[] realNames
public static final int COUNT_RECORDS_PER_EVENT
public static final int COUNT_EVENTS_PER_MESSAGE
public static final int COUNT_EVENTS_PER_COMMIT
public static final int COUNT_COUNT
public static final java.lang.String[] countNames
| Method Detail |
|---|
public static ReplicatorMonitor getInstance(java.lang.String instanceId,
boolean doClear)
public static ReplicatorMonitor getInstance()
public boolean getDetailEnabled()
ReplicatorMonitorMBean
getDetailEnabled in interface ReplicatorMonitorMBeanpublic void setDetailEnabled(boolean detailEnabled)
ReplicatorMonitorMBean
setDetailEnabled in interface ReplicatorMonitorMBeanpublic void incrementEvents(int numberOfRows)
public long getEvents()
ReplicatorMonitorMBean
getEvents in interface ReplicatorMonitorMBeanpublic long getRows()
ReplicatorMonitorMBean
getRows in interface ReplicatorMonitorMBeanpublic void recordEvent(int eventID)
public void recordEvent(int eventID,
long count)
public long startCPUEvent(int eventID)
public void stopCPUEvent(int eventID,
long startingToken)
public long startRealEvent(int eventID)
public void stopRealEvent(int eventID,
long startingToken)
public void incrementApplied()
public void setAppliedLastTargetTStamp(java.sql.Timestamp appliedLastTargetTStamp)
public void setAppliedLastSourceTStamp(java.sql.Timestamp appliedLastSourceTStamp)
public void setAppliedLastSeqNo(long lastSeqNoApplied)
public void incrementExtracted()
public void setExtractedLastSeqNo(long lastSeqNoExtracted)
public void incrementReceived()
public void setReceivedLastSeqNo(long lastSeqNoReceived)
public void setReceivedLastTargetTStamp(java.sql.Timestamp receivedLastTargetTStamp)
public void setReceivedLastSourceTStamp(java.sql.Timestamp receivedLastSourceTStamp)
public void clearCounters()
ReplicatorMonitorMBean
clearCounters in interface ReplicatorMonitorMBeanpublic long getStartTimeMillis()
ReplicatorMonitorMBean
getStartTimeMillis in interface ReplicatorMonitorMBeanpublic double getMonitoringIntervalSecs()
ReplicatorMonitorMBean
getMonitoringIntervalSecs in interface ReplicatorMonitorMBeanpublic long getApplied()
ReplicatorMonitorMBean
getApplied in interface ReplicatorMonitorMBeanpublic double getAppliedLatency()
ReplicatorMonitorMBean
getAppliedLatency in interface ReplicatorMonitorMBeanpublic double getAppliedPerSec()
ReplicatorMonitorMBean
getAppliedPerSec in interface ReplicatorMonitorMBeanpublic java.sql.Timestamp getAppliedLastTargetTStamp()
ReplicatorMonitorMBean
getAppliedLastTargetTStamp in interface ReplicatorMonitorMBeanpublic java.sql.Timestamp getAppliedLastSourceTStamp()
ReplicatorMonitorMBean
getAppliedLastSourceTStamp in interface ReplicatorMonitorMBeanpublic long getAppliedLastSeqNo()
ReplicatorMonitorMBean
getAppliedLastSeqNo in interface ReplicatorMonitorMBeanpublic long getExtracted()
ReplicatorMonitorMBean
getExtracted in interface ReplicatorMonitorMBeanpublic long getExtractedLastSeqNo()
ReplicatorMonitorMBean
getExtractedLastSeqNo in interface ReplicatorMonitorMBeanpublic double getExtractedPerSec()
ReplicatorMonitorMBean
getExtractedPerSec in interface ReplicatorMonitorMBeanpublic long getReceived()
ReplicatorMonitorMBean
getReceived in interface ReplicatorMonitorMBeanpublic long getReceivedLastSeqNo()
ReplicatorMonitorMBean
getReceivedLastSeqNo in interface ReplicatorMonitorMBeanpublic double getReceivedLatency()
ReplicatorMonitorMBean
getReceivedLatency in interface ReplicatorMonitorMBeanpublic double getReceivedPerSec()
ReplicatorMonitorMBean
getReceivedPerSec in interface ReplicatorMonitorMBeanpublic java.sql.Timestamp getReceivedLastTargetTStamp()
ReplicatorMonitorMBean
getReceivedLastTargetTStamp in interface ReplicatorMonitorMBeanpublic java.sql.Timestamp getReceivedLastSourceTStamp()
ReplicatorMonitorMBean
getReceivedLastSourceTStamp in interface ReplicatorMonitorMBeanpublic void setCacheSize(int size)
public void increaseUsedCacheSize()
public void decreaseUsedCacheSize()
public int getEventsTotalCacheSize()
ReplicatorMonitorMBean
getEventsTotalCacheSize in interface ReplicatorMonitorMBeanpublic int getEventsUsedCacheSize()
ReplicatorMonitorMBean
getEventsUsedCacheSize in interface ReplicatorMonitorMBeanpublic int getUsedCacheRatio()
ReplicatorMonitorMBean
getUsedCacheRatio in interface ReplicatorMonitorMBeanpublic java.util.ArrayList<MonitorThreadInfo> getCPUTimes()
ReplicatorMonitorMBean
getCPUTimes in interface ReplicatorMonitorMBeanpublic long getLatestEpochNumber()
getLatestEpochNumber in interface ReplicatorMonitorMBeanpublic void setLatestEpochNumber(long epochNumber)
public java.lang.String getLatestEventId()
getLatestEventId in interface ReplicatorMonitorMBeanpublic void setLatestEventId(java.lang.String eventId)
public DynamicMBeanHelper createHelper()
throws java.lang.Exception
createHelper in interface ReplicatorMonitorMBeanjava.lang.ExceptionReplicatorMonitorMBean.createHelper()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||