public interface ServerContext
Modifier and Type | Method and Description |
---|---|
void |
deregisterMonitorProvider(MonitorProvider monitorProvider)
Deregisters the specified monitor provider from the Directory Server.
|
BackendConfigManager |
getBackendConfigManager()
Returns the manager of backends.
|
CommonAudit |
getCommonAudit()
Returns the common audit manager.
|
ConfigurationHandler |
getConfigurationHandler()
Returns the configuration handler, which provides operations to the configuration.
|
CoreConfigManager |
getCoreConfigManager()
Returns the manager of core configuration.
|
ScheduledExecutorService |
getCronExecutorService()
Returns the UNIX's cron-like executor service.
|
CryptoManager |
getCryptoManager()
Returns the Crypto Manager for the instance.
|
DiskSpaceMonitor |
getDiskSpaceMonitor()
Returns the Disk Space Monitoring service, for checking free disk space.
|
DirectoryEnvironmentConfig |
getEnvironment()
Returns the environment of the server.
|
HealthChecker |
getHealthChecker()
Returns the
HealthChecker that aggregates all the HealthStatusProvider for diagnosing the global server health. |
org.forgerock.http.routing.Router |
getHttpRouter()
Returns the HTTP request router.
|
String |
getInstanceRoot()
Returns the directory of server instance.
|
KeyManagerProvider<?> |
getKeyManagerProvider(Dn keyManagerProviderDN)
Returns the key manager provider matching the provided DN.
|
RequestHandler |
getLdapRouter()
Returns the router, which routes the LDAP requests to appropriate backend(s).
|
LockManager |
getLockManager()
Returns the lock manager which will be used for coordinating access to LDAP entries.
|
LoggerConfigManager |
getLoggerConfigManager()
Returns the logger config manager.
|
MemoryQuota |
getMemoryQuota()
Returns the memory quota system for reserving long term memory.
|
MeterRegistry |
getMeterRegistry()
Returns the global
MeterRegistry that contains all metrics for all monitor providers. |
RootCfg |
getRootConfig()
Returns the root configuration object.
|
Schema |
getSchema()
Returns the schema of the server.
|
SchemaHandler |
getSchemaHandler()
Returns the schema handler, which provides operations to the schema.
|
ServerManagementContext |
getServerManagementContext()
Returns the server management context, which gives an entry point on configuration objects.
|
String |
getServerRoot()
Returns the root directory of server.
|
ServiceDiscoveryMechanismConfigManager |
getServiceDiscoveryMechanismConfigManager()
Returns the Service Discovery Mechanism Config Manager.
|
PrintStream |
getStdoutAtProcessStart()
Returns the original stdout at the time the process started, before its redefinition by DJ.
|
TrustManagerProvider<?> |
getTrustManagerProvider(Dn trustManagerProviderDN)
Returns the trust manager provider matching the provided DN.
|
void |
registerMonitorProvider(MonitorProvider monitorProvider)
Registers the provided monitor provider with the Directory Server.
|
String getInstanceRoot()
String getServerRoot()
Schema getSchema()
The schema is immutable. Any change on the schema must be done using a SchemaHandler
which is available
through the getSchemaHandler()
method.
SchemaHandler getSchemaHandler()
ConfigurationHandler getConfigurationHandler()
DirectoryEnvironmentConfig getEnvironment()
ServerManagementContext getServerManagementContext()
RootCfg getRootConfig()
Equivalent to calling getServerManagementContext().getRootConfiguration()
.
RequestHandler getLdapRouter()
MemoryQuota getMemoryQuota()
DiskSpaceMonitor getDiskSpaceMonitor()
org.forgerock.http.routing.Router getHttpRouter()
CommonAudit getCommonAudit()
ServiceDiscoveryMechanismConfigManager getServiceDiscoveryMechanismConfigManager()
LoggerConfigManager getLoggerConfigManager()
CryptoManager getCryptoManager()
ScheduledExecutorService getCronExecutorService()
LockManager getLockManager()
BackendConfigManager getBackendConfigManager()
CoreConfigManager getCoreConfigManager()
KeyManagerProvider<?> getKeyManagerProvider(Dn keyManagerProviderDN)
keyManagerProviderDN
- the DN of the key manager providernull
if none matchTrustManagerProvider<?> getTrustManagerProvider(Dn trustManagerProviderDN)
trustManagerProviderDN
- the DN of the trust manager providernull
if none matchMeterRegistry getMeterRegistry()
MeterRegistry
that contains all metrics for all monitor providers.MeterRegistry
that contains all metrics for all monitor providers.HealthChecker getHealthChecker()
HealthChecker
that aggregates all the HealthStatusProvider
for diagnosing the global server health.PrintStream getStdoutAtProcessStart()
void registerMonitorProvider(MonitorProvider monitorProvider)
monitorProvider
- The monitor provider to register with the Directory Server.void deregisterMonitorProvider(MonitorProvider monitorProvider)
monitorProvider
- The monitor provider to deregister from the Directory Server.Copyright 2010-2022 ForgeRock AS.