
public class ODatabaseDocumentDistributed extends ODatabaseDocumentEmbedded
ODatabaseDocumentEmbedded.InterruptTimerTaskODatabase.ATTRIBUTES, ODatabase.OPERATION_MODE, ODatabase.STATUSactiveQueries, componentsFactory, currentIntent, currentTx, databaseOwner, hooks, hooksByScope, inHook, initialized, loadedRecordsCount, localCache, maxRecordLoadMs, maxRidbagPrefetchMs, metadata, microTransaction, minRecordLoadMs, minRidbagPrefetchMs, properties, recordType, retainRecords, ridbagPrefetchCount, serializer, sharedContext, status, totalRecordLoadMs, totalRidbagPrefetchMs, unmodifiableHooks, url, userTYPE| Constructor and Description |
|---|
ODatabaseDocumentDistributed(OStorage storage,
OHazelcastPlugin hazelcastPlugin) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireLocksForTx(OTransactionInternal tx,
ODistributedTxContext txContext) |
int |
assignAndCheckCluster(ORecord record,
String iClusterName) |
boolean |
beginDistributedTx(ODistributedRequestId requestId,
OTransactionInternal tx,
boolean local,
int retryCount) |
boolean |
commit2pc(ODistributedRequestId transactionId,
boolean local,
ODistributedRequestId requestId) |
void |
commit2pcLocal(ODistributedRequestId transactionId)
The Local commit is different from a remote commit due to local rid pre-allocation
|
ODatabaseDocumentInternal |
copy()
Returns a copy of current database if it's open.
|
protected void |
createMetadata() |
ODistributedResponse |
executeTaskOnNode(ORemoteTask task,
String nodeName) |
Map<String,Set<String>> |
getActiveClusterMap()
returns the cluster map for current deploy.
|
Map<String,Set<String>> |
getActiveDataCenterMap()
returns the data center map for current deploy.
|
Set<String> |
getClustersOnServer(ODistributedConfiguration cfg,
String server) |
OEnterpriseEndpoint |
getEnterpriseEndpoint() |
Map<String,Object> |
getHaStatus(boolean servers,
boolean db,
boolean latency,
boolean messages) |
String |
getLocalNodeName()
return the name of local node in the cluster
|
ODistributedStorage |
getStorageDistributed() |
void |
init(OrientDBConfig config) |
void |
internalBegin2pc(ONewDistributedTxContextImpl txContext,
boolean local) |
void |
internalCommit(OTransactionInternal iTx)
Executed the commit on the storage hiding away storage concepts from the transaction
|
void |
internalCommit2pc(ONewDistributedTxContextImpl txContext) |
boolean |
isSharded()
checks the cluster map and tells whether this is a sharded database (ie.
|
protected void |
loadMetadata() |
OResultSet |
queryOnNode(String nodeName,
OExecutionPlan executionPlan,
Map<Object,Object> inputParameters)
sends an execution plan to a remote node for a remote query execution
|
boolean |
removeHaServer(String serverName) |
boolean |
rollback2pc(ODistributedRequestId transactionId) |
addBlobCluster, afterCommitOperations, afterCreateOperations, afterDeleteOperations, afterReadOperations, afterRollbackOperations, afterUpdateOperations, beforeCreateOperations, beforeDeleteOperations, beforeReadOperations, beforeUpdateOperations, beginMicroTransaction, callOnCreateListeners, command, command, create, create, create, createInterruptTimerTask, deInit, delete, drop, execute, execute, executeDeleteRecord, executeSaveRecord, exists, getCommandInterruptionDepth, getConfig, getStorage, installHooksEmbedded, internalCreate, internalOpen, internalOpen, interruptExecution, isClosed, isCommandInterrupted, isStorageCommitHappening, live, live, open, open, query, query, query, rebuildIndexes, recycle, replaceStorage, set, setCommandInterrupted, setCommandInterruptionDepth, setCustom, setStorageCommitHappeningactivateOnCurrentThread, addCluster, addCluster, addRidbagPrefetchStats, backup, beforeCommitOperations, beforeRollbackOperations, begin, begin, begin, browseClass, browseClass, browseCluster, browseCluster, browseCluster, browseCluster, browseCluster, callbackHookFailure, callbackHookFinalize, callbackHooks, callbackHookSuccess, callOnCloseListeners, callOnDropListeners, callOnOpenListeners, checkForClusterPermissions, checkIfActive, checkOpenness, checkRecordClass, checkSecurity, checkSecurity, checkSecurity, checkSecurity, checkSecurity, checkSecurity, checkSecurity, cleanOutRecord, clearDocumentTracking, close, closeActiveQueries, command, commit, commit, countClass, countClass, countClusterElements, countClusterElements, countClusterElements, countClusterElements, countClusterElements, declareIntent, delete, delete, delete, delete, dropCluster, dropCluster, executeHideRecord, executeReadRecord, executeSaveEmptyRecord, executeWithRetries, executeWithRetries, executeWithRetries, existsCluster, freeze, freeze, get, getActiveIntent, getActiveQueries, getActiveQuery, getBlobClusterIds, getClusterIdByName, getClusterNameById, getClusterNames, getClusterRecordSizeById, getClusterRecordSizeByName, getClusters, getCollectionsChanges, getConfiguration, getConflictStrategy, getDatabaseOwner, getDefaultClusterId, getDefaultSerializer, getDictionary, getHooks, getListeners, getLocalCache, getMetadata, getMicroOrRegularTransaction, getName, getProperties, getProperty, getRecord, getRecordMetadata, getRecordType, getSbTreeCollectionManager, getSerializer, getSerializerFactory, getSharedContext, getSize, getStats, getStatus, getStorageVersions, getTransaction, getType, getUnderlying, getURL, getUser, hide, incrementalBackup, init, internalClose, isActiveOnCurrentThread, isClusterEdge, isClusterVertex, isMVCC, isPooled, isPrefetchRecords, isRetainRecords, isUseLightweightEdges, isValidationEnabled, load, load, load, load, load, load, load, load, load, load, loadIfVersionIsNotLatest, newBlob, newBlob, newEdge, newEdge, newElement, newElement, newElement, newInstance, newInstance, newLightweightEdge, newRegularEdge, newVertex, newVertex, query, queryClosed, queryStarted, rawBegin, registerHook, registerHook, release, reload, reload, reload, reload, reload, reloadUser, resetInitialization, resetRecordLoadStats, restore, rollback, rollback, save, save, save, save, setConflictStrategy, setConflictStrategy, setCurrentDatabaseInThreadLocal, setDatabaseOwner, setDefaultClusterIdInternal, setDefaultSerializer, setDefaultTransactionMode, setInternal, setMVCC, setPrefetchRecords, setProperty, setRetainRecords, setSerializer, setStatus, setStatusInternal, setUseLightweightEdges, setUser, setValidationEnabled, swapTx, truncateCluster, unregisterHookbrowseListeners, getListenersCopy, registerListener, resetListeners, unregisterListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitqueryClosed, queryStartedindexQuery, realClose, reusecreateClassIfNotExist, createEdgeClass, createVertexClass, newEdge, newVertexcreateClass, executeWithRetry, getClass, registerListener, unregisterListenerpublic ODatabaseDocumentDistributed(OStorage storage, OHazelcastPlugin hazelcastPlugin)
public ODistributedStorage getStorageDistributed()
public String getLocalNodeName()
public Map<String,Set<String>> getActiveClusterMap()
public Set<String> getClustersOnServer(ODistributedConfiguration cfg, String server)
protected void loadMetadata()
loadMetadata in class ODatabaseDocumentEmbeddedpublic Map<String,Set<String>> getActiveDataCenterMap()
public boolean isSharded()
ODatabaseInternalpublic ODatabaseDocumentInternal copy()
ODatabaseDocumentEmbeddedcopy in interface ODatabaseDocumentInternalcopy in class ODatabaseDocumentEmbeddedpublic Map<String,Object> getHaStatus(boolean servers, boolean db, boolean latency, boolean messages)
public boolean removeHaServer(String serverName)
public OResultSet queryOnNode(String nodeName, OExecutionPlan executionPlan, Map<Object,Object> inputParameters)
ODatabaseDocumentInternalnodeName - the node nameexecutionPlan - the execution planinputParameters - the input parameters for executionpublic ODistributedResponse executeTaskOnNode(ORemoteTask task, String nodeName)
public void init(OrientDBConfig config)
init in class ODatabaseDocumentEmbeddedprotected void createMetadata()
createMetadata in class ODatabaseDocumentEmbeddedpublic int assignAndCheckCluster(ORecord record, String iClusterName)
assignAndCheckCluster in interface ODatabaseDocumentInternalassignAndCheckCluster in class ODatabaseDocumentAbstractpublic void internalCommit(OTransactionInternal iTx)
ODatabaseDocumentInternalinternalCommit in interface ODatabaseDocumentInternalinternalCommit in class ODatabaseDocumentAbstractpublic void acquireLocksForTx(OTransactionInternal tx, ODistributedTxContext txContext)
public boolean beginDistributedTx(ODistributedRequestId requestId, OTransactionInternal tx, boolean local, int retryCount)
public void commit2pcLocal(ODistributedRequestId transactionId)
transactionId - public boolean commit2pc(ODistributedRequestId transactionId, boolean local, ODistributedRequestId requestId)
public boolean rollback2pc(ODistributedRequestId transactionId)
public void internalCommit2pc(ONewDistributedTxContextImpl txContext)
public void internalBegin2pc(ONewDistributedTxContextImpl txContext, boolean local)
public OEnterpriseEndpoint getEnterpriseEndpoint()
Copyright © 2009–2025 OrientDB. All rights reserved.