|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.curjent.impl.agent.Stats
final class Stats
Snapshot of agent statistics.
Field Summary | |
---|---|
private int |
acceptedCapacity
|
private int |
currentAccepted
|
private int |
currentExecuting
|
private int |
currentPending
|
private long |
deadcheckTimeout
|
private TimeUnit |
deadcheckUnit
|
private int |
pendingCapacity
|
private long |
pendingTimeout
|
private TimeUnit |
pendingUnit
|
Constructor Summary | |
---|---|
Stats(Messages messages)
Assumes constructed within the agent's synchronized context. |
Method Summary | |
---|---|
int |
getAcceptedCapacity()
Returns the maximum number of messages the agent will immediately queue for processing. |
int |
getCurrentAccepted()
Returns the number of messages currently accepted by the agent. |
int |
getCurrentExecuting()
Returns the number of messages the agent is currently executing. |
int |
getCurrentPending()
Returns the number of callers currently suspended by the agent. |
long |
getDeadcheckTimeout()
Returns the length of time synchronous calls wait before checking if the caller's thread has deadlocked. |
TimeUnit |
getDeadcheckTimeoutUnit()
Returns the deadlock check timeout unit. |
int |
getPendingCapacity()
Returns the maximum number of callers the agent can suspend while waiting for new messages to be accepted. |
long |
getPendingTimeout()
Returns the length of time the caller will wait for the agent to accept a new message. |
TimeUnit |
getPendingTimeoutUnit()
Returns the pending timeout unit. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final int acceptedCapacity
private final int currentAccepted
private final int pendingCapacity
private final long pendingTimeout
private final TimeUnit pendingUnit
private final int currentPending
private final int currentExecuting
private final long deadcheckTimeout
private final TimeUnit deadcheckUnit
Constructor Detail |
---|
Stats(Messages messages)
Method Detail |
---|
public int getAcceptedCapacity()
AgentStats
getAcceptedCapacity
in interface AgentStats
Capacity
public int getCurrentAccepted()
AgentStats
getCurrentAccepted
in interface AgentStats
public int getPendingCapacity()
AgentStats
getPendingCapacity
in interface AgentStats
Capacity
public long getPendingTimeout()
AgentStats
getPendingTimeout
in interface AgentStats
Capacity
public TimeUnit getPendingTimeoutUnit()
AgentStats
getPendingTimeoutUnit
in interface AgentStats
Capacity
public int getCurrentPending()
AgentStats
getCurrentPending
in interface AgentStats
Capacity
public int getCurrentExecuting()
AgentStats
getCurrentExecuting
in interface AgentStats
public long getDeadcheckTimeout()
AgentStats
getDeadcheckTimeout
in interface AgentStats
AgentConfig.setDeadcheckTimeout(long, TimeUnit)
public TimeUnit getDeadcheckTimeoutUnit()
AgentStats
getDeadcheckTimeoutUnit
in interface AgentStats
AgentConfig.setDeadcheckTimeout(long, TimeUnit)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |