|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.strangeberry.rendezvous.DNSConstants
|
+--com.strangeberry.rendezvous.Rendezvous.Listener
|
+--com.strangeberry.rendezvous.ServiceInfo
Rendezvous service information.
| Field Summary | |
static byte[] |
NO_VALUE
|
| Constructor Summary | |
ServiceInfo(java.lang.String type,
java.lang.String name,
java.net.InetAddress addr,
int port,
int weight,
int priority,
byte[] text)
Construct a service description for registrating with Rendezvous. |
|
ServiceInfo(java.lang.String type,
java.lang.String name,
java.net.InetAddress addr,
int port,
int weight,
int priority,
java.util.Hashtable props)
Construct a service description for registrating with Rendezvous. |
|
ServiceInfo(java.lang.String type,
java.lang.String name,
java.net.InetAddress addr,
int port,
int weight,
int priority,
java.lang.String text)
Construct a service description for registrating with Rendezvous. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
java.net.InetAddress |
getAddress()
Get the host address of the service. |
java.lang.String |
getName()
Service name, such as foobar. |
int |
getPort()
Get the port for the service. |
int |
getPriority()
Get the priority of the service. |
byte[] |
getPropertyBytes(java.lang.String name)
Get a property of the service. |
java.util.Enumeration |
getPropertyNames()
Enumeration of the property names. |
java.lang.String |
getPropertyString(java.lang.String name)
Get a property of the service. |
byte[] |
getTextBytes()
Get the text for the serivce as raw bytes. |
java.lang.String |
getTextString()
Get the text for the service. |
java.lang.String |
getType()
Fully qualified service type name, such as _http._tcp.local.. |
int |
getWeight()
Get the weight of the service. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final byte[] NO_VALUE
| Constructor Detail |
public ServiceInfo(java.lang.String type,
java.lang.String name,
java.net.InetAddress addr,
int port,
int weight,
int priority,
java.lang.String text)
type - fully qualified service type namename - fully qualified service nameaddr - the address to which the service is boundport - the local port on which the service runsweight - weight of the servicepriority - priority of the servicetext - string describing the service
public ServiceInfo(java.lang.String type,
java.lang.String name,
java.net.InetAddress addr,
int port,
int weight,
int priority,
java.util.Hashtable props)
type - fully qualified service type namename - fully qualified service nameaddr - the address to which the service is boundport - the local port on which the service runsweight - weight of the servicepriority - priority of the serviceprops - properties describing the service
public ServiceInfo(java.lang.String type,
java.lang.String name,
java.net.InetAddress addr,
int port,
int weight,
int priority,
byte[] text)
type - fully qualified service type namename - fully qualified service nameaddr - the address to which the service is boundport - the local port on which the service runsweight - weight of the servicepriority - priority of the servicetext - bytes describing the service| Method Detail |
public java.lang.String getType()
_http._tcp.local..public java.lang.String getName()
foobar.public java.net.InetAddress getAddress()
public int getPort()
public int getPriority()
public int getWeight()
public byte[] getTextBytes()
public java.lang.String getTextString()
public byte[] getPropertyBytes(java.lang.String name)
public java.lang.String getPropertyString(java.lang.String name)
public java.util.Enumeration getPropertyNames()
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||