Class ODistributedMessageServiceImpl
java.lang.Object
com.orientechnologies.orient.server.distributed.impl.ODistributedMessageServiceImpl
- All Implemented Interfaces:
ODistributedMessageService
Hazelcast implementation of distributed peer. There is one instance per database. 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) getDatabase(String iDatabaseName) longlongvoidhandleUnreachableNode(String nodeName) protected voidvoidregisterRequest(long id, ODistributedResponseManager currentResponseMgr) voidshutdown()voidtimeoutRequest(long msgId) Removes a response manager because in timeout.voidupdateLatency(String server, long sentOn) voidupdateMessageStats(String message)
-
Constructor Details
-
ODistributedMessageServiceImpl
-
-
Method Details
-
getDatabase
- Specified by:
getDatabasein interfaceODistributedMessageService
-
shutdown
public void shutdown() -
getResponseManager
- Specified by:
getResponseManagerin interfaceODistributedMessageService
-
registerRequest
- Specified by:
registerRequestin interfaceODistributedMessageService
-
handleUnreachableNode
-
getAverageResponseTime
public long getAverageResponseTime() -
getDatabases
- Specified by:
getDatabasesin interfaceODistributedMessageService
-
dispatchResponseToThread
Not synchronized, it's called when a message arrives- Specified by:
dispatchResponseToThreadin interfaceODistributedMessageService
-
timeoutRequest
public void timeoutRequest(long msgId) Removes a response manager because in timeout. -
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
-