
public interface ODistributedDatabase
| Modifier and Type | Method and Description |
|---|---|
void |
dumpLocks() |
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx |
getDatabaseInstance() |
String |
getDatabaseName() |
ODistributedDatabaseRepairer |
getDatabaseRapairer() |
ODistributedServerManager |
getManager() |
long |
getProcessedRequests() |
long |
getReceivedRequests() |
ODistributedSyncConfiguration |
getSyncConfiguration() |
void |
handleUnreachableNode(int iNodeId)
Unlocks all the record locked by node iNodeName
|
boolean |
lockRecord(com.orientechnologies.orient.core.db.record.OIdentifiable iRecord,
ODistributedRequestId iRequestId,
long timeout)
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 |
setLSN(String sourceNodeName,
com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OLogSequenceNumber taskLastLSN) |
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()
boolean lockRecord(com.orientechnologies.orient.core.db.record.OIdentifiable iRecord,
ODistributedRequestId iRequestId,
long timeout)
iRecord - Record to lockiRequestId - Request idtimeout - Timeout in ms to wait for the lockODistributedRecordLockedException - if the record wasn't lockedunlockRecord(OIdentifiable, ODistributedRequestId)void unlockRecord(com.orientechnologies.orient.core.db.record.OIdentifiable iRecord,
ODistributedRequestId requestId)
iRecord - requestId - lockRecord(OIdentifiable, ODistributedRequestId, long)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()
long getReceivedRequests()
long getProcessedRequests()
void setLSN(String sourceNodeName, com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OLogSequenceNumber taskLastLSN) throws IOException
IOExceptionODistributedDatabaseRepairer getDatabaseRapairer()
void dumpLocks()
Copyright © 2009–2016 OrientDB. All rights reserved.