| java.lang.Object org.jboss.services.binding.ServiceBinding
ServiceBinding | public class ServiceBinding implements Cloneable(Code) | | A ServiceBinding is a {name,virtualHost,port,interfaceAddress}
quad specifying a named binding for a service.
author: Mike Finn. author: Scott.Stark@jboss.org version: $Revision: 57210 $ |
Constructor Summary | |
public | ServiceBinding(String name, String hostName, int port) Creates a new instance of ServiceDescriptor
Parameters: name - The name of the binding. |
ServiceBinding | public ServiceBinding(String name, String hostName, int port) throws UnknownHostException(Code) | | Creates a new instance of ServiceDescriptor
Parameters: name - The name of the binding. A null or empty nameimplies that default binding for a service. Parameters: hostName - The virtual host name. This is the interface name used toconstruct the bindAddress value. A null value implies bind on anyinterface. Parameters: port - The port the service should listen on. A 0 value implies ananonymous port. exception: UnknownHostException - If hostName is not resolvable. |
clone | public Object clone()(Code) | | Make a copy of the ServiceBinding
|
getBindAddress | public InetAddress getBindAddress()(Code) | | Gets the bindAddress attribute of the ServiceDescriptor object
The listen address |
getHostName | public String getHostName()(Code) | | Returns host name
the hostname or address |
getName | public String getName()(Code) | | Getter for property name.
The name of the binding |
getPort | public int getPort()(Code) | | Gets the port attribute of the ServiceDescriptor object
The listen port number |
setBindAddress | public void setBindAddress(InetAddress bindAddress)(Code) | | Sets the bindAddress attribute of the ServiceDescriptor object
Parameters: pInetAddr - The new bindAddress value |
setBindAddress | public void setBindAddress(String hostName) throws UnknownHostException(Code) | | Sets the bindAddress, given a hostname
Parameters: pHostName - The hostname with which to create an InetAddress exception: UnknownHostException - Hostname is not resolvable |
setHostName | public void setHostName(String hostName)(Code) | | Sets the host name
hostName, the hostname or address |
setName | public void setName(String name)(Code) | | Setter for property name.
Parameters: name - the name of the binding |
setPort | public void setPort(int port)(Code) | | Sets the port attribute of the ServiceDescriptor object
Parameters: pPort - The new listen port number |
toString | public String toString()(Code) | | Create string representation of the service descriptor
String containing service descriptor properties |
|
|