|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--edu.virginia.cs.mng.hypercast.testing_and_monitoring.Experiment
This class contains values associated with an experiment in RC2. Any class that extends RC2 may want to have a class extending this one.
This class dictates the current state of the experiment, the number of sockets on each RS2, and the times this experiment was created, started, and stopped.
| Field Summary | |
long |
createTime
The time this object was created. |
static int |
JUST_CREATED
a possible value for state. |
int[] |
nodesOnServers
The number of sockets assigned to each RS2. |
static int |
PARTIALLY_RUNNING
a possible value for state. |
static int |
RUNNING
a possible value for state. |
long |
startTime
The time the experiment was started. |
int |
state
The current state of the experiment. |
static int |
STOPPED
a possible value for state. |
long |
stopTime
The time the experiment was stopped. |
| Constructor Summary | |
Experiment()
Constructor. |
|
Experiment(Experiment e)
Copy constructor. |
|
| Method Summary | |
java.lang.Object |
clone()
Clones this object. |
static int |
minutes(long t)
Returns the integer number of minutes since time 0. |
static double |
secondsAndFraction(long t)
Returns the number of seconds (not including minutes) since time 0 as type double. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final int JUST_CREATED
state.public static final int PARTIALLY_RUNNING
state.public static final int RUNNING
state.public static final int STOPPED
state.public int state
public int[] nodesOnServers
nodesOnServer[2] == 10 then
sockets 0 through 9 on the RS2 at index 2 are part
of the experiment.public long createTime
public long startTime
public long stopTime
| Constructor Detail |
public Experiment()
state is set to JUST_CREATED. All times are set to 0.public Experiment(Experiment e)
| Method Detail |
public static int minutes(long t)
public static double secondsAndFraction(long t)
public java.lang.Object clone()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||