Class ConnectionHandlerDescriptor


  • public class ConnectionHandlerDescriptor
    extends Object
    This class is used to represent a Listener and is aimed to be used by the classes in the ListenersTableModel class.
    • Constructor Detail

      • ConnectionHandlerDescriptor

        public ConnectionHandlerDescriptor​(Collection<InetAddress> addresses,
                                           int port,
                                           ConnectionHandlerDescriptor.Protocol protocol,
                                           ConnectionHandlerDescriptor.State state,
                                           String name,
                                           Set<SearchResultEntry> monitoringEntries)
        Constructor for the connection handler..
        Parameters:
        addresses - the list of InetAdresses of the listener.
        port - the port of the connection handler.
        protocol - the protocol of the listener.
        state - the state of the connection handler (enabled, disabled, etc.).
        name - the name of the listener.
        monitoringEntries - the LDAP entries containing the monitoring information.
    • Method Detail

      • getAddresses

        public SortedSet<InetAddress> getAddresses()
        Returns the address port representation of the listener.
        Returns:
        the address port representation of the listener.
      • getMonitoringEntries

        public Set<SearchResultEntry> getMonitoringEntries()
        Returns the monitoring entries.
        Returns:
        the monitoring entries.
      • setMonitoringEntries

        public void setMonitoringEntries​(Set<SearchResultEntry> monitoringEntries)
        Sets the monitoring entries.
        Parameters:
        monitoringEntries - the monitoring entries.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getPort

        public int getPort()
        Returns the port of the connection handler.
        Returns:
        the port of the connection handler.
      • getName

        public String getName()
        Returns the name of the connection handler.
        Returns:
        the name of the connection handler.