|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--webtester.packages.distributed.distClient
The client library for the distributed GUI.
| Field Summary | |
private static int |
iHostPort
The port of the master server. |
private static int |
iNodeNumber
The unique number that identifies this node. |
private static java.lang.String |
sHostAddr
The address of the master server. |
| Constructor Summary | |
distClient(java.lang.String sHost,
int iPort)
The constructor which takes the host and port as arguments. |
|
| Method Summary | |
static java.lang.String |
checkForTestCase()
See if there are any test cases to run. |
static int |
getNodeNumber()
Return the node number assigned by the server. |
static java.lang.String |
getTestCases()
Send a request to retrieve test cases from the server. |
static java.lang.String |
handleServerResponse(java.lang.String sData)
Handle the response from the server as required. |
private static java.lang.String |
sendData(java.lang.String sData)
Send data to the server, and retrieve the result. |
static java.lang.String |
sendNodeUpdate(java.lang.String sUpdateText)
Send a node update to the master server. |
static void |
setNodeNumber(int iNum)
Sets the node number assigned by the server. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static java.lang.String sHostAddr
private static int iHostPort
private static int iNodeNumber
| Constructor Detail |
public distClient(java.lang.String sHost,
int iPort)
sHost - the address of the master serveriPort - the port number ot use when connecting to the master server address| Method Detail |
public static void setNodeNumber(int iNum)
iNum - the node numberpublic static int getNodeNumber()
private static java.lang.String sendData(java.lang.String sData)
sData - the data to send to the server
public static java.lang.String sendNodeUpdate(java.lang.String sUpdateText)
sUpdateText - the text to display on the server console
public static java.lang.String checkForTestCase()
public static java.lang.String getTestCases()
public static java.lang.String handleServerResponse(java.lang.String sData)
sData - the data returned from the server
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||