All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.unboundid.ldap.sdk.unboundidds.monitors.LDAPStatisticsMonitorEntry Maven / Gradle / Ivy

Go to download

The UnboundID LDAP SDK for Java is a fast, comprehensive, and easy-to-use Java API for communicating with LDAP directory servers and performing related tasks like reading and writing LDIF, encoding and decoding data using base64 and ASN.1 BER, and performing secure communication. This package contains the Standard Edition of the LDAP SDK, which is a complete, general-purpose library for communicating with LDAPv3 directory servers.

There is a newer version: 7.0.1
Show newest version
/*
 * Copyright 2008-2021 Ping Identity Corporation
 * All Rights Reserved.
 */
/*
 * Copyright 2008-2021 Ping Identity Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/*
 * Copyright (C) 2008-2021 Ping Identity Corporation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License (GPLv2 only)
 * or the terms of the GNU Lesser General Public License (LGPLv2.1 only)
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, see .
 */
package com.unboundid.ldap.sdk.unboundidds.monitors;



import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;

import com.unboundid.ldap.sdk.Entry;
import com.unboundid.util.NotMutable;
import com.unboundid.util.NotNull;
import com.unboundid.util.Nullable;
import com.unboundid.util.StaticUtils;
import com.unboundid.util.ThreadSafety;
import com.unboundid.util.ThreadSafetyLevel;

import static com.unboundid.ldap.sdk.unboundidds.monitors.MonitorMessages.*;



