public class ONewDistributedResponseManager extends Object implements ODistributedResponseManager
Constructor and Description |
---|
ONewDistributedResponseManager(OTransactionPhase1Task iRequest,
Collection<String> iNodes,
Set<String> nodesConcurToTheQuorum,
int availableNodes,
int expectedResponses,
int quorum) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
boolean |
collectResponse(ODistributedResponse response) |
boolean |
collectResponse(OTransactionPhase1TaskResult response,
String senderNodeName) |
List<OTransactionResultPayload> |
getAllResponses() |
String |
getDatabaseName() |
Set<String> |
getExpectedNodes() |
ODistributedResponse |
getFinalResponse() |
Object |
getGenericFinalResponse() |
ODistributedRequestId |
getMessageId() |
List<String> |
getMissingNodes() |
String |
getNodeNameFromPayload(OTransactionResultPayload payload) |
int |
getQuorum() |
ODistributedRequest |
getRequest() |
List<String> |
getRespondingNodes() |
long |
getSentOn() |
Set<String> |
getServersWithoutFollowup() |
long |
getSynchTimeout() |
boolean |
isFinished() |
boolean |
isQuorumReached() |
void |
removeServerBecauseUnreachable(String node) |
boolean |
setLocalResult(String localNodeName,
Object localResult) |
void |
timeout() |
boolean |
waitForSynchronousResponses() |
public ONewDistributedResponseManager(OTransactionPhase1Task iRequest, Collection<String> iNodes, Set<String> nodesConcurToTheQuorum, int availableNodes, int expectedResponses, int quorum)
public boolean setLocalResult(String localNodeName, Object localResult)
setLocalResult
in interface ODistributedResponseManager
public ODistributedResponse getFinalResponse()
getFinalResponse
in interface ODistributedResponseManager
public Object getGenericFinalResponse()
getGenericFinalResponse
in interface ODistributedResponseManager
public void removeServerBecauseUnreachable(String node)
removeServerBecauseUnreachable
in interface ODistributedResponseManager
public boolean waitForSynchronousResponses() throws InterruptedException
waitForSynchronousResponses
in interface ODistributedResponseManager
InterruptedException
public long getSynchTimeout()
getSynchTimeout
in interface ODistributedResponseManager
public void cancel()
cancel
in interface ODistributedResponseManager
public Set<String> getExpectedNodes()
getExpectedNodes
in interface ODistributedResponseManager
public List<String> getRespondingNodes()
getRespondingNodes
in interface ODistributedResponseManager
public Set<String> getServersWithoutFollowup()
getServersWithoutFollowup
in interface ODistributedResponseManager
public ODistributedRequestId getMessageId()
getMessageId
in interface ODistributedResponseManager
public ODistributedRequest getRequest()
getRequest
in interface ODistributedResponseManager
public String getNodeNameFromPayload(OTransactionResultPayload payload)
public int getQuorum()
getQuorum
in interface ODistributedResponseManager
public boolean collectResponse(OTransactionPhase1TaskResult response, String senderNodeName)
public List<OTransactionResultPayload> getAllResponses()
public boolean collectResponse(ODistributedResponse response)
collectResponse
in interface ODistributedResponseManager
public boolean isQuorumReached()
public boolean isFinished()
isFinished
in interface ODistributedResponseManager
public void timeout()
timeout
in interface ODistributedResponseManager
public long getSentOn()
getSentOn
in interface ODistributedResponseManager
public List<String> getMissingNodes()
getMissingNodes
in interface ODistributedResponseManager
public String getDatabaseName()
getDatabaseName
in interface ODistributedResponseManager
Copyright © 2009–2020 OrientDB. All rights reserved.