| | |
| | | import java.util.TreeSet; |
| | | |
| | | import org.opends.messages.Message; |
| | | import org.opends.server.admin.std.meta.AdministrationConnectorCfgDefn; |
| | | |
| | | /** |
| | | * This class is used to represent a Listener and is aimed to be used by the |
| | |
| | | } |
| | | |
| | | private State state; |
| | | private SortedSet<InetAddress> addresses = new TreeSet<InetAddress>(); |
| | | private SortedSet<InetAddress> addresses = new TreeSet<InetAddress>( |
| | | AdministrationConnectorCfgDefn.getInstance(). |
| | | getListenAddressPropertyDefinition()); |
| | | private int port; |
| | | private Protocol protocol; |
| | | private String toString; |
| | |
| | | private int hashCode; |
| | | |
| | | /** |
| | | * Constructor for thid class. |
| | | * Constructor for the connection handler.. |
| | | * @param addresses the list of InetAdresses of the listener. |
| | | * @param port the port of the connection handler. |
| | | * @param protocol the protocol of the listener. |
| | |
| | | */ |
| | | public SortedSet<InetAddress> getAddresses() |
| | | { |
| | | return new TreeSet<InetAddress>(addresses); |
| | | return addresses; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | else if (o instanceof ConnectionHandlerDescriptor) |
| | | { |
| | | equals = hashCode() == o.hashCode(); |
| | | equals = toString.equals(o.toString()); |
| | | } |
| | | return equals; |
| | | } |