/**
 * This class defines a monitor entry that provides information about the types
 * of LDAP operations processed through an LDAP connection handler.
 * 
*
* NOTE: This class, and other classes within the * {@code 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. *
*
* Information available through this monitor entry includes: *
    *
  • The total number of requests for each type of operation received by the * connection handler.
  • *
  • The total number of responses of each type of operation returned by the * connection handler.
  • *
  • The total number of search result entries returned by the connection * handler.
  • *
  • The total number of search result references returned by the connection * handler.
  • *
  • The total number of LDAP messages read from clients.
  • *
  • The total number of LDAP messages written to clients.
  • *
  • The total number of request bytes read from clients.
  • *
  • The total number of response bytes written to clients.
  • *
  • The number of connections accepted by the connection handler.
  • *
  • The number of connections closed by the connection handler.
  • *
  • The number of operations initiated by the connection handler.
  • *
  • The number of operations completed by the connection handler.
  • *
  • The number of operations abandoned by the connection handler.
  • *
* The LDAP statistics monitor entries provided by the server can be retrieved * using the {@link MonitorManager#getLDAPStatisticsMonitorEntries} method. * These entries provide specific methods for accessing information about the * LDAP connection handler (e.g., the * {@link LDAPStatisticsMonitorEntry#getAbandonRequests} method can be used to * retrieve the number of abandon requests received). Alternately, this * information may be accessed using the generic API. See the * {@link MonitorManager} class documentation for an example that demonstrates * the use of the generic API for accessing monitor data. */ @NotMutable() @ThreadSafety(level=ThreadSafetyLevel.COMPLETELY_THREADSAFE) public final class LDAPStatisticsMonitorEntry extends MonitorEntry { /** * The structural object class used in LDAP statistics monitor entries. */ @NotNull static final String LDAP_STATISTICS_MONITOR_OC = "ds-ldap-statistics-monitor-entry"; /** * The name of the attribute that contains the number of abandon requests. */ @NotNull private static final String ATTR_ABANDON_REQUESTS = "abandonRequests"; /** * The name of the attribute that contains the number of add requests. */ @NotNull private static final String ATTR_ADD_REQUESTS = "addRequests"; /** * The name of the attribute that contains the number of add responses. */ @NotNull private static final String ATTR_ADD_RESPONSES = "addResponses"; /** * The name of the attribute that contains the number of bind requests. */ @NotNull private static final String ATTR_BIND_REQUESTS = "bindRequests"; /** * The name of the attribute that contains the number of bind responses. */ @NotNull private static final String ATTR_BIND_RESPONSES = "bindResponses"; /** * The name of the attribute that contains the number of bytes read. */ @NotNull private static final String ATTR_BYTES_READ = "bytesRead"; /** * The name of the attribute that contains the number of bytes written. */ @NotNull private static final String ATTR_BYTES_WRITTEN = "bytesWritten"; /** * The name of the attribute that contains the number of compare requests. */ @NotNull private static final String ATTR_COMPARE_REQUESTS = "compareRequests"; /** * The name of the attribute that contains the number of compare responses. */ @NotNull private static final String ATTR_COMPARE_RESPONSES = "compareResponses"; /** * The name of the attribute that contains the number of connections * closed. */ @NotNull private static final String ATTR_CONNECTIONS_CLOSED = "connectionsClosed"; /** * The name of the attribute that contains the number of connections * established. */ @NotNull private static final String ATTR_CONNECTIONS_ESTABLISHED = "connectionsEstablished"; /** * The name of the attribute that contains the number of delete requests. */ @NotNull private static final String ATTR_DELETE_REQUESTS = "deleteRequests"; /** * The name of the attribute that contains the number of delete responses. */ @NotNull private static final String ATTR_DELETE_RESPONSES = "deleteResponses"; /** * The name of the attribute that contains the number of extended requests. */ @NotNull private static final String ATTR_EXTENDED_REQUESTS = "extendedRequests"; /** * The name of the attribute that contains the number of extended responses. */ @NotNull private static final String ATTR_EXTENDED_RESPONSES = "extendedResponses"; /** * The name of the attribute that contains the number of LDAP messages read. */ @NotNull private static final String ATTR_LDAP_MESSAGES_READ = "ldapMessagesRead"; /** * The name of the attribute that contains the number of LDAP messages * written. */ @NotNull private static final String ATTR_LDAP_MESSAGES_WRITTEN = "ldapMessagesWritten"; /** * The name of the attribute that contains the number of modify requests. */ @NotNull private static final String ATTR_MODIFY_REQUESTS = "modifyRequests"; /** * The name of the attribute that contains the number of modify responses. */ @NotNull private static final String ATTR_MODIFY_RESPONSES = "modifyResponses"; /** * The name of the attribute that contains the number of modify DN requests. */ @NotNull private static final String ATTR_MODIFY_DN_REQUESTS = "modifyDNRequests"; /** * The name of the attribute that contains the number of modify DN responses. */ @NotNull private static final String ATTR_MODIFY_DN_RESPONSES = "modifyDNResponses"; /** * The name of the attribute that contains the number of operations abandoned. */ @NotNull private static final String ATTR_OPS_ABANDONED = "operationsAbandoned"; /** * The name of the attribute that contains the number of operations completed. */ @NotNull private static final String ATTR_OPS_COMPLETED = "operationsCompleted"; /** * The name of the attribute that contains the number of operations initiated. */ @NotNull private static final String ATTR_OPS_INITIATED = "operationsInitiated"; /** * The name of the attribute that contains the number of search requests. */ @NotNull private static final String ATTR_SEARCH_REQUESTS = "searchRequests"; /** * The name of the attribute that contains the number of search result done * responses. */ @NotNull private static final String ATTR_SEARCH_RESULT_DONE_RESPONSES = "searchResultsDone"; /** * The name of the attribute that contains the number of search result entry * responses. */ @NotNull private static final String ATTR_SEARCH_RESULT_ENTRY_RESPONSES = "searchResultEntries"; /** * The name of the attribute that contains the number of search result * reference responses. */ @NotNull private static final String ATTR_SEARCH_RESULT_REFERENCE_RESPONSES = "searchResultReferences"; /** * The name of the attribute that contains the number of unbind requests. */ @NotNull private static final String ATTR_UNBIND_REQUESTS = "unbindRequests"; /** * The serial version UID for this serializable class. */ private static final long serialVersionUID = 4869341619766489249L; // The number of abandon requests. @Nullable private final Long abandonRequests; // The number of add requests. @Nullable private final Long addRequests; // The number of add responses. @Nullable private final Long addResponses; // The number of bind requests. @Nullable private final Long bindRequests; // The number of bind responses. @Nullable private final Long bindResponses; // The number of bytes read. @Nullable private final Long bytesRead; // The number of bytes written. @Nullable private final Long bytesWritten; // The number of compare requests. @Nullable private final Long compareRequests; // The number of compare responses. @Nullable private final Long compareResponses; // The number of connections that have been closed. @Nullable private final Long connectionsClosed; // The number of connections that have been established. @Nullable private final Long connectionsEstablished; // The number of delete requests. @Nullable private final Long deleteRequests; // The number of delete responses. @Nullable private final Long deleteResponses; // The number of extended requests. @Nullable private final Long extendedRequests; // The number of extended responses. @Nullable private final Long extendedResponses; // The number of LDAP messages read. @Nullable private final Long ldapMessagesRead; // The number of LDAP messages written. @Nullable private final Long ldapMessagesWritten; // The number of modify requests. @Nullable private final Long modifyRequests; // The number of modify responses. @Nullable private final Long modifyResponses; // The number of modify DN requests. @Nullable private final Long modifyDNRequests; // The number of modify DN responses. @Nullable private final Long modifyDNResponses; // The number of operations abandoned. @Nullable private final Long opsAbandoned; // The number of operations completed. @Nullable private final Long opsCompleted; // The number of operations initiated. @Nullable private final Long opsInitiated; // The number of search requests. @Nullable private final Long searchRequests; // The number of search result done responses. @Nullable private final Long searchDoneResponses; // The number of search result entry responses. @Nullable private final Long searchEntryResponses; // The number of search result reference responses. @Nullable private final Long searchReferenceResponses; // The number of unbind requests. @Nullable private final Long unbindRequests; /** * Creates a new LDAP statistics monitor entry from the provided entry. * * @param entry The entry to be parsed as an LDAP statistics monitor entry. * It must not be {@code null}. */ public LDAPStatisticsMonitorEntry(@NotNull final Entry entry) { super(entry); abandonRequests = getLong(ATTR_ABANDON_REQUESTS); addRequests = getLong(ATTR_ADD_REQUESTS); addResponses = getLong(ATTR_ADD_RESPONSES); bindRequests = getLong(ATTR_BIND_REQUESTS); bindResponses = getLong(ATTR_BIND_RESPONSES); bytesRead = getLong(ATTR_BYTES_READ); bytesWritten = getLong(ATTR_BYTES_WRITTEN); compareRequests = getLong(ATTR_COMPARE_REQUESTS); compareResponses = getLong(ATTR_COMPARE_RESPONSES); connectionsClosed = getLong(ATTR_CONNECTIONS_CLOSED); connectionsEstablished = getLong(ATTR_CONNECTIONS_ESTABLISHED); deleteRequests = getLong(ATTR_DELETE_REQUESTS); deleteResponses = getLong(ATTR_DELETE_RESPONSES); extendedRequests = getLong(ATTR_EXTENDED_REQUESTS); extendedResponses = getLong(ATTR_EXTENDED_RESPONSES); ldapMessagesRead = getLong(ATTR_LDAP_MESSAGES_READ); ldapMessagesWritten = getLong(ATTR_LDAP_MESSAGES_WRITTEN); modifyRequests = getLong(ATTR_MODIFY_REQUESTS); modifyResponses = getLong(ATTR_MODIFY_RESPONSES); modifyDNRequests = getLong(ATTR_MODIFY_DN_REQUESTS); modifyDNResponses = getLong(ATTR_MODIFY_DN_RESPONSES); opsAbandoned = getLong(ATTR_OPS_ABANDONED); opsCompleted = getLong(ATTR_OPS_COMPLETED); opsInitiated = getLong(ATTR_OPS_INITIATED); searchRequests = getLong(ATTR_SEARCH_REQUESTS); searchDoneResponses = getLong(ATTR_SEARCH_RESULT_DONE_RESPONSES); searchEntryResponses = getLong(ATTR_SEARCH_RESULT_ENTRY_RESPONSES); searchReferenceResponses = getLong(ATTR_SEARCH_RESULT_REFERENCE_RESPONSES); unbindRequests = getLong(ATTR_UNBIND_REQUESTS); } /** * Retrieves the number of connections established since the associated * connection handler was started. * * @return The number of connections established since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getConnectionsEstablished() { return connectionsEstablished; } /** * Retrieves the number of connections closed since the associated connection * handler was started. * * @return The number of connections closed since the associated connection * handler was started, or {@code null} if it was not included in the * monitor entry. */ @Nullable() public Long getConnectionsClosed() { return connectionsClosed; } /** * Retrieves the number of operations initiated since the associated * connection handler was started. * * @return The number of operations initiated since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getOperationsInitiated() { return opsInitiated; } /** * Retrieves the number of operations completed since the associated * connection handler was started. * * @return The number of operations completed since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getOperationsCompleted() { return opsCompleted; } /** * Retrieves the number of operations abandoned since the associated * connection handler was started. * * @return The number of operations abandoned since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getOperationsAbandoned() { return opsAbandoned; } /** * Retrieves the number of bytes read from clients since the associated * connection handler was started. * * @return The number of bytes read from clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getBytesRead() { return bytesRead; } /** * Retrieves the number of bytes written to clients since the associated * connection handler was started. * * @return The number of bytes written to clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getBytesWritten() { return bytesWritten; } /** * Retrieves the number of LDAP messages read from clients since the * associated connection handler was started. * * @return The number of LDAP messages read from clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getLDAPMessagesRead() { return ldapMessagesRead; } /** * Retrieves the number of LDAP messages written to clients since the * associated connection handler was started. * * @return The number of LDAP messages written to clients since the * associated connection handler was started, or {@code null} if it * was not included in the monitor entry. */ @Nullable() public Long getLDAPMessagesWritten() { return ldapMessagesWritten; } /** * Retrieves the number of abandon requests from clients since the associated * connection handler was started. * * @return The number of abandon requests from clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getAbandonRequests() { return abandonRequests; } /** * Retrieves the number of add requests from clients since the associated * connection handler was started. * * @return The number of add requests from clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getAddRequests() { return addRequests; } /** * Retrieves the number of add responses to clients since the associated * connection handler was started. * * @return The number of add responses to clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getAddResponses() { return addResponses; } /** * Retrieves the number of bind requests from clients since the associated * connection handler was started. * * @return The number of bind requests from clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getBindRequests() { return bindRequests; } /** * Retrieves the number of bind responses to clients since the associated * connection handler was started. * * @return The number of bind responses to clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getBindResponses() { return bindResponses; } /** * Retrieves the number of compare requests from clients since the associated * connection handler was started. * * @return The number of compare requests from clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getCompareRequests() { return compareRequests; } /** * Retrieves the number of compare responses to clients since the associated * connection handler was started. * * @return The number of compare responses to clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getCompareResponses() { return compareResponses; } /** * Retrieves the number of delete requests from clients since the associated * connection handler was started. * * @return The number of delete requests from clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getDeleteRequests() { return deleteRequests; } /** * Retrieves the number of delete responses to clients since the associated * connection handler was started. * * @return The number of delete responses to clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getDeleteResponses() { return deleteResponses; } /** * Retrieves the number of extended requests from clients since the associated * connection handler was started. * * @return The number of extended requests from clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getExtendedRequests() { return extendedRequests; } /** * Retrieves the number of extended responses to clients since the associated * connection handler was started. * * @return The number of extended responses to clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getExtendedResponses() { return extendedResponses; } /** * Retrieves the number of modify requests from clients since the associated * connection handler was started. * * @return The number of modify requests from clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getModifyRequests() { return modifyRequests; } /** * Retrieves the number of modify responses to clients since the associated * connection handler was started. * * @return The number of modify responses to clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getModifyResponses() { return modifyResponses; } /** * Retrieves the number of modify DN requests from clients since the * associated connection handler was started. * * @return The number of modify DN requests from clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getModifyDNRequests() { return modifyDNRequests; } /** * Retrieves the number of modify DN responses to clients since the associated * connection handler was started. * * @return The number of modify DN responses to clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getModifyDNResponses() { return modifyDNResponses; } /** * Retrieves the number of search requests from clients since the associated * connection handler was started. * * @return The number of search requests from clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getSearchRequests() { return searchRequests; } /** * Retrieves the number of search result entries sent to clients since the * associated connection handler was started. * * @return The number of search result entries sent to clients since the * associated connection handler was started, or {@code null} if it * was not included in the monitor entry. */ @Nullable() public Long getSearchResultEntries() { return searchEntryResponses; } /** * Retrieves the number of search result references sent to clients since the * associated connection handler was started. * * @return The number of search result references sent to clients since the * associated connection handler was started, or {@code null} if it * was not included in the monitor entry. */ @Nullable() public Long getSearchResultReferences() { return searchReferenceResponses; } /** * Retrieves the number of search result done responses to clients since the * associated connection handler was started. * * @return The number of search result done responses to clients since the * associated connection handler was started, or {@code null} if it * was not included in the monitor entry. */ @Nullable() public Long getSearchDoneResponses() { return searchDoneResponses; } /** * Retrieves the number of unbind requests from clients since the associated * connection handler was started. * * @return The number of unbind requests from clients since the associated * connection handler was started, or {@code null} if it was not * included in the monitor entry. */ @Nullable() public Long getUnbindRequests() { return unbindRequests; } /** * {@inheritDoc} */ @Override() @NotNull() public String getMonitorDisplayName() { return INFO_LDAP_STATS_MONITOR_DISPNAME.get(); } /** * {@inheritDoc} */ @Override() @NotNull() public String getMonitorDescription() { return INFO_LDAP_STATS_MONITOR_DESC.get(); } /** * {@inheritDoc} */ @Override() @NotNull() public Map getMonitorAttributes() { final LinkedHashMap attrs = new LinkedHashMap<>(StaticUtils.computeMapCapacity(50)); if (connectionsEstablished != null) { addMonitorAttribute(attrs, ATTR_CONNECTIONS_ESTABLISHED, INFO_LDAP_STATS_DISPNAME_CONNECTIONS_ESTABLISHED.get(), INFO_LDAP_STATS_DESC_CONNECTIONS_ESTABLISHED.get(), connectionsEstablished); } if (connectionsClosed != null) { addMonitorAttribute(attrs, ATTR_CONNECTIONS_CLOSED, INFO_LDAP_STATS_DISPNAME_CONNECTIONS_CLOSED.get(), INFO_LDAP_STATS_DESC_CONNECTIONS_CLOSED.get(), connectionsClosed); } if (bytesRead != null) { addMonitorAttribute(attrs, ATTR_BYTES_READ, INFO_LDAP_STATS_DISPNAME_BYTES_READ.get(), INFO_LDAP_STATS_DESC_BYTES_READ.get(), bytesRead); } if (bytesWritten != null) { addMonitorAttribute(attrs, ATTR_BYTES_WRITTEN, INFO_LDAP_STATS_DISPNAME_BYTES_WRITTEN.get(), INFO_LDAP_STATS_DESC_BYTES_WRITTEN.get(), bytesWritten); } if (ldapMessagesRead != null) { addMonitorAttribute(attrs, ATTR_LDAP_MESSAGES_READ, INFO_LDAP_STATS_DISPNAME_LDAP_MESSAGES_READ.get(), INFO_LDAP_STATS_DESC_LDAP_MESSAGES_READ.get(), ldapMessagesRead); } if (ldapMessagesWritten != null) { addMonitorAttribute(attrs, ATTR_LDAP_MESSAGES_WRITTEN, INFO_LDAP_STATS_DISPNAME_LDAP_MESSAGES_WRITTEN.get(), INFO_LDAP_STATS_DESC_LDAP_MESSAGES_WRITTEN.get(), ldapMessagesWritten); } if (opsInitiated != null) { addMonitorAttribute(attrs, ATTR_OPS_INITIATED, INFO_LDAP_STATS_DISPNAME_OPS_INITIATED.get(), INFO_LDAP_STATS_DESC_OPS_INITIATED.get(), opsInitiated); } if (opsCompleted != null) { addMonitorAttribute(attrs, ATTR_OPS_COMPLETED, INFO_LDAP_STATS_DISPNAME_OPS_COMPLETED.get(), INFO_LDAP_STATS_DESC_OPS_COMPLETED.get(), opsCompleted); } if (opsAbandoned != null) { addMonitorAttribute(attrs, ATTR_OPS_ABANDONED, INFO_LDAP_STATS_DISPNAME_OPS_ABANDONED.get(), INFO_LDAP_STATS_DESC_OPS_ABANDONED.get(), opsAbandoned); } if (abandonRequests != null) { addMonitorAttribute(attrs, ATTR_ABANDON_REQUESTS, INFO_LDAP_STATS_DISPNAME_ABANDON_REQUESTS.get(), INFO_LDAP_STATS_DESC_ABANDON_REQUESTS.get(), abandonRequests); } if (addRequests != null) { addMonitorAttribute(attrs, ATTR_ADD_REQUESTS, INFO_LDAP_STATS_DISPNAME_ADD_REQUESTS.get(), INFO_LDAP_STATS_DESC_ADD_REQUESTS.get(), addRequests); } if (addResponses != null) { addMonitorAttribute(attrs, ATTR_ADD_RESPONSES, INFO_LDAP_STATS_DISPNAME_ADD_RESPONSES.get(), INFO_LDAP_STATS_DESC_ADD_RESPONSES.get(), addResponses); } if (bindRequests != null) { addMonitorAttribute(attrs, ATTR_BIND_REQUESTS, INFO_LDAP_STATS_DISPNAME_BIND_REQUESTS.get(), INFO_LDAP_STATS_DESC_BIND_REQUESTS.get(), bindRequests); } if (bindResponses != null) { addMonitorAttribute(attrs, ATTR_BIND_RESPONSES, INFO_LDAP_STATS_DISPNAME_BIND_RESPONSES.get(), INFO_LDAP_STATS_DESC_BIND_RESPONSES.get(), bindResponses); } if (compareRequests != null) { addMonitorAttribute(attrs, ATTR_COMPARE_REQUESTS, INFO_LDAP_STATS_DISPNAME_COMPARE_REQUESTS.get(), INFO_LDAP_STATS_DESC_COMPARE_REQUESTS.get(), compareRequests); } if (compareResponses != null) { addMonitorAttribute(attrs, ATTR_COMPARE_RESPONSES, INFO_LDAP_STATS_DISPNAME_COMPARE_RESPONSES.get(), INFO_LDAP_STATS_DESC_COMPARE_RESPONSES.get(), compareResponses); } if (deleteRequests != null) { addMonitorAttribute(attrs, ATTR_DELETE_REQUESTS, INFO_LDAP_STATS_DISPNAME_DELETE_REQUESTS.get(), INFO_LDAP_STATS_DESC_DELETE_REQUESTS.get(), deleteRequests); } if (deleteResponses != null) { addMonitorAttribute(attrs, ATTR_DELETE_RESPONSES, INFO_LDAP_STATS_DISPNAME_DELETE_RESPONSES.get(), INFO_LDAP_STATS_DESC_DELETE_RESPONSES.get(), deleteResponses); } if (extendedRequests != null) { addMonitorAttribute(attrs, ATTR_EXTENDED_REQUESTS, INFO_LDAP_STATS_DISPNAME_EXTENDED_REQUESTS.get(), INFO_LDAP_STATS_DESC_EXTENDED_REQUESTS.get(), extendedRequests); } if (extendedResponses != null) { addMonitorAttribute(attrs, ATTR_EXTENDED_RESPONSES, INFO_LDAP_STATS_DISPNAME_EXTENDED_RESPONSES.get(), INFO_LDAP_STATS_DESC_EXTENDED_RESPONSES.get(), extendedResponses); } if (modifyRequests != null) { addMonitorAttribute(attrs, ATTR_MODIFY_REQUESTS, INFO_LDAP_STATS_DISPNAME_MODIFY_REQUESTS.get(), INFO_LDAP_STATS_DESC_MODIFY_REQUESTS.get(), modifyRequests); } if (modifyResponses != null) { addMonitorAttribute(attrs, ATTR_MODIFY_RESPONSES, INFO_LDAP_STATS_DISPNAME_MODIFY_RESPONSES.get(), INFO_LDAP_STATS_DESC_MODIFY_RESPONSES.get(), modifyResponses); } if (modifyDNRequests != null) { addMonitorAttribute(attrs, ATTR_MODIFY_DN_REQUESTS, INFO_LDAP_STATS_DISPNAME_MODIFY_DN_REQUESTS.get(), INFO_LDAP_STATS_DESC_MODIFY_DN_REQUESTS.get(), modifyDNRequests); } if (modifyDNResponses != null) { addMonitorAttribute(attrs, ATTR_MODIFY_DN_RESPONSES, INFO_LDAP_STATS_DISPNAME_MODIFY_DN_RESPONSES.get(), INFO_LDAP_STATS_DESC_MODIFY_DN_RESPONSES.get(), modifyDNResponses); } if (searchRequests != null) { addMonitorAttribute(attrs, ATTR_SEARCH_REQUESTS, INFO_LDAP_STATS_DISPNAME_SEARCH_REQUESTS.get(), INFO_LDAP_STATS_DESC_SEARCH_REQUESTS.get(), searchRequests); } if (searchEntryResponses != null) { addMonitorAttribute(attrs, ATTR_SEARCH_RESULT_ENTRY_RESPONSES, INFO_LDAP_STATS_DISPNAME_SEARCH_ENTRY_RESPONSES.get(), INFO_LDAP_STATS_DESC_SEARCH_ENTRY_RESPONSES.get(), searchEntryResponses); } if (searchReferenceResponses != null) { addMonitorAttribute(attrs, ATTR_SEARCH_RESULT_REFERENCE_RESPONSES, INFO_LDAP_STATS_DISPNAME_SEARCH_REFERENCE_RESPONSES.get(), INFO_LDAP_STATS_DESC_SEARCH_REFERENCE_RESPONSES.get(), searchReferenceResponses); } if (searchDoneResponses != null) { addMonitorAttribute(attrs, ATTR_SEARCH_RESULT_DONE_RESPONSES, INFO_LDAP_STATS_DISPNAME_SEARCH_DONE_RESPONSES.get(), INFO_LDAP_STATS_DESC_SEARCH_DONE_RESPONSES.get(), searchDoneResponses); } if (unbindRequests != null) { addMonitorAttribute(attrs, ATTR_UNBIND_REQUESTS, INFO_LDAP_STATS_DISPNAME_UNBIND_REQUESTS.get(), INFO_LDAP_STATS_DESC_UNBIND_REQUESTS.get(), unbindRequests); } return Collections.unmodifiableMap(attrs); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy