|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--edu.virginia.cs.mng.hypercast.HC.HC_WaitObject
This class is used to hold the cache of messages used to keep track of the experiment.
| Field Summary | |
(package private) IP_Address[] |
addrs
Addresses of the Portals in the experiment. |
(package private) java.io.PrintStream |
err
|
(package private) Experiment |
experiment
|
(package private) org.w3c.dom.Document[] |
heavyMsgs
Complete GetValues request messages for Portals. |
(package private) int[] |
LAs
The logical addressees of the sockets. |
(package private) org.w3c.dom.Document[] |
lightMsgs
"Replay" GetValue request messages for Portals. |
(package private) int |
msgsNeeded
The number of runservers being used. |
(package private) java.io.PrintStream |
out
|
(package private) HC_RC2 |
rc2
|
(package private) org.w3c.dom.Document[] |
result
Stores messages received. |
(package private) int |
socketsUsed
The number of sockets being used. |
(package private) int[] |
States
The states of the sockets. |
| Constructor Summary | |
HC_WaitObject(HC_RC2 r,
Experiment e,
java.io.PrintStream ps_out,
java.io.PrintStream ps_err)
|
|
| Method Summary | |
private boolean |
experimentChanged(Experiment e)
Returns true if the experiment has changed and messages and other cached info needs to be remade. |
boolean |
isStable()
Returns true if the hypercube is stable. |
private void |
makeMessages()
Creates the cache of messages to be sent to the RunServers. |
private void |
remakeStateCounters()
Remakes the LA and state counters for the experiment. |
void |
sendMessages()
Decides which RunServers should receive heavy and light messages, sends the messages, and processes replies. |
private void |
setNumOfMessages()
Calculates the number of RunServers and the number of Sockets. |
void |
update(Experiment e)
Remakes messages and cached info if necessary. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
HC_RC2 rc2
Experiment experiment
java.io.PrintStream out
java.io.PrintStream err
org.w3c.dom.Document[] heavyMsgs
lightMsgs.org.w3c.dom.Document[] lightMsgs
IP_Address[] addrs
org.w3c.dom.Document[] result
int msgsNeeded
int socketsUsed
int[] LAs
int[] States
| Constructor Detail |
public HC_WaitObject(HC_RC2 r,
Experiment e,
java.io.PrintStream ps_out,
java.io.PrintStream ps_err)
| Method Detail |
public void update(Experiment e)
private boolean experimentChanged(Experiment e)
private void setNumOfMessages()
private void remakeStateCounters()
private void makeMessages()
public void sendMessages()
public boolean isStable()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||