
public interface ODistributedDatabase
| Modifier and Type | Method and Description |
|---|---|
int |
checkQuorumBeforeReplicate(com.orientechnologies.orient.core.command.OCommandDistributedReplicateRequest.QUORUM_TYPE quorumType,
Collection<String> iClusterNames,
Collection<String> iNodes,
ODistributedConfiguration cfg) |
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx |
getDatabaseInstance() |
String |
getDatabaseName() |
ODistributedServerManager |
getManager() |
ODistributedSyncConfiguration |
getSyncConfiguration() |
void |
handleUnreachableNode(int iNodeId)
Unlocks all the record locked by node iNodeName
|
ODistributedRequestId |
lockRecord(com.orientechnologies.orient.core.db.record.OIdentifiable iRecord,
ODistributedRequestId iRequestId)
Locks the record to be sure distributed transactions never work concurrently against the same records in the meanwhile the
transaction is executed and the OCompleteTxTask is not arrived.
|
ODistributedTxContext |
popTxContext(ODistributedRequestId requestId) |
void |
processRequest(ODistributedRequest request) |
ODistributedTxContext |
registerTxContext(ODistributedRequestId reqId) |
ODistributedResponse |
send2Nodes(ODistributedRequest iRequest,
Collection<String> iClusterNames,
Collection<String> iNodes,
ODistributedRequest.EXECUTION_MODE iExecutionMode,
Object localResult,
com.orientechnologies.common.util.OCallable<Void,ODistributedRequestId> iAfterSentCallback) |
void |
setOnline() |
void |
unlockRecord(com.orientechnologies.orient.core.db.record.OIdentifiable iRecord,
ODistributedRequestId requestId)
Unlocks the record previously locked through #lockRecord method.
|
String getDatabaseName()
ODistributedResponse send2Nodes(ODistributedRequest iRequest, Collection<String> iClusterNames, Collection<String> iNodes, ODistributedRequest.EXECUTION_MODE iExecutionMode, Object localResult, com.orientechnologies.common.util.OCallable<Void,ODistributedRequestId> iAfterSentCallback)
void setOnline()
int checkQuorumBeforeReplicate(com.orientechnologies.orient.core.command.OCommandDistributedReplicateRequest.QUORUM_TYPE quorumType,
Collection<String> iClusterNames,
Collection<String> iNodes,
ODistributedConfiguration cfg)
ODistributedRequestId lockRecord(com.orientechnologies.orient.core.db.record.OIdentifiable iRecord, ODistributedRequestId iRequestId)
iRecord - Record to lockiRequestId - Request idunlockRecord(OIdentifiable, ODistributedRequestId)void unlockRecord(com.orientechnologies.orient.core.db.record.OIdentifiable iRecord,
ODistributedRequestId requestId)
iRecord - requestId - lockRecord(OIdentifiable, ODistributedRequestId)void handleUnreachableNode(int iNodeId)
iNodeId - node idODistributedSyncConfiguration getSyncConfiguration()
void processRequest(ODistributedRequest request)
ODistributedTxContext registerTxContext(ODistributedRequestId reqId)
ODistributedTxContext popTxContext(ODistributedRequestId requestId)
ODistributedServerManager getManager()
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx getDatabaseInstance()
Copyright © 2009–2016 Orient Technologies. All rights reserved.