public class ComputeClient
extends java.lang.Object
Constructor and Description |
---|
ComputeClient(java.lang.String strComputeServerHost,
int iComputeServerPort)
ComputeClient Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
computeServerHost()
Retrieve the Compute Server Host
|
int |
computeServerPort()
Retrieve the Compute Server Port
|
boolean |
initialize()
Establish a Connection to the Compute Server Engine
|
JSONObject |
invoke(JSONObject jsonRequest)
Invoke a Request on the Compute Server and Retrieve the Response
|
static void |
main(java.lang.String[] astrArgs) |
static ComputeClient |
Standard()
Construct Standard LocalHost-based Instance of the ComputeClient
|
public ComputeClient(java.lang.String strComputeServerHost, int iComputeServerPort) throws java.lang.Exception
strComputeServerHost
- The Compute Server HostiComputeServerPort
- The Compute Server Portjava.lang.Exception
- Thrown if the Inputs are Invalidpublic static final ComputeClient Standard()
public java.lang.String computeServerHost()
public int computeServerPort()
public boolean initialize()
public JSONObject invoke(JSONObject jsonRequest)
jsonRequest
- The Input JSON Requestpublic static final void main(java.lang.String[] astrArgs) throws java.lang.Exception
java.lang.Exception