Exemple #1
0
  /**
   * Appends a string representation of this monitor entry to the provided buffer.
   *
   * @param buffer The buffer to which the information should be appended.
   */
  public final void toString(final StringBuilder buffer) {
    buffer.append("MonitorEntry(dn='");
    buffer.append(entry.getDN());
    buffer.append("', monitorClass='");
    buffer.append(monitorClass);
    buffer.append('\'');

    final Iterator<MonitorAttribute> iterator = getMonitorAttributes().values().iterator();
    while (iterator.hasNext()) {
      buffer.append(iterator.next());
      if (iterator.hasNext()) {
        buffer.append(", ");
      }
    }

    buffer.append(')');
  }
Exemple #2
0
 /**
  * Retrieves the DN for this monitor entry.
  *
  * @return The DN for this monitor entry.
  */
 public final String getDN() {
   return entry.getDN();
 }