|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.services.binding.ServiceBinding
public class ServiceBinding
A ServiceBinding is a {name,virtualHost,port,interfaceAddress} quad specifying a named binding for a service.
Constructor Summary | |
---|---|
ServiceBinding(ServiceBindingMetadata metadata,
String defaulHostName,
int portOffset)
Build a ServiceBinding from metadata. |
Method Summary | |
---|---|
int |
compareTo(ServiceBinding o)
|
boolean |
equals(Object obj)
Equality is based on our serviceName and our bindingName. |
InetAddress |
getBindAddress()
Gets the InetAddress of the interface to use for the binding. |
String |
getBindingName()
Gets a qualifier identifying which particular binding within the service this is. |
String |
getDescription()
Gets a description of the binding suitable for display by management tools. |
String |
getFullyQualifiedName()
Gets the fully qualified binding name. |
String |
getHostName()
Gets the host name or string notation IP address to use for the binding. |
int |
getPort()
Gets the port to use for the binding. |
ServiceBindingValueSource |
getServiceBindingValueSource()
Gets the object that can return this ServiceBinding's values in formats usable by consumers. |
String |
getServiceBindingValueSourceClassName()
Gets the fully qualified class name of the serviceBindingValueSource . |
Object |
getServiceBindingValueSourceConfig()
Gets the configuration object the serviceBindingValueSource
should use. |
String |
getServiceName()
Gets the name of the service to which this binding applies. |
int |
hashCode()
Hashcode is based on our serviceName and our bindingName. |
void |
setDescription(String description)
Sets a description of the binding suitable for display by management tools. |
String |
toString()
Create string representation of the service descriptor |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServiceBinding(ServiceBindingMetadata metadata, String defaulHostName, int portOffset) throws UnknownHostException
metadata
- the binding metadata. Cannot be null
defaultHostName
- host name to use if the metadata's hostname is not
fixed
portOffset
- offset to apply to the metadata port value if it is not
fixed
UnknownHostException
- if no IP address for the hostName
could be found
IllegalArgumentException
- if metadata
is null
ll
IllegalStateException
- if metadata's serviceName
is null
RuntimeException
- if a serviceBindingValueSourceClassName
is provided but there is a problem instantiating
an instance of it via Class.newInstance()
Method Detail |
---|
public String getServiceName()
null
.public String getBindingName()
the service
this is.
null
if this is an unnamed default binding
for the service.public String getFullyQualifiedName()
serviceName
:bindingName
or
just the service name if the binding name is null
.public String getHostName()
public int getPort()
public InetAddress getBindAddress()
public String getDescription()
null
if there isn't onepublic void setDescription(String description)
description
- the description; may be null
public ServiceBindingValueSource getServiceBindingValueSource()
ServiceBindingManager
will use
reasonable defaults based on the format requested by the consumer.
null
public String getServiceBindingValueSourceClassName()
serviceBindingValueSource
.
null
public Object getServiceBindingValueSourceConfig()
serviceBindingValueSource
should use.
null
public int compareTo(ServiceBinding o)
compareTo
in interface Comparable<ServiceBinding>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |