ADK CVS

tryllian.afc.task.statistics
Class AgentStatistic

java.lang.Object
  extended bytryllian.afc.task.statistics.Statistic
      extended bytryllian.afc.task.statistics.AgentStatistic

public class AgentStatistic
extends Statistic

Encapsulates a keyword that can be sent to the agent statistics agent. The statistics that are currently supported are defined as constants:

See AgentStatisticsTask for an example.

Since:
1.3.9

Field Summary
static AgentStatistic EVENT_COUNT
          The number of events received so far by a certain agent.
static AgentStatistic EXCEPTION_COUNT
          The number of exceptions a certain agent has caused.
static AgentStatistic MESSAGE_COUNT
          The number of messages a certain agent has received.
static AgentStatistic TIME_USED
          The processor time a certain agent has used.
 
Constructor Summary
protected AgentStatistic(java.lang.String keyword)
          Creates a new AgentStatistics object for a certain keyword.
 
Methods inherited from class tryllian.afc.task.statistics.Statistic
getKeyword, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EVENT_COUNT

public static final AgentStatistic EVENT_COUNT
The number of events received so far by a certain agent.


EXCEPTION_COUNT

public static final AgentStatistic EXCEPTION_COUNT
The number of exceptions a certain agent has caused.


MESSAGE_COUNT

public static final AgentStatistic MESSAGE_COUNT
The number of messages a certain agent has received.


TIME_USED

public static final AgentStatistic TIME_USED
The processor time a certain agent has used.

Constructor Detail

AgentStatistic

protected AgentStatistic(java.lang.String keyword)
Creates a new AgentStatistics object for a certain keyword. This keyword must be supported by the agent statistics agent. Usually you would use one of the constants defined in this class in stead of creating a new object.

Parameters:
keyword - a supported statistics keyword.

Copyright 2005, Tryllian Solutions B.V.