| | |
| | | import java.util.LinkedList; |
| | | import java.util.List; |
| | | |
| | | import org.opends.server.admin.std.server.ConnectionHandlerCfg; |
| | | import org.opends.server.admin.std.server.MonitorProviderCfg; |
| | | import org.opends.server.api.ClientConnection; |
| | | import org.opends.server.api.ConnectionHandler; |
| | | import org.opends.server.api.MonitorProvider; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.types.Attribute; |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.AttributeValue; |
| | |
| | | * listeners, and established connections. |
| | | */ |
| | | public class ConnectionHandlerMonitor |
| | | extends MonitorProvider |
| | | extends MonitorProvider<MonitorProviderCfg> |
| | | { |
| | | |
| | | |
| | | |
| | | // The attribute type that will be used to report the established connections. |
| | | private AttributeType connectionsType; |
| | | |
| | |
| | | * @param connectionHandler The connection handler with which this monitor |
| | | * is associated. |
| | | */ |
| | | public ConnectionHandlerMonitor(ConnectionHandler connectionHandler) |
| | | public ConnectionHandlerMonitor( |
| | | ConnectionHandler<? extends ConnectionHandlerCfg> connectionHandler) |
| | | { |
| | | super(connectionHandler.getConnectionHandlerName()); |
| | | |
| | | |
| | | this.connectionHandler = connectionHandler; |
| | | } |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public void initializeMonitorProvider(ConfigEntry configEntry) |
| | | public void initializeMonitorProvider(MonitorProviderCfg configuration) |
| | | { |
| | | monitorName = connectionHandler.getConnectionHandlerName(); |
| | | |