Class ConnectionHandlerDescriptor
- java.lang.Object
-
- org.opends.guitools.controlpanel.datamodel.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConnectionHandlerDescriptor.ProtocolEnumeration used to represent the Protocol of the listener.static classConnectionHandlerDescriptor.StateEnumeration used to represent the state of the listener.
-
Constructor Summary
Constructors Constructor Description ConnectionHandlerDescriptor(Collection<InetAddress> addresses, int port, ConnectionHandlerDescriptor.Protocol protocol, ConnectionHandlerDescriptor.State state, String name, Set<SearchResultEntry> monitoringEntries)Constructor for the connection handler..
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)SortedSet<InetAddress>getAddresses()Returns the address port representation of the listener.Set<SearchResultEntry>getMonitoringEntries()Returns the monitoring entries.StringgetName()Returns the name of the connection handler.intgetPort()Returns the port of the connection handler.ConnectionHandlerDescriptor.ProtocolgetProtocol()Returns the protocol of the listener.ConnectionHandlerDescriptor.StategetState()Returns the state of the listener.inthashCode()voidsetMonitoringEntries(Set<SearchResultEntry> monitoringEntries)Sets the monitoring entries.StringtoString()
-
-
-
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.
-
getProtocol
public ConnectionHandlerDescriptor.Protocol getProtocol()
Returns the protocol of the listener.- Returns:
- the protocol of the listener.
-
getState
public ConnectionHandlerDescriptor.State getState()
Returns the state of the listener.- Returns:
- the state 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.
-
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.
-
-