org.cougaar.core.qos.profile
Class ProfilerCoordinator
java.lang.Object
org.cougaar.util.GenericStateModelAdapter
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).
| Fields inherited from interface org.cougaar.util.GenericStateModel |
ACTIVE, IDLE, LOADED, UNINITIALIZED, UNLOADED |
| 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 |
ProfilerCoordinator
public ProfilerCoordinator()
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