Group.Listener
Constructor and Description |
---|
ChannelGroupService(ChannelGroupConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(Group.Listener listener) |
Node |
getCoordinatorNode()
Returns the group coordinator.
|
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.
|
Group |
getValue() |
boolean |
isCoordinator()
Indicates whether or not we are the group coordinator.
|
void |
removeListener(Group.Listener listener) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
void |
viewChanged(org.infinispan.notifications.cachemanagerlistener.event.ViewChangedEvent event) |
public ChannelGroupService(ChannelGroupConfiguration config)
public Group getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<Group>
IllegalStateException
IllegalArgumentException
public void start(org.jboss.msc.service.StartContext context)
start
in interface org.jboss.msc.service.Service<Group>
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<Group>
public String getName()
Group
public boolean isCoordinator()
Group
isCoordinator
in interface Group
public Node getLocalNode()
Group
getLocalNode
in interface Group
public Node getCoordinatorNode()
Group
getCoordinatorNode
in interface Group
public List<Node> getNodes()
Group
public void viewChanged(org.infinispan.notifications.cachemanagerlistener.event.ViewChangedEvent event)
public void addListener(Group.Listener listener)
addListener
in interface Group
public void removeListener(Group.Listener listener)
removeListener
in interface Group
Copyright © 2013 JBoss by Red Hat. All rights reserved.