
public class ODistributedStorage extends Object implements com.orientechnologies.orient.core.storage.OStorage, com.orientechnologies.orient.core.storage.impl.local.OFreezableStorageComponent, com.orientechnologies.orient.core.storage.OAutoshardedStorage
| Constructor and Description |
|---|
ODistributedStorage(OServer iServer,
String dbName) |
| Modifier and Type | Method and Description |
|---|---|
protected ODistributedRequestId |
acquireRecordLock(com.orientechnologies.orient.core.id.ORecordId rid) |
int |
addCluster(String iClusterName,
boolean forceListBased,
Object... iParameters) |
int |
addCluster(String iClusterName,
int iRequestedId,
boolean forceListBased,
Object... iParameters) |
protected void |
asynchronousExecution(OAsynchDistributedOperation iOperation) |
List<String> |
backup(OutputStream out,
Map<String,Object> options,
Callable<Object> callable,
com.orientechnologies.orient.core.command.OCommandOutputListener iListener,
int compressionLevel,
int bufferSize) |
<V> V |
callInLock(Callable<V> iCallable,
boolean iExclusiveLock) |
com.orientechnologies.orient.core.storage.OPhysicalPosition[] |
ceilingPhysicalPositions(int clusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition physicalPosition) |
void |
checkClusterRebalanceIsNotRunning() |
protected String |
checkForCluster(com.orientechnologies.orient.core.record.ORecord record,
String localNodeName,
ODistributedConfiguration dbCfg) |
void |
checkForClusterPermissions(String iClusterName) |
boolean |
checkForRecordValidity(com.orientechnologies.orient.core.storage.OPhysicalPosition ppos) |
protected void |
checkLocalNodeIsAvailable() |
protected void |
checkNodeIsMaster(String localNodeName,
ODistributedConfiguration dbCfg) |
protected void |
checkWriteQuorum(ODistributedConfiguration dbCfg,
String clusterName,
String localNodeName) |
boolean |
cleanOutRecord(com.orientechnologies.orient.core.id.ORecordId recordId,
int recordVersion,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Boolean> callback) |
void |
close() |
void |
close(boolean iForce,
boolean onDelete) |
Object |
command(com.orientechnologies.orient.core.command.OCommandRequestText iCommand) |
List<com.orientechnologies.orient.core.db.record.ORecordOperation> |
commit(com.orientechnologies.orient.core.tx.OTransaction iTx,
Runnable callback) |
long |
count(int iClusterId) |
long |
count(int[] iClusterIds) |
long |
count(int[] iClusterIds,
boolean countTombstones) |
long |
count(int iClusterId,
boolean countTombstones) |
long |
countRecords() |
void |
create(Map<String,Object> iProperties) |
com.orientechnologies.orient.core.storage.OStorageOperationResult<com.orientechnologies.orient.core.storage.OPhysicalPosition> |
createRecord(com.orientechnologies.orient.core.id.ORecordId iRecordId,
byte[] iContent,
int iRecordVersion,
byte iRecordType,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Long> iCallback) |
void |
delete() |
com.orientechnologies.orient.core.storage.OStorageOperationResult<Boolean> |
deleteRecord(com.orientechnologies.orient.core.id.ORecordId iRecordId,
int iVersion,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Boolean> iCallback) |
boolean |
dropCluster(int iId,
boolean iTruncate) |
boolean |
dropCluster(String iClusterName,
boolean iTruncate) |
protected void |
dropStorageFiles() |
protected Object |
executeCommand(com.orientechnologies.orient.core.command.OCommandRequestText iCommand,
String localNodeName,
Collection<String> involvedClusters,
OAbstractCommandTask task,
Set<String> nodes,
boolean executedLocally) |
protected boolean |
executeOnlyLocally(String localNodeName,
ODistributedConfiguration dbCfg,
com.orientechnologies.orient.core.command.OCommandExecutor exec,
Collection<String> involvedClusters,
Collection<String> nodes)
Only idempotent commands that don't involve any other node can be executed locally.
|
protected Map<String,Object> |
executeOnServers(com.orientechnologies.orient.core.command.OCommandRequestText iCommand,
com.orientechnologies.orient.core.command.OCommandExecutor exec,
Collection<String> involvedClusters,
Map<String,Collection<String>> nodeClusterMap) |
boolean |
exists() |
boolean |
existsResource(String iName) |
com.orientechnologies.orient.core.storage.OPhysicalPosition[] |
floorPhysicalPositions(int clusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition physicalPosition) |
void |
freeze(boolean throwException) |
protected com.orientechnologies.orient.core.replication.OAsyncReplicationError |
getAsyncReplicationError() |
com.orientechnologies.orient.core.storage.OCluster |
getClusterById(int iId) |
com.orientechnologies.orient.core.storage.OCluster |
getClusterByName(String iName) |
long[] |
getClusterDataRange(int currentClusterId) |
int |
getClusterIdByName(String iClusterName) |
Collection<? extends com.orientechnologies.orient.core.storage.OCluster> |
getClusterInstances() |
String |
getClusterNameByRID(com.orientechnologies.orient.core.id.ORecordId iRid) |
Set<String> |
getClusterNames() |
int |
getClusters() |
com.orientechnologies.orient.core.db.record.OCurrentStorageComponentsFactory |
getComponentsFactory() |
com.orientechnologies.orient.core.config.OStorageConfiguration |
getConfiguration() |
int |
getConfigurationUpdated() |
com.orientechnologies.orient.core.conflict.ORecordConflictStrategy |
getConflictStrategy() |
int |
getDefaultClusterId() |
protected File |
getDistributedConfigFile() |
ODistributedConfiguration |
getDistributedConfiguration() |
ODistributedServerManager |
getDistributedManager() |
ODistributedStorageEventListener |
getEventListener() |
File |
getLastValidBackup() |
String |
getName() |
String |
getNodeId() |
String |
getPhysicalClusterNameById(int iClusterId) |
com.orientechnologies.orient.core.storage.ORecordMetadata |
getRecordMetadata(com.orientechnologies.orient.core.id.ORID rid) |
<T> T |
getResource(String iName,
Callable<T> iCallback) |
com.orientechnologies.orient.core.db.record.ridbag.sbtree.OSBTreeCollectionManager |
getSBtreeCollectionManager() |
OServer |
getServer() |
long |
getSize() |
com.orientechnologies.orient.core.storage.OStorage.STATUS |
getStatus() |
String |
getStorageId() |
String |
getType() |
com.orientechnologies.orient.core.storage.OStorage |
getUnderlying() |
String |
getURL() |
long |
getVersion() |
protected void |
handleDistributedException(String iMessage,
Exception e,
Object... iParams) |
com.orientechnologies.orient.core.storage.OStorageOperationResult<Boolean> |
hideRecord(com.orientechnologies.orient.core.id.ORecordId recordId,
int mode,
com.orientechnologies.orient.core.storage.ORecordCallback<Boolean> callback) |
com.orientechnologies.orient.core.storage.OPhysicalPosition[] |
higherPhysicalPositions(int currentClusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition entry) |
String |
incrementalBackup(String backupDirectory) |
boolean |
isAssigningClusterIds() |
boolean |
isClosed() |
boolean |
isDistributed() |
boolean |
isRemote() |
com.orientechnologies.orient.core.record.impl.ODocument |
loadDatabaseConfiguration(File file) |
com.orientechnologies.orient.core.storage.OPhysicalPosition[] |
lowerPhysicalPositions(int currentClusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition entry) |
protected Object |
mergeResultByAggregation(com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect select,
Map<String,Object> iResults) |
void |
open(String iUserName,
String iUserPassword,
Map<String,Object> iProperties) |
com.orientechnologies.orient.core.storage.OStorageOperationResult<com.orientechnologies.orient.core.storage.ORawBuffer> |
readRecord(com.orientechnologies.orient.core.id.ORecordId iRecordId,
String iFetchPlan,
boolean iIgnoreCache,
boolean prefetchRecords,
com.orientechnologies.orient.core.storage.ORecordCallback<com.orientechnologies.orient.core.storage.ORawBuffer> iCallback) |
com.orientechnologies.orient.core.storage.OStorageOperationResult<com.orientechnologies.orient.core.storage.ORawBuffer> |
readRecordIfVersionIsNotLatest(com.orientechnologies.orient.core.id.ORecordId rid,
String fetchPlan,
boolean ignoreCache,
int recordVersion) |
com.orientechnologies.orient.core.storage.OStorageOperationResult<Integer> |
recyclePosition(com.orientechnologies.orient.core.id.ORecordId iRecordId,
byte[] iContent,
int iVersion,
byte recordType) |
void |
release() |
protected void |
releaseRecordLock(com.orientechnologies.orient.core.id.ORecordId rid,
ODistributedRequestId requestId) |
void |
reload() |
<T> T |
removeResource(String iName) |
void |
restore(InputStream in,
Map<String,Object> options,
Callable<Object> callable,
com.orientechnologies.orient.core.command.OCommandOutputListener iListener) |
void |
restoreFromIncrementalBackup(String filePath) |
void |
resumeCreateOperations() |
void |
rollback(com.orientechnologies.orient.core.tx.OTransaction iTx) |
protected void |
saveDatabaseConfiguration() |
void |
setConflictStrategy(com.orientechnologies.orient.core.conflict.ORecordConflictStrategy iResolver) |
void |
setDefaultClusterId(int defaultClusterId) |
void |
setDistributedConfiguration(OModifiableDistributedConfiguration distributedConfiguration) |
void |
setEventListener(ODistributedStorageEventListener eventListener) |
void |
setLastValidBackup(File lastValidBackup) |
void |
shutdown() |
void |
shutdownAsynchronousWorker() |
void |
suspendCreateOperations() |
void |
synch() |
protected void |
undoCommandOnLocalServer(com.orientechnologies.orient.core.command.OCommandRequestText iCommand) |
com.orientechnologies.orient.core.storage.OStorageOperationResult<Integer> |
updateRecord(com.orientechnologies.orient.core.id.ORecordId iRecordId,
boolean updateContent,
byte[] iContent,
int iVersion,
byte iRecordType,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Integer> iCallback) |
void |
wrap(com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage wrapped) |
public void wrap(com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage wrapped)
public boolean isDistributed()
isDistributed in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean isAssigningClusterIds()
isAssigningClusterIds in interface com.orientechnologies.orient.core.storage.OStoragepublic Object command(com.orientechnologies.orient.core.command.OCommandRequestText iCommand)
command in interface com.orientechnologies.orient.core.storage.OStorageprotected Object executeCommand(com.orientechnologies.orient.core.command.OCommandRequestText iCommand, String localNodeName, Collection<String> involvedClusters, OAbstractCommandTask task, Set<String> nodes, boolean executedLocally)
protected void undoCommandOnLocalServer(com.orientechnologies.orient.core.command.OCommandRequestText iCommand)
protected Map<String,Object> executeOnServers(com.orientechnologies.orient.core.command.OCommandRequestText iCommand, com.orientechnologies.orient.core.command.OCommandExecutor exec, Collection<String> involvedClusters, Map<String,Collection<String>> nodeClusterMap)
protected Object mergeResultByAggregation(com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect select, Map<String,Object> iResults)
protected boolean executeOnlyLocally(String localNodeName, ODistributedConfiguration dbCfg, com.orientechnologies.orient.core.command.OCommandExecutor exec, Collection<String> involvedClusters, Collection<String> nodes)
public com.orientechnologies.orient.core.storage.OStorageOperationResult<com.orientechnologies.orient.core.storage.OPhysicalPosition> createRecord(com.orientechnologies.orient.core.id.ORecordId iRecordId,
byte[] iContent,
int iRecordVersion,
byte iRecordType,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Long> iCallback)
createRecord in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OStorageOperationResult<com.orientechnologies.orient.core.storage.ORawBuffer> readRecord(com.orientechnologies.orient.core.id.ORecordId iRecordId,
String iFetchPlan,
boolean iIgnoreCache,
boolean prefetchRecords,
com.orientechnologies.orient.core.storage.ORecordCallback<com.orientechnologies.orient.core.storage.ORawBuffer> iCallback)
readRecord in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OStorageOperationResult<com.orientechnologies.orient.core.storage.ORawBuffer> readRecordIfVersionIsNotLatest(com.orientechnologies.orient.core.id.ORecordId rid,
String fetchPlan,
boolean ignoreCache,
int recordVersion)
throws com.orientechnologies.orient.core.exception.ORecordNotFoundException
readRecordIfVersionIsNotLatest in interface com.orientechnologies.orient.core.storage.OStoragecom.orientechnologies.orient.core.exception.ORecordNotFoundExceptionpublic com.orientechnologies.orient.core.db.record.ridbag.sbtree.OSBTreeCollectionManager getSBtreeCollectionManager()
getSBtreeCollectionManager in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OStorageOperationResult<Integer> updateRecord(com.orientechnologies.orient.core.id.ORecordId iRecordId, boolean updateContent, byte[] iContent, int iVersion, byte iRecordType, int iMode, com.orientechnologies.orient.core.storage.ORecordCallback<Integer> iCallback)
updateRecord in interface com.orientechnologies.orient.core.storage.OStorageprotected void checkWriteQuorum(ODistributedConfiguration dbCfg, String clusterName, String localNodeName)
public com.orientechnologies.orient.core.storage.OStorageOperationResult<Integer> recyclePosition(com.orientechnologies.orient.core.id.ORecordId iRecordId, byte[] iContent, int iVersion, byte recordType)
recyclePosition in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OStorageOperationResult<Boolean> deleteRecord(com.orientechnologies.orient.core.id.ORecordId iRecordId, int iVersion, int iMode, com.orientechnologies.orient.core.storage.ORecordCallback<Boolean> iCallback)
deleteRecord in interface com.orientechnologies.orient.core.storage.OStoragepublic void checkClusterRebalanceIsNotRunning()
public int getConfigurationUpdated()
public void suspendCreateOperations()
public void resumeCreateOperations()
public com.orientechnologies.orient.core.storage.OStorageOperationResult<Boolean> hideRecord(com.orientechnologies.orient.core.id.ORecordId recordId, int mode, com.orientechnologies.orient.core.storage.ORecordCallback<Boolean> callback)
hideRecord in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.ORecordMetadata getRecordMetadata(com.orientechnologies.orient.core.id.ORID rid)
getRecordMetadata in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean cleanOutRecord(com.orientechnologies.orient.core.id.ORecordId recordId,
int recordVersion,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Boolean> callback)
cleanOutRecord in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean existsResource(String iName)
existsResource in interface com.orientechnologies.common.concur.resource.OSharedContainerpublic com.orientechnologies.orient.core.storage.OCluster getClusterByName(String iName)
getClusterByName in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.conflict.ORecordConflictStrategy getConflictStrategy()
getConflictStrategy in interface com.orientechnologies.orient.core.storage.OStoragepublic void setConflictStrategy(com.orientechnologies.orient.core.conflict.ORecordConflictStrategy iResolver)
setConflictStrategy in interface com.orientechnologies.orient.core.storage.OStoragepublic <T> T removeResource(String iName)
removeResource in interface com.orientechnologies.common.concur.resource.OSharedContainerpublic <T> T getResource(String iName, Callable<T> iCallback)
getResource in interface com.orientechnologies.common.concur.resource.OSharedContainerpublic void open(String iUserName, String iUserPassword, Map<String,Object> iProperties)
open in interface com.orientechnologies.orient.core.storage.OStoragepublic void create(Map<String,Object> iProperties)
create in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean exists()
exists in interface com.orientechnologies.orient.core.storage.OStoragepublic void reload()
reload in interface com.orientechnologies.orient.core.storage.OStoragepublic void delete()
delete in interface com.orientechnologies.orient.core.storage.OStoragepublic String incrementalBackup(String backupDirectory)
incrementalBackup in interface com.orientechnologies.orient.core.storage.OStoragepublic void restoreFromIncrementalBackup(String filePath)
restoreFromIncrementalBackup in interface com.orientechnologies.orient.core.storage.OStoragepublic void close()
close in interface com.orientechnologies.orient.core.storage.OStoragepublic void close(boolean iForce,
boolean onDelete)
close in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean isClosed()
isClosed in interface com.orientechnologies.orient.core.storage.OStoragepublic List<com.orientechnologies.orient.core.db.record.ORecordOperation> commit(com.orientechnologies.orient.core.tx.OTransaction iTx, Runnable callback)
commit in interface com.orientechnologies.orient.core.storage.OStorageprotected ODistributedRequestId acquireRecordLock(com.orientechnologies.orient.core.id.ORecordId rid)
protected void releaseRecordLock(com.orientechnologies.orient.core.id.ORecordId rid,
ODistributedRequestId requestId)
public void rollback(com.orientechnologies.orient.core.tx.OTransaction iTx)
rollback in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.config.OStorageConfiguration getConfiguration()
getConfiguration in interface com.orientechnologies.orient.core.storage.OStoragepublic int getClusters()
getClusters in interface com.orientechnologies.orient.core.storage.OStoragepublic Set<String> getClusterNames()
getClusterNames in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OCluster getClusterById(int iId)
getClusterById in interface com.orientechnologies.orient.core.storage.OStoragepublic Collection<? extends com.orientechnologies.orient.core.storage.OCluster> getClusterInstances()
getClusterInstances in interface com.orientechnologies.orient.core.storage.OStoragepublic int addCluster(String iClusterName, boolean forceListBased, Object... iParameters)
addCluster in interface com.orientechnologies.orient.core.storage.OStoragepublic int addCluster(String iClusterName, int iRequestedId, boolean forceListBased, Object... iParameters)
addCluster in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean dropCluster(String iClusterName, boolean iTruncate)
dropCluster in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean dropCluster(int iId,
boolean iTruncate)
dropCluster in interface com.orientechnologies.orient.core.storage.OStoragepublic long count(int iClusterId)
count in interface com.orientechnologies.orient.core.storage.OStoragepublic long count(int iClusterId,
boolean countTombstones)
count in interface com.orientechnologies.orient.core.storage.OStoragepublic long count(int[] iClusterIds)
count in interface com.orientechnologies.orient.core.storage.OStoragepublic long count(int[] iClusterIds,
boolean countTombstones)
count in interface com.orientechnologies.orient.core.storage.OStoragepublic long getSize()
getSize in interface com.orientechnologies.orient.core.storage.OStoragepublic long countRecords()
countRecords in interface com.orientechnologies.orient.core.storage.OStoragepublic int getDefaultClusterId()
getDefaultClusterId in interface com.orientechnologies.orient.core.storage.OStoragepublic void setDefaultClusterId(int defaultClusterId)
setDefaultClusterId in interface com.orientechnologies.orient.core.storage.OStoragepublic int getClusterIdByName(String iClusterName)
getClusterIdByName in interface com.orientechnologies.orient.core.storage.OStoragepublic String getPhysicalClusterNameById(int iClusterId)
getPhysicalClusterNameById in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean checkForRecordValidity(com.orientechnologies.orient.core.storage.OPhysicalPosition ppos)
checkForRecordValidity in interface com.orientechnologies.orient.core.storage.OStoragepublic String getName()
getName in interface com.orientechnologies.orient.core.storage.OStoragepublic String getURL()
getURL in interface com.orientechnologies.orient.core.storage.OStoragepublic long getVersion()
getVersion in interface com.orientechnologies.orient.core.storage.OStoragepublic void synch()
synch in interface com.orientechnologies.orient.core.storage.OStoragepublic long[] getClusterDataRange(int currentClusterId)
getClusterDataRange in interface com.orientechnologies.orient.core.storage.OStoragepublic <V> V callInLock(Callable<V> iCallable, boolean iExclusiveLock)
callInLock in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OStorage.STATUS getStatus()
getStatus in interface com.orientechnologies.orient.core.storage.OStoragepublic ODistributedStorageEventListener getEventListener()
public void setEventListener(ODistributedStorageEventListener eventListener)
public void checkForClusterPermissions(String iClusterName)
checkForClusterPermissions in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OPhysicalPosition[] higherPhysicalPositions(int currentClusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition entry)
higherPhysicalPositions in interface com.orientechnologies.orient.core.storage.OStoragepublic OServer getServer()
public ODistributedServerManager getDistributedManager()
public ODistributedConfiguration getDistributedConfiguration()
public void setDistributedConfiguration(OModifiableDistributedConfiguration distributedConfiguration)
public com.orientechnologies.orient.core.storage.OPhysicalPosition[] ceilingPhysicalPositions(int clusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition physicalPosition)
ceilingPhysicalPositions in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OPhysicalPosition[] floorPhysicalPositions(int clusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition physicalPosition)
floorPhysicalPositions in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OPhysicalPosition[] lowerPhysicalPositions(int currentClusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition entry)
lowerPhysicalPositions in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OStorage getUnderlying()
getUnderlying in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean isRemote()
isRemote in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.db.record.OCurrentStorageComponentsFactory getComponentsFactory()
getComponentsFactory in interface com.orientechnologies.orient.core.storage.OStoragepublic String getType()
getType in interface com.orientechnologies.orient.core.storage.OStoragepublic void freeze(boolean throwException)
freeze in interface com.orientechnologies.orient.core.storage.impl.local.OFreezableStorageComponentpublic void release()
release in interface com.orientechnologies.orient.core.storage.impl.local.OFreezableStorageComponentpublic List<String> backup(OutputStream out, Map<String,Object> options, Callable<Object> callable, com.orientechnologies.orient.core.command.OCommandOutputListener iListener, int compressionLevel, int bufferSize) throws IOException
backup in interface com.orientechnologies.orient.core.util.OBackupableIOExceptionpublic void restore(InputStream in, Map<String,Object> options, Callable<Object> callable, com.orientechnologies.orient.core.command.OCommandOutputListener iListener) throws IOException
restore in interface com.orientechnologies.orient.core.util.OBackupableIOExceptionpublic String getClusterNameByRID(com.orientechnologies.orient.core.id.ORecordId iRid)
public String getStorageId()
getStorageId in interface com.orientechnologies.orient.core.storage.OAutoshardedStoragepublic String getNodeId()
getNodeId in interface com.orientechnologies.orient.core.storage.OAutoshardedStoragepublic void shutdown()
shutdown in interface com.orientechnologies.orient.core.storage.OStoragepublic void shutdownAsynchronousWorker()
protected void checkNodeIsMaster(String localNodeName, ODistributedConfiguration dbCfg)
protected void checkLocalNodeIsAvailable()
public File getLastValidBackup()
public void setLastValidBackup(File lastValidBackup)
protected void asynchronousExecution(OAsynchDistributedOperation iOperation)
protected com.orientechnologies.orient.core.replication.OAsyncReplicationError getAsyncReplicationError()
protected void handleDistributedException(String iMessage, Exception e, Object... iParams)
protected void dropStorageFiles()
protected String checkForCluster(com.orientechnologies.orient.core.record.ORecord record, String localNodeName, ODistributedConfiguration dbCfg)
public com.orientechnologies.orient.core.record.impl.ODocument loadDatabaseConfiguration(File file)
protected void saveDatabaseConfiguration()
protected File getDistributedConfigFile()
Copyright © 2009–2017 OrientDB. All rights reserved.