Package com.orientechnologies.agent
Class OEnterpriseAgent
java.lang.Object
com.orientechnologies.orient.server.plugin.OServerPluginAbstract
com.orientechnologies.agent.OEnterpriseAgent
- All Implemented Interfaces:
OService,ODatabaseLifecycleListener,OEnterpriseEndpoint,OServerLifecycleListener,OPluginLifecycleListener,OServerPlugin
public class OEnterpriseAgent
extends OServerPluginAbstract
implements ODatabaseLifecycleListener, OPluginLifecycleListener, OServerLifecycleListener, OEnterpriseEndpoint
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.db.ODatabaseLifecycleListener
ODatabaseLifecycleListener.PRIORITY -
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.server.plugin.OServerPluginAbstract
enabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfig(OServer oServer, OServerParameterConfiguration[] iParams) Configures the handler.getName()<T extends OEnterpriseService>
Optional<T>getServiceByClass(Class<T> klass) voidhaSetDbStatus(ODatabaseDocument database, String nodeName, String status) voidhaSetOwner(ODatabaseDocument database, String clusterName, String owner) voidhaSetRole(ODatabaseDocument database, String serverName, String role) voidDeprecated.booleanvoidvoidonAfterClientRequest(OClientConnection iConnection, byte iRequestType) Callback invoked after a client request is processed.voidonAfterConfig(OServerPlugin plugin, OServerParameterConfiguration[] cfg) voidvoidonAfterShutdown(OServerPlugin plugin) voidonAfterStartup(OServerPlugin plugin) voidvoidonBeforeClientRequest(OClientConnection iConnection, byte iRequestType) Callback invoked before a client request is processed.voidonBeforeConfig(OServerPlugin plugin, OServerParameterConfiguration[] cfg) voidvoidonBeforeShutdown(OServerPlugin plugin) voidonBeforeStartup(OServerPlugin plugin) voidonLocalNodeConfigurationRequest(ONodeConfig iConfiguration) Event called during the retrieving of distributed configuration, usually at startup and when the cluster shape changes.voidshutdown()voidstartup()Methods inherited from class com.orientechnologies.orient.server.plugin.OServerPluginAbstract
getContent, onClientConnection, onClientDisconnection, onClientError, sendShutdownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.db.ODatabaseLifecycleListener
getPriority, onClose, onCreate, onCreateClass, onCreateView, onDrop, onDropClass, onDropView, onOpenMethods inherited from interface com.orientechnologies.orient.server.plugin.OServerPlugin
onSocketAccepted, onSocketDestroyed
-
Field Details
-
server
-
-
Constructor Details
-
OEnterpriseAgent
public OEnterpriseAgent()
-
-
Method Details
-
config
Description copied from interface:OServerPluginConfigures the handler. Called at startup.- Specified by:
configin interfaceOServerPlugin- Overrides:
configin classOServerPluginAbstract
-
getName
-
startup
public void startup()- Specified by:
startupin interfaceOService- Overrides:
startupin classOServerPluginAbstract
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceOService- Overrides:
shutdownin classOServerPluginAbstract
-
onLocalNodeConfigurationRequest
Description copied from interface:ODatabaseLifecycleListenerEvent called during the retrieving of distributed configuration, usually at startup and when the cluster shape changes. You can use this event to enrich the ODocument sent to the client with custom properties.- Specified by:
onLocalNodeConfigurationRequestin interfaceODatabaseLifecycleListener
-
installDistributedCommands
Deprecated. -
onBeforeConfig
- Specified by:
onBeforeConfigin interfaceOPluginLifecycleListener
-
onAfterConfig
- Specified by:
onAfterConfigin interfaceOPluginLifecycleListener
-
onBeforeStartup
- Specified by:
onBeforeStartupin interfaceOPluginLifecycleListener
-
onAfterStartup
- Specified by:
onAfterStartupin interfaceOPluginLifecycleListener
-
onBeforeShutdown
- Specified by:
onBeforeShutdownin interfaceOPluginLifecycleListener
-
onAfterShutdown
- Specified by:
onAfterShutdownin interfaceOPluginLifecycleListener
-
onBeforeClientRequest
Description copied from interface:OServerPluginCallback invoked before a client request is processed.- Specified by:
onBeforeClientRequestin interfaceOServerPlugin- Overrides:
onBeforeClientRequestin classOServerPluginAbstract
-
isDistributed
public boolean isDistributed() -
getDistributedManager
-
getNodeName
-
onBeforeActivate
public void onBeforeActivate()- Specified by:
onBeforeActivatein interfaceOServerLifecycleListener
-
onAfterActivate
public void onAfterActivate()- Specified by:
onAfterActivatein interfaceOServerLifecycleListener
-
onBeforeDeactivate
public void onBeforeDeactivate()- Specified by:
onBeforeDeactivatein interfaceOServerLifecycleListener
-
onAfterDeactivate
public void onAfterDeactivate()- Specified by:
onAfterDeactivatein interfaceOServerLifecycleListener
-
onAfterClientRequest
Description copied from interface:OServerPluginCallback invoked after a client request is processed.- Specified by:
onAfterClientRequestin interfaceOServerPlugin- Overrides:
onAfterClientRequestin classOServerPluginAbstract
-
getServiceByClass
-
haSetDbStatus
- Specified by:
haSetDbStatusin interfaceOEnterpriseEndpoint
-
haSetRole
- Specified by:
haSetRolein interfaceOEnterpriseEndpoint
-
haSetOwner
- Specified by:
haSetOwnerin interfaceOEnterpriseEndpoint
-
getEnterpriseServer
-