Package com.orientechnologies.agent
Class OEnterpriseAgent
java.lang.Object
com.orientechnologies.agent.OEnterpriseAgent
- All Implemented Interfaces:
OService,ODatabaseLifecycleListener,OEnterpriseEndpoint,OServerLifecycleListener,OServerPlugin
public class OEnterpriseAgent
extends Object
implements OServerPlugin, ODatabaseLifecycleListener, OServerLifecycleListener, OEnterpriseEndpoint
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.db.ODatabaseLifecycleListener
ODatabaseLifecycleListener.PRIORITY -
Field Summary
Fields -
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.booleanvoidvoidvoidonLocalNodeConfigurationRequest(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 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.OServerLifecycleListener
onAfterDeactivate, onBeforeActivateMethods inherited from interface com.orientechnologies.orient.server.plugin.OServerPlugin
getConfigClass, getContent, onAfterClientRequest, onBeforeClientRequest, onClientConnection, onClientDisconnection, onClientError, onSocketAccepted, onSocketDestroyed, sendShutdown
-
Field Details
-
enabled
protected boolean enabled -
server
-
-
Constructor Details
-
OEnterpriseAgent
public OEnterpriseAgent()
-
-
Method Details
-
config
Description copied from interface:OServerPluginConfigures the handler. Called at startup.- Specified by:
configin interfaceOServerPlugin
-
getName
-
startup
public void startup() -
shutdown
public void shutdown() -
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- Parameters:
iConfiguration-
-
installDistributedCommands
Deprecated. -
isDistributed
public boolean isDistributed() -
getNodeName
-
onAfterActivate
public void onAfterActivate()- Specified by:
onAfterActivatein interfaceOServerLifecycleListener
-
onBeforeDeactivate
public void onBeforeDeactivate()- Specified by:
onBeforeDeactivatein interfaceOServerLifecycleListener
-
getServiceByClass
-
haSetDbStatus
- Specified by:
haSetDbStatusin interfaceOEnterpriseEndpoint
-
haSetRole
- Specified by:
haSetRolein interfaceOEnterpriseEndpoint
-
haSetOwner
- Specified by:
haSetOwnerin interfaceOEnterpriseEndpoint
-
getEnterpriseServer
-