public class ServerDescriptor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ServerDescriptor.ServerStatus
Enumeration indicating the status of the server.
|
Constructor and Description |
---|
ServerDescriptor()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
areSchemasEqual(Schema schema1,
Schema schema2)
Method used to compare schemas.
|
boolean |
equals(Object o) |
ConnectionHandlerDescriptor |
getAdminConnector()
Returns the admin connector.
|
Set<DN> |
getAdministrativeUsers()
Return the administrative users.
|
Set<BackendDescriptor> |
getBackends()
Returns the backend descriptors of the server.
|
Set<ConnectionHandlerDescriptor> |
getConnectionHandlers()
Returns the listener descriptors of the server.
|
CustomSearchResult |
getEntryCachesMonitor()
Returns the monitoring entry for the entry caches.
|
List<OpenDsException> |
getExceptions()
Returns the exceptions that occurred while reading the configuration.
|
String |
getHostname()
Returns the host name of the server.
|
String |
getInstallPath()
Return the install path where the server is installed.
|
String |
getInstancePath()
Return the instance path where the server databases and configuration is
located.
|
String |
getJavaVersion()
Return the java version used to run the server.
|
CustomSearchResult |
getJvmMemoryUsageMonitor()
Returns the monitoring entry for the JVM memory usage.
|
int |
getOpenConnections()
Returns the number of open connection in the server.
|
String |
getOpenDSVersion()
Returns the version of the server.
|
CustomSearchResult |
getRootMonitor()
Returns the root entry of the monitoring tree.
|
long |
getRunningTime()
Returns the running time of the server in milliseconds.
|
Schema |
getSchema()
Returns the schema of the server.
|
ServerDescriptor.ServerStatus |
getStatus()
Returns the status of the server.
|
CustomSearchResult |
getSystemInformationMonitor()
Returns the monitoring entry for the system information.
|
Set<TaskEntry> |
getTaskEntries()
Returns the task entries.
|
CustomSearchResult |
getWorkQueueMonitor()
Returns the monitoring entry for the work queue.
|
int |
hashCode() |
boolean |
isAuthenticated()
Return whether we were authenticated when retrieving the information of
this ServerStatusDescriptor.
|
boolean |
isLocal()
Returns
true if we are trying to manage the local host and
false otherwise. |
boolean |
isSchemaEnabled()
Returns whether the schema is enabled or not.
|
boolean |
isWindows()
Returns whether the server is running under a windows system or not.
|
boolean |
isWindowsServiceEnabled()
Tells whether the windows service is enabled or not.
|
boolean |
sameInstallAndInstance()
Returns whether the install and the instance are on the same server
or not.
|
void |
setAdminConnector(ConnectionHandlerDescriptor adminConnector)
Sets the admin connector.
|
void |
setAdministrativeUsers(Set<DN> administrativeUsers)
Set the administrative users.
|
void |
setAuthenticated(boolean isAuthenticated)
Sets whether we were authenticated when retrieving the information of
this ServerStatusDescriptor.
|
void |
setBackends(Set<BackendDescriptor> backends)
Sets the backend descriptors of the server.
|
void |
setConnectionHandlers(Set<ConnectionHandlerDescriptor> listeners)
Sets the listener descriptors of the server.
|
void |
setEntryCachesMonitor(CustomSearchResult entryCaches)
Sets the monitoring entry for the entry caches.
|
void |
setExceptions(Collection<OpenDsException> exceptions)
Sets the exceptions that occurred while reading the configuration.
|
void |
setHostname(String hostName)
Sets the host name of the server.
|
void |
setInstallPath(String installPath)
Sets the install path where the server is installed.
|
void |
setInstancePath(String instancePath)
Sets the instance path where the server databases and configuration is
located.
|
void |
setIsLocal(boolean isLocal)
Sets whether this server represents the local instance or a remote server.
|
void |
setJavaVersion(String javaVersion)
Set the java version used to run the server.
|
void |
setJvmMemoryUsageMonitor(CustomSearchResult jvmMemoryUsage)
Sets the monitoring entry for the JVM memory usage.
|
void |
setOpenConnections(int openConnections)
Set the number of open connections.
|
void |
setOpenDSVersion(String openDSVersion)
Sets the version of the server.
|
void |
setRootMonitor(CustomSearchResult rootMonitor)
Sets the root entry of the monitoring tree.
|
void |
setSchema(Schema schema)
Sets the schema of the server.
|
void |
setSchemaEnabled(boolean isSchemaEnabled)
Sets whether the schema is enabled or not.
|
void |
setStatus(ServerDescriptor.ServerStatus status)
Sets the status of the server.
|
void |
setSystemInformationMonitor(CustomSearchResult systemInformation)
Sets the monitoring entry for the system information.
|
void |
setTaskEntries(Set<TaskEntry> taskEntries)
Sets the the task entries.
|
void |
setWindowsServiceEnabled(boolean isWindowsServiceEnabled)
Sets whether the windows service is enabled or not.
|
void |
setWorkQueueMonitor(CustomSearchResult workQueue)
Sets the monitoring entry of the work queue.
|
public ServerDescriptor()
public Set<DN> getAdministrativeUsers()
public void setAdministrativeUsers(Set<DN> administrativeUsers)
administrativeUsers
- the administrative users to setpublic boolean isSchemaEnabled()
true
if the schema is enabled and false
otherwise.public void setSchemaEnabled(boolean isSchemaEnabled)
isSchemaEnabled
- true
if the schema is enabled and
false
otherwise.public String getInstancePath()
public void setInstancePath(String instancePath)
instancePath
- the instance path where the server databases and
configuration is located.public String getInstallPath()
public void setInstallPath(String installPath)
installPath
- the install path where the server is installed.public boolean sameInstallAndInstance()
public String getJavaVersion()
public void setJavaVersion(String javaVersion)
javaVersion
- the java version used to run the server.public int getOpenConnections()
public void setOpenConnections(int openConnections)
openConnections
- the number of open connections.public String getOpenDSVersion()
public void setOpenDSVersion(String openDSVersion)
openDSVersion
- the version of the server.public ServerDescriptor.ServerStatus getStatus()
public void setStatus(ServerDescriptor.ServerStatus status)
status
- the status of the server.public Set<TaskEntry> getTaskEntries()
public void setTaskEntries(Set<TaskEntry> taskEntries)
taskEntries
- the task entries.public boolean isAuthenticated()
true
if we were authenticated when retrieving the
information of this ServerStatusDescriptor and false
otherwise.public void setAuthenticated(boolean isAuthenticated)
isAuthenticated
- whether we were authenticated when retrieving the
information of this ServerStatusDescriptor.public Set<BackendDescriptor> getBackends()
public void setBackends(Set<BackendDescriptor> backends)
backends
- the database descriptors to set.public Set<ConnectionHandlerDescriptor> getConnectionHandlers()
public void setConnectionHandlers(Set<ConnectionHandlerDescriptor> listeners)
listeners
- the listener descriptors to set.public void setSchema(Schema schema)
schema
- the schema of the server.public Schema getSchema()
public String getHostname()
public void setHostname(String hostName)
hostName
- the host name of the server.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 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 List<OpenDsException> getExceptions()
public void setExceptions(Collection<OpenDsException> exceptions)
exceptions
- exceptions that occurred while reading the
configuration.public boolean isWindowsServiceEnabled()
true
if the windows service is enabled and
false
otherwise.public void setWindowsServiceEnabled(boolean isWindowsServiceEnabled)
isWindowsServiceEnabled
- true
if the windows service is
enabled and false
otherwise.public boolean isWindows()
public static boolean areSchemasEqual(Schema schema1, Schema schema2)
true
if the two schemas are equal and
false
otherwise.schema1
- the first schema.schema2
- the second schema.true
if the two schemas are equal and
false
otherwise.public ConnectionHandlerDescriptor getAdminConnector()
public void setAdminConnector(ConnectionHandlerDescriptor adminConnector)
adminConnector
- the admin connector.public void setEntryCachesMonitor(CustomSearchResult entryCaches)
entryCaches
- the monitoring entry for the entry caches.public void setJvmMemoryUsageMonitor(CustomSearchResult jvmMemoryUsage)
jvmMemoryUsage
- the monitoring entry for the JVM memory usage.public void setRootMonitor(CustomSearchResult rootMonitor)
rootMonitor
- the root entry of the monitoring tree.public long getRunningTime()
public void setSystemInformationMonitor(CustomSearchResult systemInformation)
systemInformation
- entry for the system information.public void setWorkQueueMonitor(CustomSearchResult workQueue)
workQueue
- entry of the work queue.public CustomSearchResult getEntryCachesMonitor()
public CustomSearchResult getJvmMemoryUsageMonitor()
public CustomSearchResult getRootMonitor()
public CustomSearchResult getSystemInformationMonitor()
public CustomSearchResult getWorkQueueMonitor()
Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.