|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.services.binding.ServiceBinding
A ServiceBinding is a {name,virtualHost,port,interfaceAddress} quad specifying a named binding for a service.
Constructor Summary | |
ServiceBinding(String name,
String hostName,
int port)
Creates a new instance of ServiceDescriptor |
Method Summary | |
Object |
clone()
Make a copy of the ServiceBinding |
InetAddress |
getBindAddress()
Gets the bindAddress attribute of the ServiceDescriptor object |
String |
getHostName()
Returns host name |
String |
getName()
Getter for property name. |
int |
getPort()
Gets the port attribute of the ServiceDescriptor object |
void |
setBindAddress(InetAddress bindAddress)
Sets the bindAddress attribute of the ServiceDescriptor object |
void |
setBindAddress(String hostName)
Sets the bindAddress, given a hostname |
void |
setHostName(String hostName)
Sets the host name |
void |
setName(String name)
Setter for property name. |
void |
setPort(int port)
Sets the port attribute of the ServiceDescriptor object |
String |
toString()
Create string representation of the service descriptor |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ServiceBinding(String name, String hostName, int port) throws UnknownHostException
name
- The name of the binding. A null or empty name
implies that default binding for a service.hostName
- The virtual host name. This is the interface name used to
construct the bindAddress value. A null value implies bind on any
interface.port
- The port the service should listen on. A 0 value implies an
anonymous port.
UnknownHostException
- If hostName is not resolvable.Method Detail |
public Object clone()
public String getName()
public void setName(String name)
name
- the name of the bindingpublic void setBindAddress(InetAddress bindAddress)
public void setBindAddress(String hostName) throws UnknownHostException
UnknownHostException
- Hostname is not resolvablepublic InetAddress getBindAddress()
public void setPort(int port)
public int getPort()
public String getHostName()
public void setHostName(String hostName)
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |