Class OServerPluginAbstract
java.lang.Object
com.orientechnologies.orient.server.plugin.OServerPluginAbstract
- All Implemented Interfaces:
OService,OServerPlugin
- Direct Known Subclasses:
OAutomaticBackup,OCustomSQLFunctionPlugin,ODefaultSyslog,ODistributedPlugin,OEnterpriseAgent,OETLPlugin,OGraphServerHandler,OGremlinServerPlugin,OJMXPlugin,OLiveQueryPlugin,OMailPlugin,OProxyServer,OSecurityPlugin,OServerHandlerAbstract,OServerSideScriptInterpreter
Abstract class to make OServerHandler implementation easier.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfig(OServer oServer, OServerParameterConfiguration[] iParams) Configures the handler.getContent(String iURL) voidonAfterClientRequest(OClientConnection iConnection, byte iRequestType) Callback invoked after a client request is processed.voidonBeforeClientRequest(OClientConnection iConnection, byte iRequestType) Callback invoked before a client request is processed.voidonClientConnection(OClientConnection iConnection) Callback invoked when a client connection begins.voidonClientDisconnection(OClientConnection iConnection) Callback invoked when a client connection ends.voidonClientError(OClientConnection iConnection, Throwable iThrowable) Callback invoked when a client connection has errors.voidvoidshutdown()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.server.plugin.OServerPlugin
onSocketAccepted, onSocketDestroyed
-
Field Details
-
enabled
protected boolean enabled
-
-
Constructor Details
-
OServerPluginAbstract
public OServerPluginAbstract()
-
-
Method Details
-
startup
public void startup() -
shutdown
public void shutdown() -
sendShutdown
public void sendShutdown()- Specified by:
sendShutdownin interfaceOServerPlugin
-
config
Description copied from interface:OServerPluginConfigures the handler. Called at startup.- Specified by:
configin interfaceOServerPlugin
-
onClientConnection
Description copied from interface:OServerPluginCallback invoked when a client connection begins.- Specified by:
onClientConnectionin interfaceOServerPlugin
-
onClientDisconnection
Description copied from interface:OServerPluginCallback invoked when a client connection ends.- Specified by:
onClientDisconnectionin interfaceOServerPlugin
-
onBeforeClientRequest
Description copied from interface:OServerPluginCallback invoked before a client request is processed.- Specified by:
onBeforeClientRequestin interfaceOServerPlugin
-
onAfterClientRequest
Description copied from interface:OServerPluginCallback invoked after a client request is processed.- Specified by:
onAfterClientRequestin interfaceOServerPlugin
-
onClientError
Description copied from interface:OServerPluginCallback invoked when a client connection has errors.- Specified by:
onClientErrorin interfaceOServerPluginiThrowable- Throwable instance received
-
getContent
- Specified by:
getContentin interfaceOServerPlugin
-