edu.wpi.prc.client
Class ClientRPCHandler

java.lang.Object
  extended by edu.wpi.prc.client.ClientRPCHandler

public class ClientRPCHandler
extends java.lang.Object

Processes all science application XML-RPC requests. Acts as a proxy between the science application and the project server.

Author:
James Baldassari

Field Summary
private  PRCClient client
           
 
Constructor Summary
ClientRPCHandler(PRCClient client)
          Constructor.
 
Method Summary
 byte[] getCheckpoint()
          Retrieves saved checkpoint data from disk.
 boolean saveCheckpoint(byte[] data)
          Saves checkpoint data to disk.
 boolean shutdown()
          Shuts down the PRCClient.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

private PRCClient client
Constructor Detail

ClientRPCHandler

public ClientRPCHandler(PRCClient client)
Constructor.

Parameters:
client - The PRCClient that is using this ClientRPCHandler.
Method Detail

saveCheckpoint

public boolean saveCheckpoint(byte[] data)
Saves checkpoint data to disk.

Parameters:
data - The data to save.
Returns:
Returns true if the save was successful, false otherwise.

getCheckpoint

public byte[] getCheckpoint()
Retrieves saved checkpoint data from disk.

Returns:
Returns true if checkpoint retrieval was successful, false otherwise.

shutdown

public boolean shutdown()
Shuts down the PRCClient.

Returns:
Returns true.