Interface OServerPlugin

All Superinterfaces:
OService
All Known Implementing Classes:
OAutomaticBackup, OCustomSQLFunctionPlugin, ODefaultSyslog, ODistributedPlugin, OEnterpriseAgent, OEnterpriseServerImpl, OETLPlugin, OGraphServerHandler, OGremlinServerPlugin, OJMXPlugin, OProxyServer, OSecurityPlugin, 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

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

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

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

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

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

      default 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

      default void sendShutdown()
    • getContent

      default Object getContent(String iURL)
    • getConfigClass

      default Class<?> getConfigClass()