mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noël Rouvignac
03.26.2016 30370aa1fc4d363f07023059f330e9a1ec9f2313
opendj-server-legacy/src/main/java/org/opends/server/backends/MonitorBackend.java
@@ -68,24 +68,16 @@
{
  private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass();
  /**
   * The set of user-defined attributes that will be included in the base
   * monitor entry.
   */
  /** The set of user-defined attributes that will be included in the base monitor entry.   */
  private ArrayList<Attribute> userDefinedAttributes;
  /** The set of objectclasses that will be used in monitor entries. */
  private final HashMap<ObjectClass, String> monitorObjectClasses = new LinkedHashMap<>(2);
  /** The DN of the configuration entry for this backend. */
  private DN configEntryDN;
  /** The current configuration state. */
  private MonitorBackendCfg currentConfig;
  /** The DN for the base monitor entry. */
  private DN baseMonitorDN;
  /** The set of base DNs for this backend. */
  private DN[] baseDNs;
@@ -627,7 +619,7 @@
    // Add all the user-defined attributes.
    for (final Attribute a : userDefinedAttributes)
    {
      final AttributeType type = a.getAttributeType();
      final AttributeType type = a.getAttributeDescription().getAttributeType();
      final HashMap<AttributeType, List<Attribute>> attrsMap =
          type.isOperational() ? monitorOperationalAttrs : monitorUserAttrs;
@@ -657,7 +649,7 @@
  private void put(final HashMap<AttributeType, List<Attribute>> attrsMap, final Attribute attr)
  {
    attrsMap.put(attr.getAttributeType(), newArrayList(attr));
    attrsMap.put(attr.getAttributeDescription().getAttributeType(), newArrayList(attr));
  }
  /**
@@ -782,7 +774,7 @@
    // Take the rest of the information from the monitor data.
    for (final Attribute a : monitorAttrs)
    {
      final AttributeType type = a.getAttributeType();
      final AttributeType type = a.getAttributeDescription().getAttributeType();
      List<Attribute> attrs = attrMap.get(type);
      if (attrs == null)
@@ -823,7 +815,7 @@
   */
  private boolean isMonitorConfigAttribute(final Attribute attribute)
  {
    final AttributeType attrType = attribute.getAttributeType();
    final AttributeType attrType = attribute.getAttributeDescription().getAttributeType();
    return attrType.hasName(ATTR_COMMON_NAME)
        || attrType.hasName(ATTR_BACKEND_ENABLED.toLowerCase())
        || attrType.hasName(ATTR_BACKEND_CLASS.toLowerCase())