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 |
UTC_PARSER
The date formatter to be used to parse GMT dates.
|
adminConnector, administrativeUsers, backends, environmentSettingException, exceptions, isSchemaEnabled, javaVersion, listeners, numberConnections, replicationPort, schema, taskEntries
Constructor and Description |
---|
ConfigFromConnection() |
Modifier and Type | Method and Description |
---|---|
SearchResultEntry |
getEntryCaches()
Returns the monitoring entry for the entry caches.
|
SearchResultEntry |
getJvmMemoryUsage()
Returns the monitoring entry for the JVM memory usage.
|
SearchResultEntry |
getRootMonitor()
Returns the root entry of the monitoring tree.
|
SearchResultEntry |
getSystemInformation()
Returns the monitoring entry for the system information.
|
SearchResultEntry |
getVersionMonitor()
Returns the version entry of the monitoring tree.
|
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> errors,
Collection<TaskEntry> taskEntries)
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 UTC_PARSER
public static final DateFormat FORMATTER
public SearchResultEntry getEntryCaches()
public SearchResultEntry getJvmMemoryUsage()
public SearchResultEntry getRootMonitor()
public SearchResultEntry getVersionMonitor()
public SearchResultEntry getSystemInformation()
public 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> errors, Collection<TaskEntry> taskEntries)
connWrapper
- the connection to the server.errors
- the list of exceptions encountered while retrieving the task entries.taskEntries
- the list of task entries to be updated.Copyright 2010-2020 ForgeRock AS.