public final class RTControllerClientProxy
extends java.lang.Object
RTController.
It abstracts away the details of remotely communicating with our instrumentation
runtime, RT.Lifecycle model:
Factory method;execute(Request) several RPC requests.
A TCP socket connection is only active when a request is being processed.CtlProcessor,
ControlRequest,
Request| 限定符和类型 | 方法和说明 |
|---|---|
static RTControllerClientProxy |
create(java.lang.String host,
int port)
Factory method for creating a client proxy that will communicate with
RTController at a given TCP socket host/port
endpoint. |
Response |
execute(Request request)
Dispatches a given RPC request and blocks until a response is returned from
the server or the RPC layer errors out.
|
public static RTControllerClientProxy create(java.lang.String host, int port) throws java.net.UnknownHostException
RTController at a given TCP socket host/port
endpoint.host - server host name in InetAddress.getByName(java.lang.String) format
[may not be null]port - server port [must be in must be in [1, 65535] range]java.net.UnknownHostExceptionpublic Response execute(Request request) throws java.io.IOException
request - RPC request [may not be null]java.io.IOException - on any RPC failureCopyright © 2018. All Rights Reserved.