public class ODistributedMessageServiceImpl extends Object implements ODistributedMessageService
Modifier and Type | Field and Description |
---|---|
protected ConcurrentHashMap<String,ODistributedDatabaseImpl> |
databases |
Constructor and Description |
---|
ODistributedMessageServiceImpl(OHazelcastPlugin manager) |
protected final ConcurrentHashMap<String,ODistributedDatabaseImpl> databases
public ODistributedMessageServiceImpl(OHazelcastPlugin manager)
public ODistributedDatabaseImpl getDatabase(String iDatabaseName)
getDatabase
in interface ODistributedMessageService
public void shutdown()
public ODistributedResponseManager getResponseManager(ODistributedRequestId reqId)
getResponseManager
in interface ODistributedMessageService
public void registerRequest(long id, ODistributedResponseManager currentResponseMgr)
registerRequest
in interface ODistributedMessageService
public void handleUnreachableNode(String nodeName)
public long getAverageResponseTime()
public ODistributedDatabaseImpl registerDatabase(String iDatabaseName, ODistributedConfiguration cfg)
registerDatabase
in interface ODistributedMessageService
public ODistributedDatabaseImpl unregisterDatabase(String iDatabaseName)
unregisterDatabase
in interface ODistributedMessageService
public Set<String> getDatabases()
getDatabases
in interface ODistributedMessageService
public void dispatchResponseToThread(ODistributedResponse response)
dispatchResponseToThread
in interface ODistributedMessageService
public void timeoutRequest(long msgId)
public ODocument getLatencies()
getLatencies
in interface ODistributedMessageService
public long getCurrentLatency(String server)
getCurrentLatency
in interface ODistributedMessageService
public void updateLatency(String server, long sentOn)
updateLatency
in interface ODistributedMessageService
protected void purgePendingMessages()
public ODocument getMessageStats()
getMessageStats
in interface ODistributedMessageService
public void updateMessageStats(String message)
updateMessageStats
in interface ODistributedMessageService
public long getReceivedRequests()
getReceivedRequests
in interface ODistributedMessageService
public long getProcessedRequests()
getProcessedRequests
in interface ODistributedMessageService
Copyright © 2009–2020 OrientDB. All rights reserved.