|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.communications.command.client.ClientCommandSenderMetrics
public class ClientCommandSenderMetrics
This is a simple object that encapsulates all the different metrics collected by a single
sender.
This class is thread-safe.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
See ClientCommandSender.enableQueueThrottling(long, long). |
long |
getQueueThrottleMaxCommands()
See ClientCommandSender.enableQueueThrottling(long, long). |
long |
getSendThrottleMaxCommands()
See ClientCommandSender.enableSendThrottling(long, long). |
long |
getSendThrottleQuietPeriodDurationMillis()
See ClientCommandSender.enableSendThrottling(long, long). |
boolean |
isSending()
Indicates if the sender object is currently in "sending" mode. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.
| Method Detail |
|---|
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()
ClientCommandSender.enableQueueThrottling(long, long).
public long getQueueThrottleBurstPeriodMillis()
ClientCommandSender.enableQueueThrottling(long, long).
public long getSendThrottleMaxCommands()
ClientCommandSender.enableSendThrottling(long, long).
public long getSendThrottleQuietPeriodDurationMillis()
ClientCommandSender.enableSendThrottling(long, long).
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||