Class ODistributedMessageServiceImpl
java.lang.Object
com.orientechnologies.orient.server.distributed.impl.ODistributedMessageServiceImpl
- All Implemented Interfaces:
ODistributedMessageService
Message handler for matching distributed responses to requests of distributed peer. Each node
creates own instance to talk with each others.
- Author:
- Luca Garulli (l.garulli--at--orientdb.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatchResponseToThread(ODistributedResponse response) Not synchronized, it's called when a message arriveslonglonggetCurrentLatency(String server) longlongvoidhandleUnreachableNode(String nodeName) protected voidvoidregisterRequest(long id, ODistributedResponseManager currentResponseMgr) voidshutdown()voidtimeoutRequest(long msgId) Removes a response context because in timeout.voidupdateLatency(String server, long sentOn) voidupdateMessageStats(String message)
-
Constructor Details
-
ODistributedMessageServiceImpl
-
-
Method Details
-
shutdown
public void shutdown() -
registerRequest
- Specified by:
registerRequestin interfaceODistributedMessageService
-
handleUnreachableNode
- Specified by:
handleUnreachableNodein interfaceODistributedMessageService
-
getAverageResponseTime
public long getAverageResponseTime() -
dispatchResponseToThread
Not synchronized, it's called when a message arrives- Specified by:
dispatchResponseToThreadin interfaceODistributedMessageService
-
timeoutRequest
public void timeoutRequest(long msgId) Removes a response context because in timeout.- Specified by:
timeoutRequestin interfaceODistributedMessageService
-
getLatencies
- Specified by:
getLatenciesin interfaceODistributedMessageService
-
getCurrentLatency
- Specified by:
getCurrentLatencyin interfaceODistributedMessageService
-
updateLatency
- Specified by:
updateLatencyin interfaceODistributedMessageService
-
purgePendingMessages
protected void purgePendingMessages() -
getMessageStats
- Specified by:
getMessageStatsin interfaceODistributedMessageService
-
updateMessageStats
- Specified by:
updateMessageStatsin interfaceODistributedMessageService
-
getReceivedRequests
public long getReceivedRequests()- Specified by:
getReceivedRequestsin interfaceODistributedMessageService
-
getProcessedRequests
public long getProcessedRequests()- Specified by:
getProcessedRequestsin interfaceODistributedMessageService
-