public final class Celesta extends Object implements ICelesta
| Constructor and Description |
|---|
Celesta(BaseAppSettings appSettings) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Stops working of Celesta.
|
static Celesta |
createInstance()
Creates Celesta instance with properties specified in celesta.properties
file.
|
static Celesta |
createInstance(Properties properties)
Creates Celesta instance with the specified properties.
|
Collection<CallContext> |
getActiveContexts()
Returns the set of active (running) call contexts (for monitoring/debug
purposes).
|
ConnectionPool |
getConnectionPool() |
ru.curs.celesta.dbutils.adaptors.DBAdaptor |
getDBAdaptor() |
ILoggingManager |
getLoggingManager() |
IPermissionManager |
getPermissionManager() |
IProfiler |
getProfiler() |
Score |
getScore() |
Properties |
getSetupProperties() |
TriggerDispatcher |
getTriggerDispatcher() |
boolean |
isProfilemode()
Returns if profiling mode is set (whether the time of method calls
is written to 'calllog' table).
|
static Properties |
loadPropertiesDynamically()
Reads and returns properties from celesta.properties file.
|
boolean |
nullsFirst()
Returns the behavior
NULLS FIRST of current database. |
void |
setProfilemode(boolean profilemode)
Sets profiling mode.
|
public static final String VERSION
CelestaVersionpublic Celesta(BaseAppSettings appSettings)
public Collection<CallContext> getActiveContexts()
public Properties getSetupProperties()
getSetupProperties in interface ICelestapublic IPermissionManager getPermissionManager()
getPermissionManager in interface ICelestapublic ILoggingManager getLoggingManager()
getLoggingManager in interface ICelestapublic ConnectionPool getConnectionPool()
getConnectionPool in interface ICelestapublic IProfiler getProfiler()
getProfiler in interface ICelestapublic ru.curs.celesta.dbutils.adaptors.DBAdaptor getDBAdaptor()
getDBAdaptor in interface ICelestapublic TriggerDispatcher getTriggerDispatcher()
getTriggerDispatcher in interface ICelestapublic void close()
close in interface AutoCloseablepublic static Celesta createInstance(Properties properties)
properties - properties to initialize the Celesta instance withpublic static Celesta createInstance()
public static Properties loadPropertiesDynamically()
public boolean isProfilemode()
public boolean nullsFirst()
NULLS FIRST of current database.public void setProfilemode(boolean profilemode)
profilemode - profiling modeCopyright © 2020 CURS. All rights reserved.