org.cougaar.core.qos.profile
Class ProfilerCoordinator

java.lang.Object
  extended by org.cougaar.util.GenericStateModelAdapter
      extended by org.cougaar.core.qos.profile.ProfilerCoordinator
All Implemented Interfaces:
java.lang.Runnable, org.cougaar.core.component.Component, org.cougaar.util.GenericStateModel

public final class ProfilerCoordinator
extends org.cougaar.util.GenericStateModelAdapter
implements org.cougaar.core.component.Component, java.lang.Runnable

This component coordinates the profiler components to log at the same time.

An optional "period=LONG" argument is supported, which defaults to 60000 (one minute).

If the system property
  -Dorg.cougaar.core.society.startTime=LONG
is set, this class will use that timestamp as the base offset for the profiler logs. This is used to align the number of logged profiling rows across multiple machines (e.g. if host B starts 2 minutes after host A, the alignment will add 2 blank rows for each profiler output).


Field Summary
 
Fields inherited from interface org.cougaar.util.GenericStateModel
ACTIVE, IDLE, LOADED, UNINITIALIZED, UNLOADED
 
Constructor Summary
ProfilerCoordinator()
           
 
Method Summary
 void load()
           
 void run()
           
 void setParameter(java.lang.Object o)
           
 void setServiceBroker(org.cougaar.core.component.ServiceBroker sb)
           
 void start()
           
 
Methods inherited from class org.cougaar.util.GenericStateModelAdapter
getModelState, halt, initialize, resume, 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, stop, suspend, unload
 

Constructor Detail

ProfilerCoordinator

public ProfilerCoordinator()
Method Detail

setParameter

public void setParameter(java.lang.Object o)

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

start

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

run

public void run()
Specified by:
run in interface java.lang.Runnable