All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.habanero.replay.ReplayEngine
java.lang.Object
|
+----java.lang.Thread
|
+----ncsa.habanero.replay.ReplayEngine
- public class ReplayEngine
- extends Thread
ReplayEngine
The thread that controls the execution of the replay.
-
ReplayEngine(ReplayController, ReplaySocketGenerator, ReplayRemote)
-
-
eminantContinue()
-
-
eminantHalt()
-
-
reactivateEvent(FileReplayMIStr)
-
-
run()
-
-
runUntil(long)
-
-
setReplayRate(double)
-
-
setTimeTracker(TimeTracker)
-
-
waitUntilEvent(TimeStampedStream, PriorityQueue)
-
ReplayEngine
public ReplayEngine(ReplayController parent,
ReplaySocketGenerator gen,
ReplayRemote remote)
- Parameters:
- parent - the parent
- gen - the socket generator
- remote - the remote control
- Returns:
- creates a replay object
waitUntilEvent
protected boolean waitUntilEvent(TimeStampedStream next,
PriorityQueue pqAllStreams)
- Parameters:
- next - the input stream
- pqAllStreams - all the streams
- Returns:
- waits an appropriate amount of time, and then
returns true if an error has occurred
reactivateEvent
protected void reactivateEvent(FileReplayMIStr next)
- Parameters:
- next - the input stream
- Returns:
- extracts the next event and executes it
run
public void run()
- Returns:
- opens the session, and replays the objects in it
- Overrides:
- run in class Thread
setReplayRate
public void setReplayRate(double dNewRate)
- Parameters:
- dNewRate - the rate at which we replay the session
- Returns:
- changes the rate of replay
runUntil
public void runUntil(long lTime)
- Parameters:
- lTime - when we should halt at
- Returns:
- sets the time when the execution should suspend
setTimeTracker
public void setTimeTracker(TimeTracker t)
- Returns:
- sets the time tracker
eminantHalt
public void eminantHalt()
- Returns:
- about to suspend the system
eminantContinue
public void eminantContinue()
- Returns:
- about to resume the system
All Packages Class Hierarchy This Package Previous Next Index