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
Exception
public void setNotificationService(NotificationService notificationService)
setNotificationService
in interface DiscoveryGroup
public void start() throws Exception
start
in interface DiscoveryGroup
Exception
public void stop()
stop
in interface DiscoveryGroup
public boolean isStarted()
isStarted
in interface DiscoveryGroup
public String getName()
getName
in interface DiscoveryGroup
public List<DiscoveryEntry> getDiscoveryEntries()
getDiscoveryEntries
in interface DiscoveryGroup
public boolean waitForBroadcast(long timeout)
waitForBroadcast
in interface DiscoveryGroup
public void registerListener(DiscoveryListener listener)
registerListener
in interface DiscoveryGroup
public void unregisterListener(DiscoveryListener listener)
unregisterListener
in interface DiscoveryGroup
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.