
public interface ODistributedDatabase
| Modifier and Type | Method and Description |
|---|---|
void |
checkNodeInConfiguration(ODistributedConfiguration cfg,
String serverName) |
String |
dump() |
boolean |
forceLockRecord(com.orientechnologies.orient.core.id.ORID record,
ODistributedRequestId requestId)
Force the locking of a record.
|
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx |
getDatabaseInstance() |
String |
getDatabaseName() |
ODistributedDatabaseRepairer |
getDatabaseRepairer() |
ODistributedServerManager |
getManager() |
long |
getProcessedRequests() |
long |
getReceivedRequests() |
com.orientechnologies.orient.core.storage.ORawBuffer |
getRecordIfLocked(com.orientechnologies.orient.core.id.ORID iRecord)
Returns the locked record for read-only purpose.
|
ODistributedSyncConfiguration |
getSyncConfiguration() |
void |
handleUnreachableNode(String nodeName)
Unlocks all the record locked by node iNodeName
|
boolean |
lockRecord(com.orientechnologies.orient.core.id.ORID record,
ODistributedRequestId requestId,
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,
boolean waitForAcceptingRequests) |
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,
com.orientechnologies.common.util.OCallable<Void,ODistributedResponseManager> endCallback) |
void |
setLSN(String sourceNodeName,
com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OLogSequenceNumber taskLastLSN,
boolean writeLastOperation) |
void |
setOnline() |
void |
unlockRecord(com.orientechnologies.orient.core.db.record.OIdentifiable record,
ODistributedRequestId requestId)
Unlocks the record previously locked through #lockRecord method.
|
void |
unlockResourcesOfServer(com.orientechnologies.orient.core.db.ODatabaseDocumentInternal database,
String serverName) |
void |
waitForOnline() |
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, com.orientechnologies.common.util.OCallable<Void,ODistributedResponseManager> endCallback)
void setOnline()
com.orientechnologies.orient.core.storage.ORawBuffer getRecordIfLocked(com.orientechnologies.orient.core.id.ORID iRecord)
iRecord - record to load.boolean lockRecord(com.orientechnologies.orient.core.id.ORID record,
ODistributedRequestId requestId,
long timeout)
record - Record to lockrequestId - 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 record,
ODistributedRequestId requestId)
record - Record to unlockrequestId - Request idlockRecord(ORID, ODistributedRequestId, long)boolean forceLockRecord(com.orientechnologies.orient.core.id.ORID record,
ODistributedRequestId requestId)
record - Record to lockrequestId - Request idString dump()
void unlockResourcesOfServer(com.orientechnologies.orient.core.db.ODatabaseDocumentInternal database,
String serverName)
void handleUnreachableNode(String nodeName)
nodeName - node idODistributedSyncConfiguration getSyncConfiguration()
void waitForOnline()
void processRequest(ODistributedRequest request, boolean waitForAcceptingRequests)
ODistributedTxContext registerTxContext(ODistributedRequestId reqId)
ODistributedTxContext popTxContext(ODistributedRequestId requestId)
ODistributedServerManager getManager()
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx getDatabaseInstance()
long getReceivedRequests()
long getProcessedRequests()
void checkNodeInConfiguration(ODistributedConfiguration cfg, String serverName)
void setLSN(String sourceNodeName, com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OLogSequenceNumber taskLastLSN, boolean writeLastOperation) throws IOException
IOExceptionODistributedDatabaseRepairer getDatabaseRepairer()
Copyright © 2009–2017 OrientDB. All rights reserved.