Class OEnterpriseServerImpl
java.lang.Object
com.orientechnologies.enterprise.server.OEnterpriseServerImpl
- All Implemented Interfaces:
OService,OEnterpriseServer,ODatabaseLifecycleListener,ODatabaseListener,OServerLifecycleListener,OServerPlugin
public class OEnterpriseServerImpl
extends Object
implements OEnterpriseServer, OServerPlugin, ODatabaseLifecycleListener, ODatabaseListener, OServerLifecycleListener
Created by Enrico Risa on 16/07/2018.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.db.ODatabaseLifecycleListener
ODatabaseLifecycleListener.PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfig(OServer oServer, OServerParameterConfiguration[] oServerParameterConfigurations) Configures the handler.booleanexistsDatabase(String databaseName) getContent(String s) getName()getQueryInfo(OResultSet resultSet) getQueryStats(Optional<String> database) <T extends OEnterpriseService>
Optional<T>getServiceByClass(Class<T> klass) voidinterruptConnection(Integer connectionId) listQueries(Optional<Function<OClientConnection, Boolean>> filter) voidvoidonAfterClientRequest(OClientConnection oClientConnection, byte b) Callback invoked after a client request is processed.voidonBeforeClientRequest(OClientConnection oClientConnection, byte b) Callback invoked before a client request is processed.voidonClientConnection(OClientConnection oClientConnection) Callback invoked when a client connection begins.voidonClientDisconnection(OClientConnection oClientConnection) Callback invoked when a client connection ends.voidonClientError(OClientConnection oClientConnection, Throwable throwable) Callback invoked when a client connection has errors.voidonCommandEnd(ODatabase database, OResultSet result) voidonCommandStart(ODatabase database, OResultSet result) voidonCreate(ODatabaseInternal iDatabase) voidonDrop(ODatabaseInternal iDatabase) voidonOpen(ODatabaseInternal iDatabase) voidonSocketAccepted(ONetworkProtocol protocol) voidonSocketDestroyed(ONetworkProtocol protocol) voidvoidvoidregisterFunction(OSQLFunction function) voidregisterStatelessCommand(OServerCommand iCommand) voidvoidvoidshutdown()voidstartup()voidvoidvoidunregisterFunction(String function) voidunregisterStatelessCommand(Class<? extends OServerCommand> iCommandClass) 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
onClose, onCreateClass, onCreateView, onDropClass, onDropView, onLocalNodeConfigurationRequestMethods inherited from interface com.orientechnologies.orient.core.db.ODatabaseListener
onAfterTxCommit, onAfterTxRollback, onBeforeTxBegin, onBeforeTxCommit, onBeforeTxRollback, onClose, onCorruptionRepairDatabase, onCreate, onCreateClass, onCreateView, onDelete, onDropClass, onDropView, onOpenMethods inherited from interface com.orientechnologies.orient.server.OServerLifecycleListener
onAfterDeactivate, onBeforeActivate, onBeforeDeactivate
-
Constructor Details
-
OEnterpriseServerImpl
-
-
Method Details
-
registerConnectionListener
- Specified by:
registerConnectionListenerin interfaceOEnterpriseServer
-
unregisterConnectionListener
- Specified by:
unregisterConnectionListenerin interfaceOEnterpriseServer
-
registerDatabaseListener
- Specified by:
registerDatabaseListenerin interfaceOEnterpriseServer
-
unRegisterDatabaseListener
- Specified by:
unRegisterDatabaseListenerin interfaceOEnterpriseServer
-
getAvailableStorageNames
- Specified by:
getAvailableStorageNamesin interfaceOEnterpriseServer
-
getName
-
startup
public void startup() -
shutdown
public void shutdown()- Specified by:
shutdownin interfaceOEnterpriseServer- Specified by:
shutdownin interfaceOService
-
getDatabases
- Specified by:
getDatabasesin interfaceOEnterpriseServer
-
interruptConnection
- Specified by:
interruptConnectionin interfaceOEnterpriseServer
-
onClientConnection
Description copied from interface:OServerPluginCallback invoked when a client connection begins.- Specified by:
onClientConnectionin interfaceOServerPlugin
-
onSocketAccepted
- Specified by:
onSocketAcceptedin interfaceOServerPlugin
-
onSocketDestroyed
- Specified by:
onSocketDestroyedin interfaceOServerPlugin
-
getSystemDatabase
- Specified by:
getSystemDatabasein interfaceOEnterpriseServer
-
getNodesManager
- Specified by:
getNodesManagerin interfaceOEnterpriseServer
-
getDistributedManager
- Specified by:
getDistributedManagerin interfaceOEnterpriseServer
-
existsDatabase
- Specified by:
existsDatabasein interfaceOEnterpriseServer
-
restore
- Specified by:
restorein interfaceOEnterpriseServer
-
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 interfaceOServerPluginthrowable- Throwable instance received
-
config
Description copied from interface:OServerPluginConfigures the handler. Called at startup.- Specified by:
configin interfaceOServerPlugin
-
sendShutdown
public void sendShutdown()- Specified by:
sendShutdownin interfaceOServerPlugin
-
getContent
- Specified by:
getContentin interfaceOServerPlugin
-
getPriority
- Specified by:
getPriorityin interfaceODatabaseLifecycleListener
-
onAfterActivate
public void onAfterActivate()- Specified by:
onAfterActivatein interfaceOServerLifecycleListener
-
onCreate
- Specified by:
onCreatein interfaceODatabaseLifecycleListener
-
onOpen
- Specified by:
onOpenin interfaceODatabaseLifecycleListener
-
onDrop
- Specified by:
onDropin interfaceODatabaseLifecycleListener
-
registerFunction
- Specified by:
registerFunctionin interfaceOEnterpriseServer
-
registerStatelessCommand
- Specified by:
registerStatelessCommandin interfaceOEnterpriseServer
-
unregisterStatelessCommand
- Specified by:
unregisterStatelessCommandin interfaceOEnterpriseServer
-
listCommands
- Specified by:
listCommandsin interfaceOEnterpriseServer
-
getConnections
- Specified by:
getConnectionsin interfaceOEnterpriseServer
-
unregisterFunction
- Specified by:
unregisterFunctionin interfaceOEnterpriseServer
-
getSecurity
- Specified by:
getSecurityin interfaceOEnterpriseServer
-
listQueries
- Specified by:
listQueriesin interfaceOEnterpriseServer
-
getQueryStats
- Specified by:
getQueryStatsin interfaceOEnterpriseServer
-
onCommandStart
- Specified by:
onCommandStartin interfaceODatabaseListener
-
onCommandEnd
- Specified by:
onCommandEndin interfaceODatabaseListener
-
getQueryInfo
- Specified by:
getQueryInfoin interfaceOEnterpriseServer
-
getServiceByClass
- Specified by:
getServiceByClassin interfaceOEnterpriseServer
-