| Constructor and Description |
|---|
ClientCommandSenderMetrics()
Constructor for
ClientCommandSenderMetrics that represents a "dummy" sender. |
ClientCommandSenderMetrics(org.rhq.enterprise.communications.command.client.CommandQueue queue,
PersistentFifo commandStore,
ThreadPoolExecutor threadPool)
Creates a new
ClientCommandSenderMetrics object given the queue and store used by the sender object whose
metrics this object contains. |
| Modifier and Type | Method and Description |
|---|---|
long |
getAverageExecutionTimeSent()
Returns the amount of time (in milliseconds) that it took to send all commands that were ultimately
successful. |
long |
getNumberCommandsActive()
Returns the number of commands that are currently being processed.
|
long |
getNumberCommandsInQueue()
Returns the approximate number of commands that are currently in the queue waiting to be sent.
|
long |
getNumberCommandsSpooled()
Returns the number of commands that are currently spooled to disk (which tells you the number of guaranteed
commands that failed to be sent and are waiting to be retried.
|
long |
getNumberFailedCommandsSent()
Returns the number of commands that failed to be sent successfully.
|
long |
getNumberSuccessfulCommandsSent()
Returns the number of commands that were successfully sent.
|
long |
getQueueThrottleBurstPeriodMillis()
|
long |
getQueueThrottleMaxCommands()
|
long |
getSendThrottleMaxCommands()
|
long |
getSendThrottleQuietPeriodDurationMillis()
|
boolean |
isSending()
Indicates if the sender object is currently in "sending" mode.
|
String |
toString() |
public ClientCommandSenderMetrics(org.rhq.enterprise.communications.command.client.CommandQueue queue,
PersistentFifo commandStore,
ThreadPoolExecutor threadPool)
ClientCommandSenderMetrics object given the queue and store used by the sender object whose
metrics this object contains.queue - the sender's queue (may be null)commandStore - the place where guaranteed commands are persisted (may be null)threadPool - contains the threads that execute the queued tasks (may be null)public ClientCommandSenderMetrics()
ClientCommandSenderMetrics that represents a "dummy" sender. Both the queue and command
store are assumed null so their sizes will always be assumed 0. This constructor is used to simulate
metrics for a sender that has been shutdown.public long getNumberCommandsActive()
public long getNumberSuccessfulCommandsSent()
public long getNumberFailedCommandsSent()
public long getAverageExecutionTimeSent()
successful.public long getNumberCommandsInQueue()
public long getNumberCommandsSpooled()
PersistentFifopublic boolean isSending()
true, this means the sender thinks
the server on the other end is alive and is able to send messages to it.public long getQueueThrottleMaxCommands()
public long getQueueThrottleBurstPeriodMillis()
public long getSendThrottleMaxCommands()
public long getSendThrottleQuietPeriodDurationMillis()
public String toString()
toString in class ObjectObject.toString()Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.