Class ODistributedPlugin
java.lang.Object
com.orientechnologies.orient.server.distributed.impl.ODistributedPlugin
- All Implemented Interfaces:
OService,ODistributedServerManager,OServerPlugin
Plugin to manage the distributed environment.
- Author:
- Luca Garulli (l.garulli--at--orientechnologies.com)
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.server.distributed.ODistributedServerManager
ODistributedServerManager.DB_STATUS -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Fileprotected static final intprotected booleanprotected List<ODistributedLifecycleListener> protected static final Stringprotected static final Stringprotected OSignalHandler.OSignalListenerFields inherited from interface com.orientechnologies.orient.server.distributed.ODistributedServerManager
FILE_DISTRIBUTED_DB_CONFIG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidcloseRemoteServer(ONodeId node) voidconfig(OServer oServer, OServerParameterConfiguration[] iParams) Configures the handler.voidAvoids to dump the same configuration twice if it's unchanged since the last time.protected voidgetDatabase(String name) getDatabaseStatus(ONodeId iNode, String iDatabaseName) static StringgetName()getNodeConfigurationByUuid(String iNode, boolean useCache) voidinvokeOnDatabaseStatusChange(String node, String databaseName, ODistributedServerManager.DB_STATUS status) booleanvoidnotifyClients(String databaseName) voidnotifyNodeJoined(ONodeId joinedNodeName) voidnotifyNodeLeft(ONodeId joinedNodeName) voidonDatabaseEvent(String nodeName, String databaseName, ODistributedServerManager.DB_STATUS status) voidonNodeJoined(ONodeId joinedNodeId, String url) voidonServerRemoved(ONodeId nodeName) voidvoidvoidshutdown()voidstartup()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.server.plugin.OServerPlugin
getConfigClass, getContent, onAfterClientRequest, onBeforeClientRequest, onClientConnection, onClientDisconnection, onClientError, onSocketAccepted, onSocketDestroyed
-
Field Details
-
PAR_DEF_DISTRIB_DB_CONFIG
- See Also:
-
NODE_NAME_ENV
- See Also:
-
enabled
protected boolean enabled -
defaultDatabaseConfigFile
-
listeners
-
DEPLOY_DB_MAX_RETRIES
protected static final int DEPLOY_DB_MAX_RETRIES- See Also:
-
installingDatabases
-
signalListener
-
-
Constructor Details
-
ODistributedPlugin
public ODistributedPlugin()
-
-
Method Details
-
config
Description copied from interface:OServerPluginConfigures the handler. Called at startup.- Specified by:
configin interfaceOServerPlugin
-
getDefaultDatabaseConfigFile
- Specified by:
getDefaultDatabaseConfigFilein interfaceODistributedServerManager
-
setDefaultDatabaseConfigFile
-
startup
public void startup() -
registerLifecycleListener
- Specified by:
registerLifecycleListenerin interfaceODistributedServerManager
-
unregisterLifecycleListener
- Specified by:
unregisterLifecycleListenerin interfaceODistributedServerManager
-
shutdown
public void shutdown() -
getName
-
sendShutdown
public void sendShutdown()- Specified by:
sendShutdownin interfaceOServerPlugin
-
getServerInstance
- Specified by:
getServerInstancein interfaceODistributedServerManager
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceODistributedServerManager
-
getLocalNodeName
- Specified by:
getLocalNodeNamein interfaceODistributedServerManager
-
toString
-
getMessageService
- Specified by:
getMessageServicein interfaceODistributedServerManager
-
notifyClients
- Specified by:
notifyClientsin interfaceODistributedServerManager
-
onDatabaseEvent
public void onDatabaseEvent(String nodeName, String databaseName, ODistributedServerManager.DB_STATUS status) -
invokeOnDatabaseStatusChange
public void invokeOnDatabaseStatusChange(String node, String databaseName, ODistributedServerManager.DB_STATUS status) -
assignNodeName
protected void assignNodeName() -
closeRemoteServer
-
dumpServersStatus
public void dumpServersStatus()Avoids to dump the same configuration twice if it's unchanged since the last time. -
getListeningBinaryAddress
-
dumpStats
protected void dumpStats() -
onNodeJoined
-
notifyNodeJoined
-
notifyNodeLeft
-
getDatabaseStatus
- Specified by:
getDatabaseStatusin interfaceODistributedServerManager
-
onServerRemoved
-
getClusterConfiguration
- Specified by:
getClusterConfigurationin interfaceODistributedServerManager
-
getNodeConfigurationByUuid
- Specified by:
getNodeConfigurationByUuidin interfaceODistributedServerManager
-
getDatabase
- Specified by:
getDatabasein interfaceODistributedServerManager
-