public interface ScattercastMBean
Modifier and Type | Field and Description |
---|---|
static String |
OBJECT_NAME |
Modifier and Type | Method and Description |
---|---|
CompositeData |
createScattercastNodes(List<String> newNodes)
Creates new scattercast mappings for nodes.
|
CompositeData |
deleteScattercastNodes(int[] removedNodes)
Remove scattercast endpoints for nodes that are being taken permanently offline.
|
boolean |
isScattercastMode()
Returns true if this is a scattercast cluster.
|
TabularData |
readScattercastEndpointsState()
Gets the current state of scattercast endpoints cluster wide.
|
void |
updateScattercastEndpointsState(List<String> args)
Updates scattercast endpoints for existing nodes.
|
static final String OBJECT_NAME
TabularData readScattercastEndpointsState() throws InvalidStateException
Gets the current state of scattercast endpoints cluster wide.
InvalidStateException
- if unable to aquire the management lock.CompositeData createScattercastNodes(List<String> newNodes) throws ManagementException, InvalidArgumentException
Creates new scattercast mappings for nodes. Requires that none of the listed nodeID’s or endpoints are currently used. Does not permit duplicate elements in the list. Does not permit wildcard (0.0.0.0) IP addresses, or Localhost addresses.
newNodes
- A list of strings containing nodeID to address/port pairs for each new node.InvalidArgumentException
- if unable to correctly parse argumentsManagementException
- if unable to acquire the management lock.void updateScattercastEndpointsState(List<String> args) throws ManagementException, InvalidArgumentException, InvalidStateException
Updates scattercast endpoints for existing nodes. Requires that all nodes to be updated are currently members of the cluster. Does not permit duplicate elements in the list. Does not permit wildcard (0.0.0.0) IP addresses, or Localhost addresses.
args
- A list of strings containing nodeID to address/port pairs for each new node.ManagementException
- if unable to shut down the cluster cleanly after updating.InvalidArgumentException
- if unable to correctly parse argumentsInvalidStateException
- if the slee is not stopped.ManagementException
- if unable to acquire the management lock.CompositeData deleteScattercastNodes(int[] removedNodes) throws InvalidArgumentException, InvalidStateException, ManagementException
Remove scattercast endpoints for nodes that are being taken permanently offline. WARNING: A removed node cannot be booted successfully after this command. Does not permit duplicate elements in the list.
removedNodes
- A list of NodeIDs to removeInvalidArgumentException
- if unable to correctly parse argumentsInvalidStateException
- if node to be removed is running.ManagementException
- if unable to acquire the management lock.boolean isScattercastMode() throws InvalidStateException
Returns true if this is a scattercast cluster.
InvalidStateException