|
|||||||||
| 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
Rendezvous implementation in Java.
| Constructor Summary | |
Rendezvous()
Create an instance of Rendezvous. |
|
Rendezvous(java.net.InetAddress addr)
Create an instance of Rendezvous and bind it to a specific network interface given its IP-address. |
|
| Method Summary | |
void |
addServiceListener(java.lang.String type,
ServiceListener listener)
Listen for services of a given type. |
void |
close()
Close down rendezvous. |
ServiceInfo |
getServiceInfo(java.lang.String type,
java.lang.String name)
Get service information. |
ServiceInfo |
getServiceInfo(java.lang.String type,
java.lang.String name,
int timeout)
Get service information. |
void |
registerService(ServiceInfo info)
Register a service. |
void |
removeServiceListener(ServiceListener listener)
Remove listener for services of a given type. |
void |
unregisterAllServices()
Unregister a service. |
void |
unregisterService(ServiceInfo info)
Unregister a service. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Rendezvous()
throws java.io.IOException
public Rendezvous(java.net.InetAddress addr)
throws java.io.IOException
| Method Detail |
public ServiceInfo getServiceInfo(java.lang.String type,
java.lang.String name)
type - full qualified service type, such as _http._tcp.local..type - full qualified service name, such as foobar._http._tcp.local..
public ServiceInfo getServiceInfo(java.lang.String type,
java.lang.String name,
int timeout)
type - full qualified service type, such as _http._tcp.local..type - full qualified service name, such as foobar._http._tcp.local..timeout - timeout in milliseconds
public void addServiceListener(java.lang.String type,
ServiceListener listener)
_http._tcp.local..type - full qualified service type, such as _http._tcp.local..listener - listener for service updatespublic void removeServiceListener(ServiceListener listener)
listener - listener for service updates
public void registerService(ServiceInfo info)
throws java.io.IOException
public void unregisterService(ServiceInfo info)
public void unregisterAllServices()
public void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||