public class RpcProtocolV1 extends AbstractRpcProtocol implements ISocketEventsCallback
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
XWB_PREFIX |
applicationSegment, brokerException, currentReceivedData, currentRemoteProcedure, currentSentData, dataSegment, errorMessage, eventHandler, protocolVersion, rpcVersion, securitySegment, socketRPC_VERSION, XWB_BAD_SIGN_ON, XWB_BASE_ERR, XWB_BLD_CONNECT_LIST, XWB_CONNECT_REFUSED, XWB_DISCONNECTED_WITH_BYE, XWB_M_REJECT, XWB_NO_CONNECTION_TO_SERVER, XWB_NO_DATA_RECEIVED, XWB_NO_HEAP, XWB_NULL_RPC_VER, XWB_RPC_NOT_REG, XWB_UNABLE_TO_CREATE_CONTEXT| Constructor and Description |
|---|
RpcProtocolV1(int protocolVersion) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
call(java.lang.String remoteProcedure,
Params params) |
boolean |
connect(java.lang.String server,
int port) |
boolean |
disconnect() |
createBrokerException, getApplicationSegment, getBrokerException, getDataSegment, getErrorMessage, getEventHandler, getProtocolVersion, getRpcVersion, getSecuritySegment, getServerPacket, isConnected, onSocketConnect, onSocketDisconnect, onSocketException, setEventHandler, setRpcVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonSocketConnect, onSocketDisconnect, onSocketExceptionpublic static final java.lang.String XWB_PREFIX
public boolean connect(java.lang.String server,
int port)
throws BrokerException
connect in interface IRpcProtocolconnect in class AbstractRpcProtocolBrokerExceptionpublic java.lang.String call(java.lang.String remoteProcedure,
Params params)
throws BrokerException
call in interface IRpcProtocolcall in class AbstractRpcProtocolBrokerExceptionpublic boolean disconnect()
throws BrokerException
disconnect in interface IRpcProtocoldisconnect in class AbstractRpcProtocolBrokerException