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

Ludovic Poitou
29.56.2013 735cca98b5e15c79ee0eee4c78111d38a0604861
Implement enhancement for OPENDJ-677. The connection attribute under cn=monitor now contains the number of persistent searches on going if there are any, as shown below. If there are no persistent search, then nothing is displayed.

dn: cn=Client Connections,cn=monitor
connection: connID="4" connectTime="20130129101941Z" source="127.0.0.1:50927" destination="127.0.0.1:1389" ldapVersion="3" authDN="cn=Directory Manager,cn=Root DNs,cn=config" security="none" opsInProgress="1"" persistentSearches="1"
1 files modified
9 ■■■■ changed files
opends/src/server/org/opends/server/protocols/ldap/LDAPClientConnection.java 9 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/protocols/ldap/LDAPClientConnection.java
@@ -23,7 +23,7 @@
 *
 *
 *      Copyright 2006-2010 Sun Microsystems, Inc.
 *      Portions Copyright 2010-2012 ForgeRock AS.
 *      Portions Copyright 2010-2013 ForgeRock AS.
 */
package org.opends.server.protocols.ldap;
@@ -2480,6 +2480,13 @@
    buffer.append(operationsInProgress.size());
    buffer.append("\"");
    int countPSearch = getPersistentSearches().size();
    if (countPSearch > 0)
    {
      buffer.append("\" persistentSearches=\"");
      buffer.append(countPSearch);
      buffer.append("\"");
    }
    return buffer.toString();
  }