public interface Group
Modifier and Type | Interface and Description |
---|---|
static interface |
Group.Listener
Listener for membership changes.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(Group.Listener listener)
Registers a membership listener for the group.
|
Node |
getCoordinatorNode()
Returns the group coordinator node.
|
Node |
getLocalNode()
Returns the local node.
|
String |
getName()
Returns the name of this group.
|
List<Node> |
getNodes()
Returns the list of nodes that are members of this group.
|
boolean |
isCoordinator()
Indicates whether or not we are the group coordinator.
|
boolean |
isLocal()
Indicates whether this is a local group.
|
void |
removeListener(Group.Listener listener)
Removes a registered listener from the group.
|
void addListener(Group.Listener listener)
listener
- listener to be addedvoid removeListener(Group.Listener listener)
listener
- listener to be removedString getName()
boolean isCoordinator()
Node getLocalNode()
Node getCoordinatorNode()
List<Node> getNodes()
boolean isLocal()
Copyright © 2017 JBoss by Red Hat. All rights reserved.