
public class OServer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.orientechnologies.orient.core.config.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 |
running |
protected OServerConfigurationManager |
serverCfg |
protected OServerSecurity |
serverSecurity |
protected OServerShutdownHook |
shutdownHook |
| Constructor and Description |
|---|
OServer() |
OServer(boolean shutdownEngineOnExit) |
| Modifier and Type | Method and Description |
|---|---|
OServer |
activate() |
void |
addTemporaryUser(String iName,
String iPassword,
String iPermissions) |
void |
addUser(String iName,
String iPassword,
String iPermissions) |
boolean |
authenticate(String iUserName,
String iPassword,
String iResourceToCheck)
Authenticate a server user.
|
protected OServerUserConfiguration |
authenticateUser(String iUserName,
String iPassword,
String iResourceToCheck) |
protected void |
createDefaultServerUsers() |
protected void |
defaultSettings() |
protected boolean |
deinit() |
void |
dropUser(String iUserName) |
boolean |
existsStoragePath(String iURL) |
Map<String,String> |
getAvailableStorageNames() |
OClientConnectionManager |
getClientConnectionManager() |
OServerConfiguration |
getConfiguration() |
com.orientechnologies.orient.core.config.OContextConfiguration |
getContextConfiguration() |
String |
getDatabaseDirectory() |
com.orientechnologies.orient.core.db.OPartitionedDatabasePoolFactory |
getDatabasePoolFactory() |
ODistributedServerManager |
getDistributedManager() |
ClassLoader |
getExtensionClassLoader()
Get the preferred
ClassLoader used to load extensions. |
static OServer |
getInstance(String iServerId) |
static OServer |
getInstanceByPath(String iPath) |
<RET extends OServerNetworkListener> |
getListenerByProtocol(Class<? extends ONetworkProtocol> iProtocolClass) |
List<OServerNetworkListener> |
getNetworkListeners() |
Map<String,Class<? extends ONetworkProtocol>> |
getNetworkProtocols() |
<RET extends OServerPlugin> |
getPlugin(String iName) |
<RET extends OServerPlugin> |
getPluginByClass(Class<RET> iPluginClass) |
OServerPluginManager |
getPluginManager() |
Collection<OServerPluginInfo> |
getPlugins() |
OServerSecurity |
getSecurity() |
ThreadGroup |
getServerThreadGroup() |
String |
getStoragePath(String iName) |
OSystemDatabase |
getSystemDatabase() |
OTokenHandler |
getTokenHandler() |
OServerUserConfiguration |
getUser(String iUserName) |
Object |
getVariable(String iName) |
protected void |
initFromConfiguration() |
boolean |
isActive() |
boolean |
isAllowed(String iUserName,
String iResourceToCheck)
Checks if a server user is allowed to operate with a resource.
|
protected void |
loadDatabases()
Opens all the available server's databases.
|
protected void |
loadStorages()
Load configured storages.
|
protected void |
loadUsers() |
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx |
openDatabase(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx database,
String user,
String password,
ONetworkProtocolData data,
boolean iBypassAccess) |
com.orientechnologies.orient.core.db.ODatabaseInternal |
openDatabase(com.orientechnologies.orient.core.db.ODatabaseInternal database) |
com.orientechnologies.orient.core.db.ODatabase<?> |
openDatabase(String iDbUrl,
com.orientechnologies.orient.core.metadata.security.OToken iToken) |
com.orientechnologies.orient.core.db.ODatabase<?> |
openDatabase(String iDbUrl,
String user,
String password) |
com.orientechnologies.orient.core.db.ODatabase<?> |
openDatabase(String iDbUrl,
String user,
String password,
ONetworkProtocolData data) |
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx |
openDatabase(String iDbUrl,
String user,
String password,
ONetworkProtocolData data,
boolean iBypassAccess) |
void |
openDatabaseBypassingSecurity(com.orientechnologies.orient.core.db.ODatabaseInternal<?> database,
ONetworkProtocolData data,
String user) |
OServer |
registerLifecycleListener(OServerLifecycleListener iListener) |
protected void |
registerPlugins() |
static void |
registerServerInstance(String iServerId,
OServer iServer) |
void |
removeShutdownHook() |
void |
restart() |
void |
saveConfiguration() |
OServerUserConfiguration |
serverLogin(String iUser,
String iPassword,
String iResource) |
void |
setExtensionClassLoader(ClassLoader extensionClassLoader)
Set the preferred
ClassLoader used to load extensions. |
void |
setServerRootDirectory(String rootDirectory) |
OServer |
setVariable(String iName,
Object iValue) |
boolean |
shutdown() |
OServer |
startup() |
OServer |
startup(File iConfigurationFile) |
OServer |
startup(InputStream iInputStream) |
OServer |
startup(OServerConfiguration iConfiguration) |
OServer |
startup(String iConfiguration) |
OServer |
startupFromConfiguration() |
OServer |
unregisterLifecycleListener(OServerLifecycleListener iListener) |
void |
waitForShutdown() |
protected ReentrantLock lock
protected volatile boolean running
protected OServerConfigurationManager serverCfg
protected com.orientechnologies.orient.core.config.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
public OServer()
throws ClassNotFoundException,
MalformedObjectNameException,
NullPointerException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
NotCompliantMBeanException
public OServer(boolean shutdownEngineOnExit)
throws ClassNotFoundException,
MalformedObjectNameException,
NullPointerException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
NotCompliantMBeanException
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 void saveConfiguration()
throws IOException
IOExceptionpublic void restart()
throws ClassNotFoundException,
InvocationTargetException,
InstantiationException,
NoSuchMethodException,
IllegalAccessException,
IOException
public OSystemDatabase getSystemDatabase()
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 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 com.orientechnologies.orient.core.config.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 com.orientechnologies.orient.core.db.ODatabase<?> openDatabase(String iDbUrl, com.orientechnologies.orient.core.metadata.security.OToken iToken)
public com.orientechnologies.orient.core.db.ODatabase<?> openDatabase(String iDbUrl, String user, String password)
public com.orientechnologies.orient.core.db.ODatabase<?> openDatabase(String iDbUrl, String user, String password, ONetworkProtocolData data)
public com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx openDatabase(String iDbUrl, String user, String password, ONetworkProtocolData data, boolean iBypassAccess)
public com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx openDatabase(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx database,
String user,
String password,
ONetworkProtocolData data,
boolean iBypassAccess)
public void openDatabaseBypassingSecurity(com.orientechnologies.orient.core.db.ODatabaseInternal<?> database,
ONetworkProtocolData data,
String user)
public com.orientechnologies.orient.core.db.ODatabaseInternal openDatabase(com.orientechnologies.orient.core.db.ODatabaseInternal database)
public ODistributedServerManager getDistributedManager()
public com.orientechnologies.orient.core.db.OPartitionedDatabasePoolFactory getDatabasePoolFactory()
public void setServerRootDirectory(String rootDirectory)
protected void initFromConfiguration()
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()
Copyright © 2009–2016 OrientDB. All rights reserved.