Interface ClusterNode
-
public interface ClusterNode
A ClusterNode represents a node in the cluster.- Author:
- ivol
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getClusterId()
The cluster id (represented by the System property webmanager.clustering.id) of this cluster node.String
getHostName()
Return the hostname of the node.String
getMacAddress()
Returns the MAC Address of the network interface on this cluster node that has the IP of the localhost address bound to it.Boolean
isActive()
Returns the active status of the node (or null when not set)boolean
isReadOnly()
true when the cluster node is read only (frontend server), false otherwise.boolean
isTaskMaster()
true when this cluster node runs in taskmaster mode, false otherwise.
-
-
-
Method Detail
-
getClusterId
String getClusterId()
The cluster id (represented by the System property webmanager.clustering.id) of this cluster node.- Returns:
- The cluster id of the cluster node
-
getMacAddress
String getMacAddress()
Returns the MAC Address of the network interface on this cluster node that has the IP of the localhost address bound to it. Might be null in case the MAC address could not be read (this is the case on Cloud servers for example)- Returns:
- MAC Address of the network card in the cluster node
-
isReadOnly
boolean isReadOnly()
true when the cluster node is read only (frontend server), false otherwise.- Returns:
- true when the cluster node is read only, false otherwise
-
isTaskMaster
boolean isTaskMaster()
true when this cluster node runs in taskmaster mode, false otherwise.- Returns:
- true when the cluster node runs in taskmaster mode, false otherwise
-
getHostName
String getHostName()
Return the hostname of the node.- Returns:
- hostname
-
isActive
Boolean isActive()
Returns the active status of the node (or null when not set)- Returns:
- active
-
-