public class RpcProtocolV2 extends AbstractRpcProtocol implements ISocketEventsCallback
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
XWB_PREFIX |
applicationSegment, brokerException, currentReceivedData, currentRemoteProcedure, currentSentData, dataSegment, errorMessage, eventHandler, protocolVersion, rpcVersion, securitySegment, socket
RPC_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 |
---|
RpcProtocolV2(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, setRpcVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onSocketConnect, onSocketDisconnect, onSocketException
protected final java.lang.String XWB_PREFIX
public boolean connect(java.lang.String server, int port) throws BrokerException
connect
in interface IRpcProtocol
connect
in class AbstractRpcProtocol
BrokerException
public java.lang.String call(java.lang.String remoteProcedure, Params params) throws BrokerException
call
in interface IRpcProtocol
call
in class AbstractRpcProtocol
BrokerException
public boolean disconnect() throws BrokerException
disconnect
in interface IRpcProtocol
disconnect
in class AbstractRpcProtocol
BrokerException