Package io.hekate.cluster
Class ClusterNodeJmx
- java.lang.Object
-
- io.hekate.cluster.ClusterNodeJmx
-
public class ClusterNodeJmx extends Object
Information about aClusterNode
that is exposed to JMX.- See Also:
ClusterServiceJmx
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getHost()
Returns the host address.String
getId()
Returns the node identifier.String
getName()
Returns the node name.int
getPort()
Returns the network port.Map<String,String>
getProperties()
Returns the node's properties.Set<String>
getRoles()
Returns the node's roles.int
hashCode()
static ClusterNodeJmx
of(ClusterNode node)
Constructs a newClusterNodeJmx
instance from the specified node.String
toString()
-
-
-
Constructor Detail
-
ClusterNodeJmx
public ClusterNodeJmx(String name, String host, int port, String id, Set<String> roles, Map<String,String> properties)
Constructs a new instance.- Parameters:
name
- SeegetName()
.host
- SeegetHost()
.port
- SeegetPort()
.id
- SeegetId()
.roles
- SeegetRoles()
.properties
- SeegetProperties()
.
-
-
Method Detail
-
of
public static ClusterNodeJmx of(ClusterNode node)
Constructs a newClusterNodeJmx
instance from the specified node.- Parameters:
node
- Cluster node.- Returns:
ClusterNodeJmx
instance of the specified node.
-
getName
public String getName()
Returns the node name.- Returns:
- Node name.
- See Also:
ClusterNode.name()
-
getId
public String getId()
Returns the node identifier.- Returns:
- Node identifier.
- See Also:
ClusterNode.id()
-
getHost
public String getHost()
Returns the host address.- Returns:
- Host address.
- See Also:
ClusterNode.socket()
-
getPort
public int getPort()
Returns the network port.- Returns:
- Network port.
- See Also:
ClusterNode.socket()
-
getRoles
public Set<String> getRoles()
Returns the node's roles.- Returns:
- Roles.
- See Also:
ClusterNode.roles()
-
getProperties
public Map<String,String> getProperties()
Returns the node's properties.- Returns:
- Properties.
- See Also:
ClusterNode.properties()
-
-