public class Orient extends OListenerManger<OOrientListener>
Modifier and Type | Class and Description |
---|---|
class |
Orient.OShutdownOrientDBInstancesHandler
Closes all storages and shutdown all engines.
|
class |
Orient.OShutdownWorkersHandler
Shutdown thread group which is used in methods
submit(Callable) and submit(Runnable) . |
Modifier and Type | Field and Description |
---|---|
static String |
ORIENTDB_HOME |
static String |
URL_SYNTAX |
browseListeners, getListenersCopy
public static final String ORIENTDB_HOME
public static final String URL_SYNTAX
public boolean isInsideWebContainer()
public static Orient instance()
public static Orient startUp(boolean insideWebContainer)
public static String getHomePath()
public static String getTempPath()
public static boolean isRegisterDatabaseByPath()
setRegisterDatabaseByPath(boolean)
public static void setRegisterDatabaseByPath(boolean iValue)
public ORecordConflictStrategyFactory getRecordConflictStrategy()
public Orient startup()
public void addShutdownHandler(OShutdownHandler shutdownHandler)
shutdown()
call.shutdownHandler
- Shutdown handler instance.public Orient shutdown()
public boolean isActive()
@Deprecated public ThreadPoolExecutor getWorkers()
submit(java.util.concurrent.Callable)
instead.public boolean isWindowsOS()
public void registerEngine(OEngine iEngine) throws IllegalArgumentException
IllegalArgumentException
public OEngine getEngine(String engineName)
engineName
- Engine name to retrievepublic OEngine getEngineIfRunning(String engineName)
engineName
- the name of the engine to obtain.null
if no such engine known or the engine is
not running.public OEngine getRunningEngine(String engineName)
engineName
- the name of the engine to obtain.null
.IllegalStateException
- if an engine with the given is not found or failed to start.public Collection<OStorage> getStorages()
public void removeShutdownHook()
public OSignalHandler getSignalHandler()
public void removeSignalHandler()
public boolean isSelfManagedShutdown()
public Iterator<ODatabaseLifecycleListener> getDbLifecycleListeners()
public void addDbLifecycleListener(ODatabaseLifecycleListener iListener)
public void removeDbLifecycleListener(ODatabaseLifecycleListener iListener)
public ThreadGroup getThreadGroup()
public ODatabaseThreadLocalFactory getDatabaseThreadFactory()
public ORecordFactoryManager getRecordFactoryManager()
public void setRecordFactoryManager(ORecordFactoryManager iRecordFactoryManager)
public OProfiler getProfiler()
public void setProfiler(OAbstractProfiler iProfiler)
public OSecuritySystem getSecurity()
public void setSecurity(OSecuritySystem security)
public void registerThreadDatabaseFactory(ODatabaseThreadLocalFactory iDatabaseFactory)
public void registerListener(OOrientListener listener)
registerListener
in class OListenerManger<OOrientListener>
public void unregisterListener(OOrientListener listener)
unregisterListener
in class OListenerManger<OOrientListener>
public void registerOrientStartupListener(OOrientStartupListener listener)
public void registerWeakOrientStartupListener(OOrientStartupListener listener)
public void unregisterOrientStartupListener(OOrientStartupListener listener)
public void unregisterWeakOrientStartupListener(OOrientStartupListener listener)
public void registerWeakOrientShutdownListener(OOrientShutdownListener listener)
public void unregisterWeakOrientShutdownListener(OOrientShutdownListener listener)
public void resetListeners()
resetListeners
in class OListenerManger<OOrientListener>
public OLocalRecordCacheFactory getLocalRecordCache()
public boolean isRunningDistributed()
public void setRunningDistributed(boolean runningDistributed)
public void onEmbeddedFactoryInit(OrientDBEmbedded embeddedFactory)
public void onEmbeddedFactoryClose(OrientDBEmbedded embeddedFactory)
public void addOrientDB(OrientDBInternal internal)
public void removeOrientDB(OrientDBInternal internal)
Copyright © 2009–2020 OrientDB. All rights reserved.