public class ConfigFromConnection extends ConfigReader
Modifier and Type | Field and Description |
---|---|
static DateFormat |
formatter
The date formatter to be used to format dates.
|
static SimpleDateFormat |
utcParser
The date formatter to be used to parse GMT dates.
|
adminConnector, administrativeUsers, backends, configFile, environmentSettingException, exceptions, isSchemaEnabled, javaVersion, listeners, numberConnections, replicationPort, schema, taskEntries
Constructor and Description |
---|
ConfigFromConnection() |
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.ldap.messages.SearchResultEntry |
getEntryCaches()
Returns the monitoring entry for the entry caches.
|
org.forgerock.opendj.ldap.messages.SearchResultEntry |
getJvmMemoryUsage()
Returns the monitoring entry for the JVM memory usage.
|
org.forgerock.opendj.ldap.messages.SearchResultEntry |
getRootMonitor()
Returns the root entry of the monitoring tree.
|
org.forgerock.opendj.ldap.messages.SearchResultEntry |
getSystemInformation()
Returns the monitoring entry for the system information.
|
org.forgerock.opendj.ldap.messages.SearchResultEntry |
getVersionMonitor()
Returns the version entry of the monitoring tree.
|
org.forgerock.opendj.ldap.messages.SearchResultEntry |
getWorkQueue()
Returns the monitoring entry for the work queue.
|
boolean |
isLocal()
Returns
true if we are trying to manage the local host and
false otherwise. |
void |
readConfiguration(ConnectionWrapper connWrapper)
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(ConnectionWrapper connWrapper,
List<Exception> 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
public static final SimpleDateFormat utcParser
public static final DateFormat formatter
public ConfigFromConnection()
public org.forgerock.opendj.ldap.messages.SearchResultEntry getEntryCaches()
public org.forgerock.opendj.ldap.messages.SearchResultEntry getJvmMemoryUsage()
public org.forgerock.opendj.ldap.messages.SearchResultEntry getRootMonitor()
public org.forgerock.opendj.ldap.messages.SearchResultEntry getVersionMonitor()
public org.forgerock.opendj.ldap.messages.SearchResultEntry getSystemInformation()
public org.forgerock.opendj.ldap.messages.SearchResultEntry 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(ConnectionWrapper connWrapper)
connWrapper
- the connection to be used to read the information.public void updateTaskInformation(ConnectionWrapper connWrapper, List<Exception> ex, Collection<TaskEntry> ts)
connWrapper
- 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-2017 ForgeRock AS. All Rights Reserved.