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.
-
bCanRun
-
-
bNeedCollabEnvironement
-
-
dReplayRate
-
-
nLocalPort
-
-
strDirectory
-
-
strServerName
-
-
strServerPort
-
-
strSessionName
-
-
DistributedReplayThread(String)
-
-
DistributedReplayThread(String[])
-
-
can()
-
-
checkArguments(String[])
-
-
parseArguments(String[])
-
-
run()
-
-
setReplayRate(double)
-
-
setSessionInfo(String, String, String)
-
-
startUserInterfaceWindow()
-
-
transmitReplayEventsViaActions(ReplaySocketGenerator, Session)
-
strSessionName
protected String strSessionName
nLocalPort
protected int nLocalPort
strServerName
protected String strServerName
strServerPort
protected String strServerPort
dReplayRate
protected double dReplayRate
strDirectory
protected String strDirectory
bCanRun
protected boolean bCanRun
bNeedCollabEnvironement
protected boolean bNeedCollabEnvironement
DistributedReplayThread
public DistributedReplayThread(String args[])
- Parameters:
- args - the command line arguments
- Returns:
- prepares a distributedReplay object to run
DistributedReplayThread
public DistributedReplayThread(String strDirectoryName)
- Parameters:
- strDirectoryName - the name of the directory
- Returns:
- prepares a distributedReplay object to run
setReplayRate
public void setReplayRate(double dRate)
- Parameters:
- dRate - the initial rate of replay
- Returns:
- sets the rate of replay
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
can
public boolean can()
- Returns:
- true if this thread will do anything when it is run
run
public void run()
- Returns:
- runs a distributed replay session
- Overrides:
- run in class Thread
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
parseArguments
public void parseArguments(String argv[])
- Parameters:
- argv - the command line arguments
- Returns:
- converts the command line arguments to their local variable values
startUserInterfaceWindow
public boolean startUserInterfaceWindow()
- Returns:
- starts the user interface window, if necessary
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