Class ODistributedTxResponseManagerImpl
java.lang.Object
com.orientechnologies.orient.server.distributed.impl.ODistributedTxResponseManagerImpl
- All Implemented Interfaces:
ODistributedTxResponseManager,ODistributedResponseManager
public class ODistributedTxResponseManagerImpl
extends Object
implements ODistributedTxResponseManager
-
Constructor Summary
ConstructorsConstructorDescriptionODistributedTxResponseManagerImpl(ORemoteTask iRequest, Collection<String> iNodes, Set<String> nodesConcurToTheQuorum, int availableNodes, int expectedResponses, int quorum) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()booleancollectResponse(OTransactionPhase1TaskResult response, String senderNodeName) booleancollectResponse(ODistributedResponse response) intlonglongbooleanbooleanvoidbooleansetLocalResult(String localNodeName, Object localResult) voidtimeout()boolean
-
Constructor Details
-
ODistributedTxResponseManagerImpl
public ODistributedTxResponseManagerImpl(ORemoteTask iRequest, Collection<String> iNodes, Set<String> nodesConcurToTheQuorum, int availableNodes, int expectedResponses, int quorum)
-
-
Method Details
-
setLocalResult
- Specified by:
setLocalResultin interfaceODistributedResponseManager
-
getFinalResponse
- Specified by:
getFinalResponsein interfaceODistributedResponseManager
-
getDistributedTxFinalResponse
- Specified by:
getDistributedTxFinalResponsein interfaceODistributedTxResponseManager
-
removeServerBecauseUnreachable
- Specified by:
removeServerBecauseUnreachablein interfaceODistributedResponseManager
-
waitForSynchronousResponses
public boolean waitForSynchronousResponses()- Specified by:
waitForSynchronousResponsesin interfaceODistributedResponseManager
-
getSynchTimeout
public long getSynchTimeout()- Specified by:
getSynchTimeoutin interfaceODistributedResponseManager
-
cancel
public void cancel()- Specified by:
cancelin interfaceODistributedResponseManager
-
getExpectedNodes
- Specified by:
getExpectedNodesin interfaceODistributedResponseManager
-
getRespondingNodes
- Specified by:
getRespondingNodesin interfaceODistributedResponseManager
-
getMessageId
- Specified by:
getMessageIdin interfaceODistributedResponseManager
-
getNodeNameFromPayload
- Specified by:
getNodeNameFromPayloadin interfaceODistributedTxResponseManager
-
getQuorum
public int getQuorum()- Specified by:
getQuorumin interfaceODistributedResponseManager
-
collectResponse
- Specified by:
collectResponsein interfaceODistributedTxResponseManager
-
getAllResponses
- Specified by:
getAllResponsesin interfaceODistributedTxResponseManager
-
collectResponse
- Specified by:
collectResponsein interfaceODistributedResponseManager
-
isQuorumReached
public boolean isQuorumReached()- Specified by:
isQuorumReachedin interfaceODistributedTxResponseManager
-
isFinished
public boolean isFinished()- Specified by:
isFinishedin interfaceODistributedResponseManager
-
timeout
public void timeout()- Specified by:
timeoutin interfaceODistributedResponseManager
-
getSentOn
public long getSentOn()- Specified by:
getSentOnin interfaceODistributedResponseManager
-
getMissingNodes
- Specified by:
getMissingNodesin interfaceODistributedResponseManager
-
getDatabaseName
- Specified by:
getDatabaseNamein interfaceODistributedResponseManager
-