public class DiscoveryGroupImpl extends Object implements Runnable, DiscoveryGroup
| Constructor and Description |
|---|
DiscoveryGroupImpl(String nodeID,
String name,
InetAddress localBindAddress,
InetAddress groupAddress,
int groupPort,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
List<DiscoveryEntry> |
getDiscoveryEntries() |
String |
getName() |
boolean |
isStarted() |
void |
registerListener(DiscoveryListener listener) |
void |
run() |
void |
setNotificationService(NotificationService notificationService) |
void |
start() |
void |
stop() |
void |
unregisterListener(DiscoveryListener listener) |
boolean |
waitForBroadcast(long timeout) |
public DiscoveryGroupImpl(String nodeID, String name, InetAddress localBindAddress, InetAddress groupAddress, int groupPort, long timeout) throws Exception
Exceptionpublic void setNotificationService(NotificationService notificationService)
setNotificationService in interface DiscoveryGrouppublic void start()
throws Exception
start in interface DiscoveryGroupExceptionpublic void stop()
stop in interface DiscoveryGrouppublic boolean isStarted()
isStarted in interface DiscoveryGrouppublic String getName()
getName in interface DiscoveryGrouppublic List<DiscoveryEntry> getDiscoveryEntries()
getDiscoveryEntries in interface DiscoveryGrouppublic boolean waitForBroadcast(long timeout)
waitForBroadcast in interface DiscoveryGrouppublic void registerListener(DiscoveryListener listener)
registerListener in interface DiscoveryGrouppublic void unregisterListener(DiscoveryListener listener)
unregisterListener in interface DiscoveryGroupCopyright © 2012 JBoss by Red Hat. All Rights Reserved.