|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.benchmarks.timit.util.Timed
public class Timed
All timed objects (like workers) must extends this class. It provide some useful methods to reduce timers between workers and generate statistics.
Constructor Summary | |
---|---|
Timed()
Singleton pattern |
Method Summary | |
---|---|
void |
activate()
Do not activate any counter |
void |
activate(EventObserver[] events)
|
void |
activate(TimerCounter[] counters)
|
void |
activate(TimerCounter[] counters,
EventObserver[] events)
Activate only some TimerCounters and EventObservers |
void |
activateDebug(EventObserver[] events)
|
void |
activateDebug(TimerCounter[] counters)
|
void |
activateDebug(TimerCounter[] counters,
EventObserver[] events)
Active only some counters. |
void |
finalizeTimed(int rank,
java.lang.String information)
This method performs the EventData and the Timer reduction. |
EventObservable |
getEventObservable()
|
void |
resetTimer()
Reset all the value of the timer |
void |
setTimerReduction(TimItReductor red)
Invoked by TimItReductor to inform Timed object that he is the finalization reductor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Timed()
Method Detail |
---|
public void activate()
public void activate(TimerCounter[] counters)
public void activate(EventObserver[] events)
public void activate(TimerCounter[] counters, EventObserver[] events)
counters
- counters to activateevents
- event to activatepublic void activateDebug(TimerCounter[] counters)
public void activateDebug(EventObserver[] events)
public void activateDebug(TimerCounter[] counters, EventObserver[] events)
counters
- the array of counters you want to useevents
- the array of events you want to usepublic EventObservable getEventObservable()
public void resetTimer()
public void setTimerReduction(TimItReductor red)
public void finalizeTimed(int rank, java.lang.String information)
rank
- an identification number for this timed objectinformation
- this message will be transmitted into results files
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |