Package akka.cluster
Interface ClusterNodeMBean
-
public interface ClusterNodeMBeanInterface for the cluster JMX MBean.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddown(java.lang.String address)Send command to DOWN the node specified by 'address'.java.lang.StringgetClusterStatus()java.lang.StringgetLeader()Get the address of the current leader.java.lang.StringgetMembers()Comma separated addresses of member nodes, sorted in the cluster ring order.java.lang.StringgetMemberStatus()Member status for this node.java.lang.StringgetUnreachable()Comma separated addresses of unreachable member nodes.booleanisAvailable()Returns true if the node is not unreachable and notDownand notRemoved.booleanisSingleton()Does the cluster consist of only one member?voidjoin(java.lang.String address)Try to join this cluster node with the node specified by 'address'.voidleave(java.lang.String address)Send command to issue state transition to LEAVING for the node specified by 'address'.
-
-
-
Method Detail
-
down
void down(java.lang.String address)
Send command to DOWN the node specified by 'address'. The address format isakka://actor-system-name@hostname:port
-
getClusterStatus
java.lang.String getClusterStatus()
-
getLeader
java.lang.String getLeader()
Get the address of the current leader. The address format isakka://actor-system-name@hostname:port
-
getMemberStatus
java.lang.String getMemberStatus()
Member status for this node.
-
getMembers
java.lang.String getMembers()
Comma separated addresses of member nodes, sorted in the cluster ring order. The address format isakka://actor-system-name@hostname:port
-
getUnreachable
java.lang.String getUnreachable()
Comma separated addresses of unreachable member nodes. The address format isakka://actor-system-name@hostname:port
-
isAvailable
boolean isAvailable()
Returns true if the node is not unreachable and notDownand notRemoved.
-
isSingleton
boolean isSingleton()
Does the cluster consist of only one member?
-
join
void join(java.lang.String address)
Try to join this cluster node with the node specified by 'address'. The address format isakka://actor-system-name@hostname:port. A 'Join(thisNodeAddress)' command is sent to the node to join.
-
leave
void leave(java.lang.String address)
Send command to issue state transition to LEAVING for the node specified by 'address'. The address format isakka://actor-system-name@hostname:port
-
-