|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.prc.example.java.common.Client
edu.wpi.prc.example.java.science.ScienceApplicationClient
public class ScienceApplicationClient
The ScienceApplicationClient is an XML-RPC client with added functionality that is needed by the science application. This class has methods for saving and retrieving checkpoints.
Field Summary | |
---|---|
private static ScienceApplicationClient |
client
|
private static java.lang.String |
DEFAULT_SERVER_ADDRESS
|
private boolean |
doCheckpointing
|
private static int |
EXIT_ERROR
|
private static java.lang.String |
GET_CHECKPOINT_RPC_NAME
|
private static java.lang.String |
SAVE_CHECKPOINT_RPC_NAME
|
Constructor Summary | |
---|---|
private |
ScienceApplicationClient()
Default constructor. |
Method Summary | |
---|---|
byte[] |
getCheckpoint()
Retrieves the last checkpoint from the project client. |
static ScienceApplicationClient |
instance()
|
boolean |
saveCheckpoint(byte[] data)
Sends a checkpoint to the project client, which then writes it out to disk. |
void |
setCheckpointing(boolean doCheckpointing)
Enables or disables the use of checkpointing. |
private void |
shutdown()
Exits the entire process because an unrecoverable error occurred. |
Methods inherited from class edu.wpi.prc.example.java.common.Client |
---|
executeRPC, executeRPCUntilSuccess, setServerAddress |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int EXIT_ERROR
private static final java.lang.String DEFAULT_SERVER_ADDRESS
private static final java.lang.String GET_CHECKPOINT_RPC_NAME
private static final java.lang.String SAVE_CHECKPOINT_RPC_NAME
private boolean doCheckpointing
private static ScienceApplicationClient client
Constructor Detail |
---|
private ScienceApplicationClient()
Method Detail |
---|
public void setCheckpointing(boolean doCheckpointing)
doCheckpointing
- True to enable checkpointing, false to disable it.public boolean saveCheckpoint(byte[] data)
data
- The checkpoint data to be sent.
public byte[] getCheckpoint()
private void shutdown()
public static ScienceApplicationClient instance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |