All Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
protected int |
calculateQuorum(OCommandDistributedReplicateRequest.QUORUM_TYPE quorumType,
Collection<String> clusterNames,
ODistributedConfiguration cfg,
int totalServers,
int totalMasterServers,
int onlineMasters,
boolean checkNodesAreOnline,
String localNodeName) |
protected void |
checkForServerOnline(ODistributedRequest iRequest) |
void |
checkNodeInConfiguration(ODistributedConfiguration cfg,
String serverName) |
void |
checkReverseSync(OTransactionSequenceStatus lastState) |
OTxMetadataHolder |
commit(OTransactionId id) |
String |
dump() |
void |
endOperation() |
boolean |
exists() |
ConcurrentHashMap<ODistributedRequestId,ODistributedTxContext> |
getActiveTxContexts() |
ODatabaseDocumentInternal |
getDatabaseInstance() |
String |
getDatabaseName() |
OSimpleLockManager<Object> |
getIndexKeyLockManager() |
protected Set<Integer> |
getInvolvedQueuesByPartitionKeys(int[] partitionKeys) |
protected String |
getLocalNodeName() |
ODistributedServerManager |
getManager() |
long |
getProcessedRequests() |
long |
getReceivedRequests() |
OSimpleLockManager<ORID> |
getRecordLockManager() |
ODistributedSyncConfiguration |
getSyncConfiguration() |
ODistributedTxContext |
getTxContext(ODistributedRequestId requestId) |
void |
handleUnreachableNode(String nodeName)
Unlocks all the record locked by node iNodeName
|
List<OTransactionId> |
missingTransactions(OTransactionSequenceStatus lastState) |
ODistributedResponseManager |
newResponseManager(ODistributedRequest iRequest,
Collection<String> iNodes,
OCallable<Void,ODistributedResponseManager> endCallback,
ORemoteTask task,
Set<String> nodesConcurToTheQuorum,
int availableNodes,
int expectedResponses,
int quorum,
boolean groupByResponse,
boolean waitLocalNode) |
Optional<OTransactionId> |
nextId() |
ODistributedTxContext |
popTxContext(ODistributedRequestId requestId) |
protected void |
processRequest(int partitionKey,
ODistributedRequest request) |
void |
processRequest(ODistributedRequest request,
boolean waitForAcceptingRequests)
Distributed requests against the available workers by using one queue per worker.
|
void |
reEnqueue(int senderNodeId,
long msgSequence,
String databaseName,
ORemoteTask payload,
int retryCount,
int autoRetryDelay) |
ODistributedTxContext |
registerTxContext(ODistributedRequestId reqId,
ODistributedTxContext ctx) |
void |
resume() |
void |
rollback(OTransactionId id) |
ODistributedResponse |
send2Nodes(ODistributedRequest iRequest,
Collection<String> iClusterNames,
Collection<String> iNodes,
ODistributedRequest.EXECUTION_MODE iExecutionMode,
Object localResult,
OCallable<Void,ODistributedRequestId> iAfterSentCallback,
OCallable<Void,ODistributedResponseManager> endCallback) |
ODistributedResponse |
send2Nodes(ODistributedRequest iRequest,
Collection<String> iClusterNames,
Collection<String> iNodes,
ODistributedRequest.EXECUTION_MODE iExecutionMode,
Object localResult,
OCallable<Void,ODistributedRequestId> iAfterSentCallback,
OCallable<Void,ODistributedResponseManager> endCallback,
ODistributedResponseManagerFactory responseManagerFactory) |
void |
setLSN(String sourceNodeName,
OLogSequenceNumber taskLastLSN,
boolean updateLastOperationTimestamp) |
void |
setOnline() |
void |
shutdown() |
void |
startOperation() |
Optional<OTransactionSequenceStatus> |
status() |
void |
suspend() |
void |
unlockResourcesOfServer(ODatabaseDocumentInternal database,
String serverName) |
Optional<OTransactionId> |
validate(OTransactionId id) |
void |
validateStatus(OTransactionSequenceStatus status) |
void |
waitDistributedIsReady() |
protected boolean |
waitForLocalNode(ODistributedConfiguration cfg,
Collection<String> iClusterNames,
Collection<String> iNodes) |
void |
waitForOnline() |
protected ODistributedResponse |
waitForResponse(ODistributedRequest iRequest,
ODistributedResponseManager currentResponseMgr) |
void |
waitIsReady(ORemoteTask task) |