|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.prc.templates.java.common.Client
public class Client
The client class is responsible for executing XML-RPCs.
Field Summary | |
---|---|
private static int |
EXIT_ERROR
|
private static int |
RETRY_DELAY
|
private java.lang.String |
serverAddress
|
private org.apache.xmlrpc.XmlRpcClient |
xmlrpcClient
|
Constructor Summary | |
---|---|
Client(java.lang.String serverAddress)
Constructor specifying the address of the remote XML-RPC server. |
Method Summary | |
---|---|
java.lang.Object |
executeRPC(java.lang.String rpcName,
java.util.Vector params)
Executes an XML-RPC. |
java.lang.Object |
executeRPCUntilSuccess(java.lang.String rpcName,
java.util.Vector params,
java.lang.String errorMessage)
Keeps trying to execute the RPC until it is successful. |
private void |
initXmlRpcClient()
Initializes the XML-RPC client used for communicating with the project client. |
void |
setServerAddress(java.lang.String serverAddress)
Sets the address of the remote XML-RPC server. |
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 int RETRY_DELAY
private org.apache.xmlrpc.XmlRpcClient xmlrpcClient
private java.lang.String serverAddress
Constructor Detail |
---|
public Client(java.lang.String serverAddress)
serverAddress
- The address (host:port) of the remote XML-RPC server.Method Detail |
---|
private void initXmlRpcClient()
public void setServerAddress(java.lang.String serverAddress)
serverAddress
- The address (host:port) of the remote XML-RPC server.public java.lang.Object executeRPC(java.lang.String rpcName, java.util.Vector params) throws org.apache.xmlrpc.XmlRpcException, java.io.IOException
rpcName
- The name of the RPC to execute.params
- The parameters to the RPC.
org.apache.xmlrpc.XmlRpcException
java.io.IOException
public java.lang.Object executeRPCUntilSuccess(java.lang.String rpcName, java.util.Vector params, java.lang.String errorMessage) throws RPCHandlerException
rpcName
- The name of the XML-RPC to execute.params
- The parameters to pass to the XML-RPC. This must not be null.errorMessage
- The heading text to use when printing out any error messages that occur.
org.apache.xmlrpc.XmlRpcException
RPCHandlerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |