Interface OServerPlugin

All Superinterfaces:
OService
All Known Subinterfaces:
OServerHandler
All Known Implementing Classes:
OAutomaticBackup, OCustomSQLFunctionPlugin, ODefaultSyslog, ODistributedPlugin, OEnterpriseAgent, OEnterpriseServerImpl, OETLPlugin, OGraphServerHandler, OGremlinServerPlugin, OHazelcastPlugin, OJMXPlugin, OLiveQueryPlugin, OMailPlugin, OProxyServer, OSecurityPlugin, OServerHandlerAbstract, OServerPluginAbstract, OServerSideScriptInterpreter

public interface OServerPlugin extends OService
Server handler interface. Used when configured in the server configuration.
Author:
Luca Garulli (l.garulli--(at)--orientdb.com)
  • Method Details

    • onClientConnection

      void onClientConnection(OClientConnection iConnection)
      Callback invoked when a client connection begins.
    • onClientDisconnection

      void onClientDisconnection(OClientConnection iConnection)
      Callback invoked when a client connection ends.
    • onBeforeClientRequest

      void onBeforeClientRequest(OClientConnection iConnection, byte iRequestType)
      Callback invoked before a client request is processed.
    • onAfterClientRequest

      void onAfterClientRequest(OClientConnection iConnection, byte iRequestType)
      Callback invoked after a client request is processed.
    • onClientError

      void onClientError(OClientConnection iConnection, Throwable iThrowable)
      Callback invoked when a client connection has errors.
      Parameters:
      iThrowable - Throwable instance received
    • config

      void config(OServer oServer, OServerParameterConfiguration[] iParams)
      Configures the handler. Called at startup.
    • onSocketAccepted

      default void onSocketAccepted(ONetworkProtocol protocol)
    • onSocketDestroyed

      default void onSocketDestroyed(ONetworkProtocol protocol)
    • sendShutdown

      void sendShutdown()
    • getContent

      Object getContent(String iURL)