Package org.openbravo.cluster
Interface JmxClusterServiceManagerMBean
-
- All Known Implementing Classes:
JmxClusterServiceManager
public interface JmxClusterServiceManagerMBean
This interface allows to define theJmxClusterServiceManager
class as an standard MBean that allows to display and manage some of the cluster services settings through JMX.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
disablePingForService(String serviceName)
Forces the current node to stop doing pings for a particular cluster service.void
enablePingForService(String serviceName)
Enables the ping service for a particular cluster service.Map<String,String>
getClusterServiceLeaders()
Map<String,String>
getClusterServiceSettings()
String
getCurrentNodeId()
String
getCurrentNodeName()
Date
getLastPingOfCurrentNode()
-
-
-
Method Detail
-
getCurrentNodeId
String getCurrentNodeId()
- Returns:
- the unique identifier of the current cluster node.
-
getCurrentNodeName
String getCurrentNodeName()
- Returns:
- the name of the current cluster node.
-
getLastPingOfCurrentNode
Date getLastPingOfCurrentNode()
- Returns:
- the Date of the last ping done (for any service) by the current node.
-
getClusterServiceLeaders
Map<String,String> getClusterServiceLeaders()
- Returns:
- a Map with information (leader and last ping) per available cluster service.
-
getClusterServiceSettings
Map<String,String> getClusterServiceSettings()
- Returns:
- a Map with information of the settings for each available cluster service.
-
enablePingForService
void enablePingForService(String serviceName)
Enables the ping service for a particular cluster service.- Parameters:
serviceName
- the name of the service for which the ping is enabled.
-
disablePingForService
void disablePingForService(String serviceName)
Forces the current node to stop doing pings for a particular cluster service. In case the current node is the node in charge of handling the service it will be unregistered as the leader of the service.- Parameters:
serviceName
- the name of the service for which the ping is disabled.
-
-