Class MonitorManager


  • @ThreadSafety(level=COMPLETELY_THREADSAFE)
    public final class MonitorManager
    extends java.lang.Object
    This class provides a set of methods for retrieving Directory Server monitor entries. In particular, it provides methods for retrieving all monitor entries from the server, as well as retrieving monitor entries of specific types.
    NOTE: This class, and other classes within the com.unboundid.ldap.sdk.unboundidds package structure, are only supported for use against Ping Identity, UnboundID, and Nokia/Alcatel-Lucent 8661 server products. These classes provide support for proprietary functionality or for external specifications that are not considered stable or mature enough to be guaranteed to work in an interoperable way with other types of LDAP servers.

    Example

    The following example demonstrates the process for retrieving all monitor entries published by the directory server and printing the information contained in each using the generic API for accessing monitor entry data:
     List<MonitorEntry> allMonitorEntries =
          MonitorManager.getMonitorEntries(connection);
     for (MonitorEntry e : allMonitorEntries)
     {
       String monitorName = e.getMonitorName();
       String displayName = e.getMonitorDisplayName();
       Map<String,MonitorAttribute> monitorAttributes =
            e.getMonitorAttributes();
     }