|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.eduvax.grant.simul.Test
net.eduvax.grant.simul.TestA
public class TestA
1st test suite : local nodes and jobs got from standard input.
| Field Summary | |
|---|---|
static int |
DELAY_HIGH
high delay for "low nodes". |
static int |
DELAY_LOW
best nodes. |
static int |
DELAY_MEDIUM
medium nodes. |
static int |
L1COUNT
level 1 node count. |
static int |
L2COUNT
level 2 node count. |
private int |
load
load. |
private int |
nodeLoadCost
node load cost. |
private java.util.Hashtable |
nodes
all nodes. |
private int |
nodeType
node type. |
private Node |
root
root node. |
private java.util.Vector |
terminalNodes
terminal nodes. |
| Fields inherited from class net.eduvax.grant.simul.Test |
|---|
input |
| Constructor Summary | |
|---|---|
TestA()
|
|
| Method Summary | |
|---|---|
Node |
createNode(java.lang.String name)
create a node according type number defined for this test. |
void |
execReport(ExecReport report)
trace tasklet execution. |
private Node |
getBestNode()
get the lowest loaded terminal node. |
void |
init()
init test. |
void |
routeReport(ExecRequest request)
trace tasklet scheduling. |
void |
run()
Test A implementation : reads input stream, 2 number per line. 1st is test tasklet delay, 2nd is pause before next tasklet launch. |
void |
setArgs(java.util.Collection c)
set test arguments. |
protected void |
trace(java.lang.String msg)
trace a message. |
void |
traceNodes()
trace all nodes state. |
| Methods inherited from class net.eduvax.grant.simul.Test |
|---|
main |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int L1COUNT
public static final int L2COUNT
public static final int DELAY_HIGH
public static final int DELAY_MEDIUM
public static final int DELAY_LOW
private java.util.Hashtable nodes
private java.util.Vector terminalNodes
private Node root
private int load
private int nodeType
private int nodeLoadCost
| Constructor Detail |
|---|
public TestA()
| Method Detail |
|---|
public void init()
init in class Testpublic void traceNodes()
public void setArgs(java.util.Collection c)
setArgs in class Testc - test argumentspublic Node createNode(java.lang.String name)
createNode in interface NodeFactoryname - new node's name.
public void run()
run in interface java.lang.Runnablerun in class Testpublic void routeReport(ExecRequest request)
request - scheduled request.public void execReport(ExecReport report)
execReport in interface NodeClientreport - task completion reportprivate Node getBestNode()
protected void trace(java.lang.String msg)
msg - message to trace.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||