org.cougaar.core.qos.metrics
Class AgentLoadLoggerPlugin

java.lang.Object
  extended by org.cougaar.util.GenericStateModelAdapter
      extended by org.cougaar.core.blackboard.BlackboardClientComponent
          extended by org.cougaar.core.plugin.ComponentPlugin
              extended by org.cougaar.core.qos.metrics.AgentLoadLoggerPlugin
All Implemented Interfaces:
BlackboardClient, org.cougaar.core.component.Component, PluginBase, Constants, org.cougaar.util.GenericStateModel

public class AgentLoadLoggerPlugin
extends ComponentPlugin
implements Constants

This Plugin periodically dumps Agent load data (1sec load average) for each local Agent to the file <node>-agent-data.log, where <node> is the name of the Node.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.cougaar.core.blackboard.BlackboardClient
BlackboardClient.Local
 
Field Summary
 
Fields inherited from class org.cougaar.core.blackboard.BlackboardClientComponent
agentId, agentIdentificationService, alarmService, blackboard, blackboardClientName
 
Fields inherited from interface org.cougaar.core.qos.metrics.Constants
_1_SEC_AVG, _10_SEC_AVG, _100_SEC_AVG, _1000_SEC_AVG, BYTE_RATE, BYTES_FROM, BYTES_IN, BYTES_OUT, BYTES_TO, CONFIRMED_MEAS_CREDIBILITY, CPU_LOAD_AVG, CPU_LOAD_MJIPS, DEFAULT_CREDIBILITY, HOURLY_MEAS_CREDIBILITY, KEY_SEPR, MINUTE_MEAS_CREDIBILITY, MSG_FROM, MSG_IN, MSG_OUT, MSG_RATE, MSG_TO, NO_CREDIBILITY, ORACLE_CREDIBILITY, PATH_SEPR, PERSIST_SIZE_LAST, SecAvgKeySuffix, SECOND_MEAS_CREDIBILITY, SYS_BASE_CREDIBILITY, SYS_DEFAULT_CREDIBILITY, THREAD_SENSOR, USER_BASE_CREDIBILITY, USER_DEFAULT_CREDIBILITY
 
Fields inherited from interface org.cougaar.core.plugin.PluginBase
INSERTION_POINT
 
Fields inherited from interface org.cougaar.util.GenericStateModel
ACTIVE, IDLE, LOADED, UNINITIALIZED, UNLOADED
 
Fields inherited from interface org.cougaar.core.blackboard.BlackboardClient
current
 
Constructor Summary
AgentLoadLoggerPlugin()
           
 
Method Summary
protected  void execute()
          Called every time this component is scheduled to run.
protected  java.util.Set getLocalAgents()
           
 void load()
           
protected  void setupSubscriptions()
          Called once after initialization, as a "pre-execute()".
 
Methods inherited from class org.cougaar.core.plugin.ComponentPlugin
getConfigFinder
 
Methods inherited from class org.cougaar.core.blackboard.BlackboardClientComponent
currentTimeMillis, cycle, getAgentIdentifier, getAlarmService, getBindingSite, getBlackboardClientName, getBlackboardService, getMessageAddress, getParameter, getParameters, getServiceBroker, halt, precycle, requestCycle, resume, setAgentIdentificationService, setAlarmService, setBindingSite, setBlackboardService, setParameter, setSchedulerService, setServiceBroker, setSuicideService, shouldExecute, start, stop, suspend, toString, unload, wasAwakened
 
Methods inherited from class org.cougaar.util.GenericStateModelAdapter
getModelState, initialize, transitState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.cougaar.util.GenericStateModel
getModelState, halt, initialize, resume, start, stop, suspend, unload
 

Constructor Detail

AgentLoadLoggerPlugin

public AgentLoadLoggerPlugin()
Method Detail

load

public void load()
Specified by:
load in interface org.cougaar.util.GenericStateModel
Overrides:
load in class BlackboardClientComponent

getLocalAgents

protected final java.util.Set getLocalAgents()
Returns:
the message addresses of the agents on this node, or null if that information is not available.

setupSubscriptions

protected void setupSubscriptions()
Description copied from class: ComponentPlugin
Called once after initialization, as a "pre-execute()".

Specified by:
setupSubscriptions in class ComponentPlugin

execute

protected void execute()
Description copied from class: ComponentPlugin
Called every time this component is scheduled to run.

Specified by:
execute in class ComponentPlugin