public class TcpDiscoveryStatistics extends Object
TcpDiscoverySpi.| Constructor and Description |
|---|
TcpDiscoveryStatistics() |
| Modifier and Type | Method and Description |
|---|---|
int |
ackTimeoutsCount() |
long |
avgMessageProcessingTime()
Gets average message processing time.
|
Map<String,Long> |
avgMessagesSendTimes()
Gets average messages send time (grouped by type).
|
void |
clear()
Clears statistics.
|
long |
coordinatorSinceTimestamp()
Gets time local node has been coordinator since.
|
int |
failedNodesCount()
Gets failed nodes count.
|
int |
joinedNodesCount()
Gets nodes joined count.
|
long |
joinFinished() |
long |
joinStarted() |
int |
leftNodesCount()
Gets nodes left count.
|
long |
maxMessageProcessingTime()
Gets max message processing time.
|
Map<String,Long> |
maxMessagesSendTimes()
Gets max messages send time (grouped by type).
|
String |
maxProcessingTimeMessageClass()
Gets class name of the message took max time to process.
|
String |
maxRingDurationMessageClass()
Gets class name of the message that took max time to make full pass.
|
long |
maxRingMessageTime()
Gets max time for ring message to make full pass.
|
void |
onAckTimeout()
Increments ack timeouts count.
|
void |
onBecomingCoordinator()
Initializes coordinator since date (if needed).
|
void |
onClientSocketInitialized(long initTime) |
void |
onJoinFinished()
Initializes join finished timestamp.
|
void |
onJoinStarted()
Initializes join started timestamp.
|
void |
onMessageProcessingFinished(TcpDiscoveryAbstractMessage msg)
Collects necessary stats for message processed by SPI.
|
void |
onMessageProcessingStarted(TcpDiscoveryAbstractMessage msg)
Collects necessary stats for message processed by SPI.
|
void |
onMessageReceived(TcpDiscoveryAbstractMessage msg)
Collects necessary stats for message received by SPI.
|
void |
onMessageSent(TcpDiscoveryAbstractMessage msg,
long time)
Called by coordinator when ring message is sent.
|
void |
onNodeFailed()
Increments failed nodes count.
|
void |
onNodeJoined()
Increments joined nodes count.
|
void |
onNodeLeft()
Increments left nodes count.
|
void |
onPendingMessageDiscarded()
Increments pending messages discarded count.
|
void |
onPendingMessageRegistered()
Increments pending messages registered count.
|
void |
onRingMessageReceived(TcpDiscoveryAbstractMessage msg)
Called by coordinator when ring message makes full pass.
|
void |
onServerSocketInitialized(long initTime) |
void |
onSocketReaderCreated()
Increments socket readers created count.
|
void |
onSocketReaderRemoved()
Increments socket readers removed count.
|
void |
onSocketTimeout()
Increments socket timeouts count.
|
long |
pendingMessagesDiscarded()
Gets pending messages discarded count.
|
long |
pendingMessagesRegistered()
Gets pending messages registered count.
|
Map<String,Integer> |
processedMessages()
Gets processed messages counts (grouped by type).
|
Map<String,Integer> |
receivedMessages()
Gets received messages counts (grouped by type).
|
int |
socketReadersCreated()
Gets socket readers created count.
|
int |
socketReadersRemoved()
Gets socket readers removed count.
|
int |
socketTimeoutsCount() |
String |
toString() |
int |
totalProcessedMessages()
Gets total processed messages count.
|
int |
totalReceivedMessages()
Gets total received messages count.
|
public void onNodeJoined()
public void onNodeLeft()
public void onNodeFailed()
public void onAckTimeout()
public void onSocketTimeout()
public void onBecomingCoordinator()
public void onJoinStarted()
public void onJoinFinished()
public long joinStarted()
public long joinFinished()
public void onMessageReceived(TcpDiscoveryAbstractMessage msg)
msg - Received message.public void onMessageProcessingStarted(TcpDiscoveryAbstractMessage msg)
msg - Processed message.public void onMessageProcessingFinished(TcpDiscoveryAbstractMessage msg)
msg - Processed message.public void onMessageSent(TcpDiscoveryAbstractMessage msg, long time)
msg - Sent message.time - Time taken to serialize message.public void onRingMessageReceived(TcpDiscoveryAbstractMessage msg)
msg - Message.public long maxRingMessageTime()
public String maxRingDurationMessageClass()
public String maxProcessingTimeMessageClass()
public void onServerSocketInitialized(long initTime)
initTime - Time socket was initialized in.public void onClientSocketInitialized(long initTime)
initTime - Time socket was initialized in.public void onPendingMessageRegistered()
public void onPendingMessageDiscarded()
public void onSocketReaderCreated()
public void onSocketReaderRemoved()
public Map<String,Integer> processedMessages()
public Map<String,Integer> receivedMessages()
public Map<String,Long> maxMessagesSendTimes()
public Map<String,Long> avgMessagesSendTimes()
public int totalReceivedMessages()
public int totalProcessedMessages()
public long maxMessageProcessingTime()
public long avgMessageProcessingTime()
public long pendingMessagesRegistered()
public long pendingMessagesDiscarded()
public int joinedNodesCount()
public int leftNodesCount()
public int failedNodesCount()
public int ackTimeoutsCount()
public int socketTimeoutsCount()
public int socketReadersCreated()
public int socketReadersRemoved()
public long coordinatorSinceTimestamp()
public void clear()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.1.0-incubating Release Date : May 20 2015