
public class OServer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected OContextConfiguration |
contextConfiguration |
protected ODistributedServerManager |
distributedManager |
protected OConfigurableHooksManager |
hookManager |
protected List<OServerLifecycleListener> |
lifecycleListeners |
protected ReentrantLock |
lock |
protected List<OServerNetworkListener> |
networkListeners |
protected Map<String,Class<? extends ONetworkProtocol>> |
networkProtocols |
protected Map<String,OServerSocketFactory> |
networkSocketFactories |
protected OServerPluginManager |
pluginManager |
protected boolean |
rejectRequests |
protected boolean |
running |
protected OServerConfigurationManager |
serverCfg |
protected OServerSecurity |
serverSecurity |
protected OServerShutdownHook |
shutdownHook |
protected Date |
startedOn |
| Constructor and Description |
|---|
OServer() |
OServer(boolean shutdownEngineOnExit) |
protected ReentrantLock lock
protected volatile boolean running
protected volatile boolean rejectRequests
protected OServerConfigurationManager serverCfg
protected OContextConfiguration contextConfiguration
protected OServerShutdownHook shutdownHook
protected Map<String,Class<? extends ONetworkProtocol>> networkProtocols
protected Map<String,OServerSocketFactory> networkSocketFactories
protected List<OServerNetworkListener> networkListeners
protected List<OServerLifecycleListener> lifecycleListeners
protected OServerPluginManager pluginManager
protected OConfigurableHooksManager hookManager
protected ODistributedServerManager distributedManager
protected OServerSecurity serverSecurity
protected Date startedOn
public OServer()
throws ClassNotFoundException,
MalformedObjectNameException,
NullPointerException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
NotCompliantMBeanException
public OServer(boolean shutdownEngineOnExit)
throws ClassNotFoundException,
MalformedObjectNameException,
NullPointerException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
NotCompliantMBeanException
public static OServer startFromFileConfig(String config) throws ClassNotFoundException, MalformedObjectNameException, InstanceAlreadyExistsException, NotCompliantMBeanException, MBeanRegistrationException, InvocationTargetException, NoSuchMethodException, InstantiationException, IOException, IllegalAccessException
public static OServer startFromClasspathConfig(String config) throws ClassNotFoundException, MalformedObjectNameException, InstanceAlreadyExistsException, NotCompliantMBeanException, MBeanRegistrationException, InvocationTargetException, NoSuchMethodException, InstantiationException, IOException, IllegalAccessException
public static OServer startFromStreamConfig(InputStream config) throws ClassNotFoundException, MalformedObjectNameException, InstanceAlreadyExistsException, NotCompliantMBeanException, MBeanRegistrationException, InvocationTargetException, NoSuchMethodException, InstantiationException, IOException, IllegalAccessException
public static void unregisterServerInstance(String iServerId)
public void setExtensionClassLoader(ClassLoader extensionClassLoader)
ClassLoader used to load extensions.public ClassLoader getExtensionClassLoader()
ClassLoader used to load extensions.public OServerSecurity getSecurity()
public boolean isActive()
public OClientConnectionManager getClientConnectionManager()
public OHttpSessionManager getHttpSessionManager()
public OPushManager getPushManager()
public void saveConfiguration()
throws IOException
IOExceptionpublic void restart()
throws ClassNotFoundException,
InvocationTargetException,
InstantiationException,
NoSuchMethodException,
IllegalAccessException,
IOException
public OSystemDatabase getSystemDatabase()
public String getServerId()
public OServer startup() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IllegalArgumentException, SecurityException, InvocationTargetException, NoSuchMethodException
public OServer startup(File iConfigurationFile) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IllegalArgumentException, SecurityException, InvocationTargetException, NoSuchMethodException
public OServer startup(String iConfiguration) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IllegalArgumentException, SecurityException, InvocationTargetException, NoSuchMethodException, IOException
public OServer startup(InputStream iInputStream) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IllegalArgumentException, SecurityException, InvocationTargetException, NoSuchMethodException, IOException
public OServer startup(OServerConfiguration iConfiguration) throws IllegalArgumentException, SecurityException, InvocationTargetException, NoSuchMethodException, IOException
public OServer startupFromConfiguration() throws IllegalArgumentException, SecurityException, InvocationTargetException, NoSuchMethodException, IOException
public OServer activate() throws ClassNotFoundException, InstantiationException, IllegalAccessException
public void removeShutdownHook()
public boolean shutdown()
protected boolean deinit()
public boolean rejectRequests()
public void waitForShutdown()
protected void loadDatabases()
public String getDatabaseDirectory()
public ThreadGroup getServerThreadGroup()
public OServerUserConfiguration serverLogin(String iUser, String iPassword, String iResource)
public boolean authenticate(String iUserName, String iPassword, String iResourceToCheck)
iUserName - Username to authenticateiPassword - Password in clearprotected OServerUserConfiguration authenticateUser(String iUserName, String iPassword, String iResourceToCheck)
public boolean isAllowed(String iUserName, String iResourceToCheck)
iUserName - Username to authenticatepublic OServerUserConfiguration getUser(String iUserName)
public void dropUser(String iUserName) throws IOException
IOExceptionpublic boolean existsStoragePath(String iURL)
public OServerConfiguration getConfiguration()
public Map<String,Class<? extends ONetworkProtocol>> getNetworkProtocols()
public List<OServerNetworkListener> getNetworkListeners()
public <RET extends OServerNetworkListener> RET getListenerByProtocol(Class<? extends ONetworkProtocol> iProtocolClass)
public Collection<OServerPluginInfo> getPlugins()
public OContextConfiguration getContextConfiguration()
public <RET extends OServerPlugin> RET getPluginByClass(Class<RET> iPluginClass)
public <RET extends OServerPlugin> RET getPlugin(String iName)
public void addUser(String iName, String iPassword, String iPermissions) throws IOException
IOExceptionpublic OServer registerLifecycleListener(OServerLifecycleListener iListener)
public OServer unregisterLifecycleListener(OServerLifecycleListener iListener)
public ODatabaseDocumentInternal openDatabase(String iDbUrl, OToken iToken)
public ODatabaseDocumentInternal openDatabase(String iDbUrl, String user, String password)
public ODatabaseDocumentInternal openDatabase(String iDbUrl, String user, String password, ONetworkProtocolData data)
public ODatabaseDocumentInternal openDatabase(String iDbUrl, String user, String password, ONetworkProtocolData data, boolean iBypassAccess)
public ODatabaseDocumentInternal openDatabase(String database)
public ODistributedServerManager getDistributedManager()
public void setServerRootDirectory(String rootDirectory)
protected void initFromConfiguration()
public OConfigurableHooksManager getHookManager()
protected void loadUsers()
throws IOException
IOExceptionprotected void loadStorages()
protected void createDefaultServerUsers()
throws IOException
IOExceptionpublic OServerPluginManager getPluginManager()
protected void registerPlugins()
throws InstantiationException,
IllegalAccessException,
ClassNotFoundException
protected void defaultSettings()
public OTokenHandler getTokenHandler()
public ThreadGroup getThreadGroup()
public OrientDBInternal getDatabases()
public OrientDB getContext()
public void dropDatabase(String databaseName)
public boolean existsDatabase(String databaseName)
public void createDatabase(String databaseName, ODatabaseType type, OrientDBConfig config)
public Date getStartedOn()
Copyright © 2009–2025 OrientDB. All rights reserved.