
public interface ODistributedServerManager
| Modifier and Type | Interface and Description |
|---|---|
static class |
ODistributedServerManager.DB_STATUS
Database status.
|
static class |
ODistributedServerManager.NODE_STATUS
Server status.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
FILE_DISTRIBUTED_DB_CONFIG |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkNodeStatus(ODistributedServerManager.NODE_STATUS string) |
Throwable |
convertException(Throwable original) |
Object |
executeOnLocalNode(ODistributedRequestId reqId,
ORemoteTask task,
com.orientechnologies.orient.core.db.ODatabaseDocumentInternal database) |
Set<String> |
getActiveServers() |
Set<String> |
getAvailableNodeNames(String databaseName) |
int |
getAvailableNodes(Collection<String> iNodes,
String databaseName) |
int |
getAvailableNodes(String iDatabaseName) |
com.orientechnologies.orient.core.record.impl.ODocument |
getClusterConfiguration() |
Map<String,Object> |
getConfigurationMap() |
ODistributedConflictResolverFactory |
getConflictResolverFactory() |
ODistributedConfiguration |
getDatabaseConfiguration(String iDatabaseName) |
ODistributedConfiguration |
getDatabaseConfiguration(String iDatabaseName,
boolean createIfNotPresent) |
ODistributedServerManager.DB_STATUS |
getDatabaseStatus(String iNode,
String iDatabaseName) |
ODistributedStrategy |
getDistributedStrategy() |
long |
getLastClusterChangeOn() |
com.orientechnologies.orient.core.record.impl.ODocument |
getLocalNodeConfiguration() |
int |
getLocalNodeId() |
String |
getLocalNodeName() |
Lock |
getLock(String iLockName)
Gets a distributed lock
|
ODistributedMessageService |
getMessageService() |
long |
getNextMessageIdCounter() |
com.orientechnologies.orient.core.record.impl.ODocument |
getNodeConfigurationByUuid(String iNode,
boolean useCache) |
int |
getNodeIdByName(String node) |
String |
getNodeNameById(int id) |
ODistributedServerManager.NODE_STATUS |
getNodeStatus() |
String |
getNodeUuidByName(String name) |
List<String> |
getOnlineNodes(String iDatabaseName) |
ORemoteServerController |
getRemoteServer(String nodeName) |
OServer |
getServerInstance() |
com.orientechnologies.orient.core.record.impl.ODocument |
getStats() |
com.orientechnologies.orient.core.storage.OStorage |
getStorage(String databaseName) |
ORemoteTaskFactory |
getTaskFactory() |
boolean |
installDatabase(boolean iStartup,
String databaseName,
com.orientechnologies.orient.core.record.impl.ODocument config,
boolean forceDeployment,
boolean tryWithDeltaFirst) |
boolean |
isEnabled() |
boolean |
isNodeAvailable(String iNodeName) |
boolean |
isNodeAvailable(String iNodeName,
String databaseName)
Available means not OFFLINE, so ONLINE or SYNCHRONIZING.
|
boolean |
isNodeOnline(String iNodeName,
String databaseName)
Returns true if the node status is ONLINE.
|
boolean |
isNodeStatusEqualsTo(String iNodeName,
String iDatabaseName,
ODistributedServerManager.DB_STATUS... statuses)
Checks the node status if it's one of the statuses received as argument.
|
boolean |
isOffline() |
void |
propagateSchemaChanges(com.orientechnologies.orient.core.db.ODatabaseInternal iStorage) |
boolean |
reassignClustersOwnership(String iNode,
String databaseName,
Set<String> clustersWithNotAvailableOwner,
boolean rebalance) |
ODistributedServerManager |
registerLifecycleListener(ODistributedLifecycleListener iListener) |
void |
removeServer(String nodeLeftName,
boolean removeOnlyDynamicServers) |
ODistributedResponse |
sendRequest(String iDatabaseName,
Collection<String> iClusterNames,
Collection<String> iTargetNodeNames,
ORemoteTask iTask,
long messageId,
ODistributedRequest.EXECUTION_MODE iExecutionMode,
Object localResult,
com.orientechnologies.common.util.OCallable<Void,ODistributedRequestId> iAfterSentCallback)
Sends a distributed request against multiple servers.
|
void |
setDatabaseStatus(String iNode,
String iDatabaseName,
ODistributedServerManager.DB_STATUS iStatus) |
void |
setDistributedStrategy(ODistributedStrategy streatgy) |
void |
setNodeStatus(ODistributedServerManager.NODE_STATUS iStatus) |
ODistributedServerManager |
unregisterLifecycleListener(ODistributedLifecycleListener iListener) |
void |
updateCachedDatabaseConfiguration(String iDatabaseName,
com.orientechnologies.orient.core.record.impl.ODocument cfg,
boolean iSaveToDisk,
boolean iDeployToCluster) |
void |
updateLastClusterChange() |
void |
waitUntilNodeOnline() |
void |
waitUntilNodeOnline(String nodeName,
String databaseName) |
static final String FILE_DISTRIBUTED_DB_CONFIG
boolean isNodeStatusEqualsTo(String iNodeName, String iDatabaseName, ODistributedServerManager.DB_STATUS... statuses)
iNodeName - Node nameiDatabaseName - Database namestatuses - vararg of statusesboolean isNodeAvailable(String iNodeName)
void waitUntilNodeOnline()
throws InterruptedException
InterruptedExceptionvoid waitUntilNodeOnline(String nodeName, String databaseName) throws InterruptedException
InterruptedExceptioncom.orientechnologies.orient.core.storage.OStorage getStorage(String databaseName)
OServer getServerInstance()
boolean isEnabled()
ODistributedServerManager registerLifecycleListener(ODistributedLifecycleListener iListener)
ODistributedServerManager unregisterLifecycleListener(ODistributedLifecycleListener iListener)
Object executeOnLocalNode(ODistributedRequestId reqId, ORemoteTask task, com.orientechnologies.orient.core.db.ODatabaseDocumentInternal database)
ORemoteServerController getRemoteServer(String nodeName) throws IOException
IOExceptionlong getLastClusterChangeOn()
ODistributedServerManager.NODE_STATUS getNodeStatus()
void setNodeStatus(ODistributedServerManager.NODE_STATUS iStatus)
boolean checkNodeStatus(ODistributedServerManager.NODE_STATUS string)
void removeServer(String nodeLeftName, boolean removeOnlyDynamicServers)
ODistributedServerManager.DB_STATUS getDatabaseStatus(String iNode, String iDatabaseName)
void setDatabaseStatus(String iNode, String iDatabaseName, ODistributedServerManager.DB_STATUS iStatus)
ODistributedMessageService getMessageService()
ODistributedStrategy getDistributedStrategy()
void setDistributedStrategy(ODistributedStrategy streatgy)
void updateCachedDatabaseConfiguration(String iDatabaseName, com.orientechnologies.orient.core.record.impl.ODocument cfg, boolean iSaveToDisk, boolean iDeployToCluster)
long getNextMessageIdCounter()
void updateLastClusterChange()
boolean reassignClustersOwnership(String iNode, String databaseName, Set<String> clustersWithNotAvailableOwner, boolean rebalance)
boolean isNodeAvailable(String iNodeName, String databaseName)
boolean isNodeOnline(String iNodeName, String databaseName)
int getAvailableNodes(String iDatabaseName)
int getAvailableNodes(Collection<String> iNodes, String databaseName)
boolean isOffline()
int getLocalNodeId()
String getLocalNodeName()
com.orientechnologies.orient.core.record.impl.ODocument getClusterConfiguration()
String getNodeNameById(int id)
int getNodeIdByName(String node)
com.orientechnologies.orient.core.record.impl.ODocument getNodeConfigurationByUuid(String iNode, boolean useCache)
com.orientechnologies.orient.core.record.impl.ODocument getLocalNodeConfiguration()
void propagateSchemaChanges(com.orientechnologies.orient.core.db.ODatabaseInternal iStorage)
Lock getLock(String iLockName)
iLockName - name of the lockODistributedConfiguration getDatabaseConfiguration(String iDatabaseName)
ODistributedConfiguration getDatabaseConfiguration(String iDatabaseName, boolean createIfNotPresent)
ODistributedResponse sendRequest(String iDatabaseName, Collection<String> iClusterNames, Collection<String> iTargetNodeNames, ORemoteTask iTask, long messageId, ODistributedRequest.EXECUTION_MODE iExecutionMode, Object localResult, com.orientechnologies.common.util.OCallable<Void,ODistributedRequestId> iAfterSentCallback)
iDatabaseName - iClusterNames - iTargetNodeNames - iTask - messageId - Message Id as longiExecutionMode - localResult - It's the result of the request executed locallyiAfterSentCallback - com.orientechnologies.orient.core.record.impl.ODocument getStats()
boolean installDatabase(boolean iStartup,
String databaseName,
com.orientechnologies.orient.core.record.impl.ODocument config,
boolean forceDeployment,
boolean tryWithDeltaFirst)
ORemoteTaskFactory getTaskFactory()
ODistributedConflictResolverFactory getConflictResolverFactory()
Copyright © 2009–2016 OrientDB. All rights reserved.