org.objectweb.proactive.benchmarks.timit.util
Class MigratableCounter

java.lang.Object
  extended by org.objectweb.proactive.benchmarks.timit.util.TimerCounter
      extended by org.objectweb.proactive.benchmarks.timit.util.MigratableCounter
All Implemented Interfaces:
java.io.Serializable

public class MigratableCounter
extends TimerCounter

A MigratableCounter is a TimerCounter which can be migrated using ProActive migration.
This counter use a network clock and is much slower than a classic TimerCounter.
Use with care.

Author:
Brian Amedro, Vladimir Bodnartchouk, Judicael Ribault
See Also:
Serialized Form

Constructor Summary
MigratableCounter(java.lang.String s)
          Create an instance of MigratableCounter
 
Method Summary
 boolean isMigratable()
          Used by the Timer to know if a counter can be migrated
 void setClock(TimItReductor tr)
          Invoked by TimItReductor to setup network clock (which is localized on TimItReductor instance node
 void start()
          Start the counter (perform a distant method call)
 void stop()
          Stop the counter (perform a distant method call)
 
Methods inherited from class org.objectweb.proactive.benchmarks.timit.util.TimerCounter
addValue, getElapsedTime, getHierarchicalTime, getId, getName, getTotalTime, isStarted, reset, setId, setName, setTimer, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MigratableCounter

public MigratableCounter(java.lang.String s)
Create an instance of MigratableCounter

Parameters:
s - the name of the counter you want to create
Method Detail

isMigratable

public boolean isMigratable()
Used by the Timer to know if a counter can be migrated

Overrides:
isMigratable in class TimerCounter

setClock

public void setClock(TimItReductor tr)
Invoked by TimItReductor to setup network clock (which is localized on TimItReductor instance node

Parameters:
tr - the TimItReductor instance

start

public void start()
Start the counter (perform a distant method call)

Overrides:
start in class TimerCounter

stop

public void stop()
Stop the counter (perform a distant method call)

Overrides:
stop in class TimerCounter


Copyright 2001-2007 INRIA All Rights Reserved.