Class ORemoteServerChannel
java.lang.Object
com.orientechnologies.orient.server.distributed.ORemoteServerChannel
Remote server channel.
- Author:
- Luca Garulli
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionORemoteServerChannel(ORemoteServerAvailabilityCheck check, String localNodeName, String iServer, String iURL, String user, String passwd, int currentProtocolVersion) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()voidconnect()intprotected <T> TnetworkOperation(byte operationId, ORemoteServerChannel.ORemoteClientOperation<T> operation, String errorMessage, int maxRetry, boolean autoReconnect) voidsendBinaryRequest(OBinaryRequest request) voidsendMessage(ONetworkMessage message) voidsendRequest(ODistributedRequest request) voidsendResponse(ODistributedResponse response)
-
Constructor Details
-
ORemoteServerChannel
public ORemoteServerChannel(ORemoteServerAvailabilityCheck check, String localNodeName, String iServer, String iURL, String user, String passwd, int currentProtocolVersion) throws IOException - Throws:
IOException
-
-
Method Details
-
getDistributedProtocolVersion
public int getDistributedProtocolVersion() -
sendBinaryRequest
-
checkReconnect
public void checkReconnect() -
sendMessage
-
sendRequest
-
sendResponse
-
connect
- Throws:
IOException
-
close
public void close() -
networkOperation
protected <T> T networkOperation(byte operationId, ORemoteServerChannel.ORemoteClientOperation<T> operation, String errorMessage, int maxRetry, boolean autoReconnect) -
getServer
-
getCreatedOn
-