| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.monitors; |
| | | |
| | | |
| | | |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | |
| | | import java.util.LinkedList; |
| | |
| | | import org.opends.server.api.MonitorProvider; |
| | | import org.opends.server.types.*; |
| | | |
| | | |
| | | /** |
| | | * This class implements a monitor provider that will report generic information |
| | | * for an enabled Directory Server connection handler, including its protocol, |
| | |
| | | AttributeBuilder builder = new AttributeBuilder(listenerType); |
| | | for (HostPort hp : listeners) |
| | | { |
| | | builder.add(AttributeValues.create(listenerType, hp.toString())); |
| | | builder.add(hp.toString()); |
| | | } |
| | | attrs.add(builder.toAttribute()); |
| | | } |
| | |
| | | for (ClientConnection c : conns) |
| | | { |
| | | numConnections++; |
| | | builder.add(AttributeValues.create(connectionsType, c |
| | | .getMonitorSummary())); |
| | | builder.add(c.getMonitorSummary()); |
| | | } |
| | | attrs.add(builder.toAttribute()); |
| | | } |