| | |
| | | // The attribute type that will be used to report the protocol. |
| | | private AttributeType protocolType; |
| | | |
| | | // The attribute type that will be used to report the config dn . |
| | | private AttributeType configDnType; |
| | | |
| | | // The connection handler with which this monitor is associated. |
| | | private ConnectionHandler<?> connectionHandler; |
| | | |
| | |
| | | protocolType = |
| | | DirectoryConfig.getAttributeType(ATTR_MONITOR_CONNHANDLER_PROTOCOL, |
| | | true); |
| | | |
| | | configDnType = |
| | | DirectoryConfig.getAttributeType(ATTR_MONITOR_CONFIG_DN, |
| | | true); |
| | | } |
| | | |
| | | |
| | |
| | | { |
| | | LinkedList<Attribute> attrs = new LinkedList<Attribute>(); |
| | | |
| | | // Configuration DN |
| | | attrs.add(Attributes.create(configDnType, String.valueOf( |
| | | connectionHandler.getComponentEntryDN().toNormalizedString()))); |
| | | |
| | | int numConnections = 0; |
| | | LinkedList<ClientConnection> conns = new LinkedList<ClientConnection>( |
| | | connectionHandler.getClientConnections()); |