All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.habanero.replay.DistributedReplayThread

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----ncsa.habanero.replay.DistributedReplayThread

public class DistributedReplayThread
extends Thread
DistributedReplayThread Creates a thread that replays a session, by sending all the events via ReplayActions to the server.


Variable Index

 o bCanRun
 o bNeedCollabEnvironement
 o dReplayRate
 o nLocalPort
 o strDirectory
 o strServerName
 o strServerPort
 o strSessionName

Constructor Index

 o DistributedReplayThread(String)
 o DistributedReplayThread(String[])

Method Index

 o can()
 o checkArguments(String[])
 o parseArguments(String[])
 o run()
 o setReplayRate(double)
 o setSessionInfo(String, String, String)
 o startUserInterfaceWindow()
 o transmitReplayEventsViaActions(ReplaySocketGenerator, Session)

Variables

 o strSessionName
 protected String strSessionName
 o nLocalPort
 protected int nLocalPort
 o strServerName
 protected String strServerName
 o strServerPort
 protected String strServerPort
 o dReplayRate
 protected double dReplayRate
 o strDirectory
 protected String strDirectory
 o bCanRun
 protected boolean bCanRun
 o bNeedCollabEnvironement
 protected boolean bNeedCollabEnvironement

Constructors

 o DistributedReplayThread
 public DistributedReplayThread(String args[])
Parameters:
args - the command line arguments
Returns:
prepares a distributedReplay object to run
 o DistributedReplayThread
 public DistributedReplayThread(String strDirectoryName)
Parameters:
strDirectoryName - the name of the directory
Returns:
prepares a distributedReplay object to run

Methods

 o setReplayRate
 public void setReplayRate(double dRate)
Parameters:
dRate - the initial rate of replay
Returns:
sets the rate of replay
 o setSessionInfo
 public void setSessionInfo(String sessionName,
                            String serverName,
                            String serverPort)
Parameters:
sessionName - - the name of the session
serverName - - the name of the server
serverPort - - the port that the server is listening on
Returns:
Sets the information about the server
 o can
 public boolean can()
Returns:
true if this thread will do anything when it is run
 o run
 public void run()
Returns:
runs a distributed replay session
Overrides:
run in class Thread
 o checkArguments
 public boolean checkArguments(String argv[])
Parameters:
argv - the command line arguments
Returns:
true if everything is successful, false if we don't have the name of the directory
 o parseArguments
 public void parseArguments(String argv[])
Parameters:
argv - the command line arguments
Returns:
converts the command line arguments to their local variable values
 o startUserInterfaceWindow
 public boolean startUserInterfaceWindow()
Returns:
starts the user interface window, if necessary
 o transmitReplayEventsViaActions
 public void transmitReplayEventsViaActions(ReplaySocketGenerator socketGen,
                                            Session currentSession)
Parameters:
socketGen - the socket generator
currentSession - the current session
Returns:
reads all the events and uses ReplayAction to transmit the events to the server

All Packages  Class Hierarchy  This Package  Previous  Next  Index