org.cougaar.core.qos.profile
Class ProfilerBase

java.lang.Object
  extended by org.cougaar.util.GenericStateModelAdapter
      extended by org.cougaar.core.qos.profile.ProfilerBase
All Implemented Interfaces:
org.cougaar.core.component.Component, ProfilerService.Client, org.cougaar.util.GenericStateModel
Direct Known Subclasses:
BlackboardSize, JavaHeapSize, Load, LocalTraffic, NodeTraffic, PersistSize, ProcLoadAvg, ProcMemInfo, ProcNetDev, ProcStat, ProcStatus, RemoteTraffic, Resources, Throughput, TrafficMatrix, VmStat

public abstract class ProfilerBase
extends org.cougaar.util.GenericStateModelAdapter
implements org.cougaar.core.component.Component, ProfilerService.Client

This component is the common base class for profiler components.


Field Summary
protected  boolean align
           
protected  boolean header
           
protected  org.cougaar.core.component.ServiceBroker sb
           
 
Fields inherited from interface org.cougaar.util.GenericStateModel
ACTIVE, IDLE, LOADED, UNINITIALIZED, UNLOADED
 
Constructor Summary
ProfilerBase()
           
 
Method Summary
protected  void findServiceLater(java.lang.String fname, java.lang.String cname)
           
protected  int getRunCount()
           
 void load()
           
protected  void log(java.lang.String cat, java.lang.String h, java.lang.String value)
           
abstract  void run()
           
 void setServiceBroker(org.cougaar.core.component.ServiceBroker sb)
           
static java.lang.String toHeader(java.lang.String[] fields)
           
 
Methods inherited from class org.cougaar.util.GenericStateModelAdapter
getModelState, halt, initialize, resume, start, stop, suspend, transitState, unload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.cougaar.util.GenericStateModel
getModelState, halt, initialize, resume, start, stop, suspend, unload
 

Field Detail

sb

protected org.cougaar.core.component.ServiceBroker sb

header

protected boolean header

align

protected boolean align
Constructor Detail

ProfilerBase

public ProfilerBase()
Method Detail

setServiceBroker

public void setServiceBroker(org.cougaar.core.component.ServiceBroker sb)

load

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

getRunCount

protected int getRunCount()

run

public abstract void run()
Specified by:
run in interface ProfilerService.Client

toHeader

public static final java.lang.String toHeader(java.lang.String[] fields)

log

protected void log(java.lang.String cat,
                   java.lang.String h,
                   java.lang.String value)

findServiceLater

protected void findServiceLater(java.lang.String fname,
                                java.lang.String cname)