public class ConfigFromDirContext extends ConfigReader
Modifier and Type | Field and Description |
---|---|
protected DN |
entryCachesDN
The entry cache monitoring entry DN.
|
static DateFormat |
formatter
The date formatter to be used to format dates.
|
protected DN |
jvmMemoryUsageDN
The JVM memory usage monitoring entry DN.
|
protected DN |
monitorDN
The monitor root entry DN.
|
protected DN |
systemInformationDN
The system information monitoring entry DN.
|
static SimpleDateFormat |
utcParser
The date formatter to be used to parse GMT dates.
|
protected DN |
versionDN
The version monitoring entry DN.
|
protected DN |
workQueueDN
The work queue monitoring entry DN.
|
adminConnector, administrativeUsers, backends, configClassName, configFile, configRead, environmentSettingException, exceptions, isSchemaEnabled, javaVersion, listeners, numberConnections, replicationPort, schema, taskEntries
Constructor and Description |
---|
ConfigFromDirContext() |
Modifier and Type | Method and Description |
---|---|
CustomSearchResult |
getEntryCaches()
Returns the monitoring entry for the entry caches.
|
CustomSearchResult |
getJvmMemoryUsage()
Returns the monitoring entry for the JVM memory usage.
|
protected String[] |
getMonitoringAttributes()
Returns an array of monitoring attributes to be returned in the request.
|
CustomSearchResult |
getRootMonitor()
Returns the root entry of the monitoring tree.
|
CustomSearchResult |
getSystemInformation()
Returns the monitoring entry for the system information.
|
CustomSearchResult |
getVersionMonitor()
Returns the version entry of the monitoring tree.
|
CustomSearchResult |
getWorkQueue()
Returns the monitoring entry for the work queue.
|
protected void |
handleMonitoringSearchResult(SearchResult sr,
String searchBaseDN)
Takes the provided search result and updates the monitoring information
accordingly.
|
boolean |
isLocal()
Returns
true if we are trying to manage the local host and
false otherwise. |
void |
readConfiguration(InitialLdapContext context)
Reads configuration and monitoring information using the provided
connection.
|
void |
setIsLocal(boolean isLocal)
Sets whether this server represents the local instance or a remote server.
|
void |
updateTaskInformation(InitialLdapContext ctx,
List<OpenDsException> ex,
Collection<TaskEntry> ts)
Updates the provided list of TaskEntry with the task entries found in a
server.
|
getAdminConnector, getAdministrativeUsers, getBackends, getConnectionHandlers, getExceptions, getInetAddressComparator, getJavaVersion, getOpenConnections, getReplicationPort, getSchema, getTaskEntries, getVLVSortOrder, isConfigRead, isSchemaEnabled, mustReadSchema, readSchema
protected DN jvmMemoryUsageDN
protected DN systemInformationDN
protected DN entryCachesDN
protected DN workQueueDN
public static final SimpleDateFormat utcParser
public static final DateFormat formatter
public ConfigFromDirContext()
public CustomSearchResult getEntryCaches()
public CustomSearchResult getJvmMemoryUsage()
public CustomSearchResult getRootMonitor()
public CustomSearchResult getVersionMonitor()
public CustomSearchResult getSystemInformation()
public CustomSearchResult getWorkQueue()
public void setIsLocal(boolean isLocal)
isLocal
- whether this server represents the local instance or a remote
server (in another machine or in another installation on the same
machine).public boolean isLocal()
true
if we are trying to manage the local host and
false
otherwise.true
if we are trying to manage the local host and
false
otherwise.public void readConfiguration(InitialLdapContext context)
context
- the connection to be used to read the information.protected String[] getMonitoringAttributes()
protected void handleMonitoringSearchResult(SearchResult sr, String searchBaseDN) throws NamingException
sr
- the search result.searchBaseDN
- the base search.NamingException
- if there is an error retrieving the values of the search result.public void updateTaskInformation(InitialLdapContext ctx, List<OpenDsException> ex, Collection<TaskEntry> ts)
ctx
- the connection to the server.ex
- the list of exceptions encountered while retrieving the task
entries.ts
- the list of task entries to be updated.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.