Package org.serviceconnector.conf
Class ListenerConfiguration
java.lang.Object
org.serviceconnector.conf.ListenerConfiguration
The Class ListenerConfiguration.
- Author:
- JTraber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(XMLDumpWriter writer) Dump the listener config into the xml writer.Gets the connection type.Gets the interfaces.getName()Gets the communicator name.Gets the network interfaces.Gets the password.intgetPort()Gets the port.Gets the remote node config.Gets the username.voidload(org.apache.commons.configuration2.CompositeConfiguration compositeConfig, RemoteNodeListConfiguration remoteNodeListConfiguration) Load the configurated items.voidsetConnectionType(String connectionType) Sets the connection type.voidsetNetworkInterfaces(List<String> networkInterfaces) Sets the network interfaces.voidsetPort(int port) Sets the port.toString()
-
Constructor Details
-
ListenerConfiguration
The Constructor.- Parameters:
name- the listener name
-
-
Method Details
-
load
public void load(org.apache.commons.configuration2.CompositeConfiguration compositeConfig, RemoteNodeListConfiguration remoteNodeListConfiguration) throws SCMPValidatorException Load the configurated items.- Parameters:
compositeConfig- the composite configremoteNodeListConfiguration- the remote node list configuration- Throws:
SCMPValidatorException- the sCMP validator exception
-
toString
-
dump
Dump the listener config into the xml writer.- Parameters:
writer- the writer- Throws:
Exception- the exception
-
getName
Gets the communicator name.- Returns:
- the communicator name
-
getPort
public int getPort()Gets the port.- Returns:
- the port
-
getInterfaces
Gets the interfaces.- Returns:
- the interfaces
-
getConnectionType
Gets the connection type.- Returns:
- the connection type
-
getUsername
Gets the username.- Returns:
- the username
-
getRemoteNodeConfiguration
Gets the remote node config.- Returns:
- the remote node config
-
getPassword
Gets the password.- Returns:
- the password
-
getNetworkInterfaces
Gets the network interfaces.- Returns:
- the network interfaces
-
setNetworkInterfaces
Sets the network interfaces.- Parameters:
networkInterfaces- the new network interfaces
-
setPort
public void setPort(int port) Sets the port.- Parameters:
port- the new port
-
setConnectionType
Sets the connection type.- Parameters:
connectionType- the new connection type
-