RPCClient

public class RPCClient

A client for interaction with the SASS RPCServer.

Author:Kyle M. Douglass

Constructors

RPCClient

public RPCClient(String hostUrl, int port)

Creates a RPCClient instance for communications with the RPCServer. For RPCServers running on the same machine, use “localhost” for the hostUrl argument.

Parameters:
  • hostUrl – The URL of the RPCServer.
  • port – The port that the RPCServer is listening on.

Methods

close

public void close()

Closes the transport layer to the server. This method must be called before the program terminates.

finalize

protected void finalize()

Safety check that the transport layer is properly closed.

getClient

public RemoteSimulationService.Client getClient()

Returns a copy of service client. Use the client to make calls to the RPC server.

Returns:A copy of the RemoteSimulationService client.