org.curjent.agent
Interface AgentStats

All Known Implementing Classes:
Stats

public interface AgentStats

Statistics for an agent. Select configuration settings are also included. Access to an agent's configuration settings may be locked (see Agent.getConfig(Object, Object, Object)), but some read-only access is provided here as part of the agent's overall statistical profile.

See Also:
Agent.getStats(Object)

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.
 

Method Detail

getAcceptedCapacity

int getAcceptedCapacity()
Returns the maximum number of messages the agent will immediately queue for processing.

See Also:
Capacity

getCurrentAccepted

int getCurrentAccepted()
Returns the number of messages currently accepted by the agent. This number includes both queued messages and messages currently executing.


getPendingCapacity

int getPendingCapacity()
Returns the maximum number of callers the agent can suspend while waiting for new messages to be accepted.

See Also:
Capacity

getPendingTimeout

long getPendingTimeout()
Returns the length of time the caller will wait for the agent to accept a new message.

See Also:
Capacity

getPendingTimeoutUnit

TimeUnit getPendingTimeoutUnit()
Returns the pending timeout unit.

See Also:
Capacity

getCurrentPending

int getCurrentPending()
Returns the number of callers currently suspended by the agent.

See Also:
Capacity

getCurrentExecuting

int getCurrentExecuting()
Returns the number of messages the agent is currently executing.


getDeadcheckTimeout

long getDeadcheckTimeout()
Returns the length of time synchronous calls wait before checking if the caller's thread has deadlocked.

See Also:
AgentConfig.setDeadcheckTimeout(long, TimeUnit)

getDeadcheckTimeoutUnit

TimeUnit getDeadcheckTimeoutUnit()
Returns the deadlock check timeout unit.

See Also:
AgentConfig.setDeadcheckTimeout(long, TimeUnit)


Copyright 2009-2011 Tom Landon
Apache License 2.0