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 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) static StringgetName()booleanvoidonNodeJoined(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
-
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() -
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
-
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
-
onServerRemoved
-
getClusterConfiguration
- Specified by:
getClusterConfigurationin interfaceODistributedServerManager
-
getDatabase
- Specified by:
getDatabasein interfaceODistributedServerManager
-