Package de.xima.fc.cluster.model
Class NodeModel
- java.lang.Object
-
- de.xima.fc.cluster.model.NodeModel
-
- All Implemented Interfaces:
Serializable
public class NodeModel extends Object implements Serializable
Models a node that is part of a cluster.- Since:
- 3.1.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAddress()
String
getID()
ENodeState
getState()
Date
getTimeStamp()
ENodeType
getType()
void
setAddress(String adress)
void
setState(ENodeState state)
void
setTimeStamp(Date timeStamp)
void
setType(ENodeType type)
String
toString()
-
-
-
Method Detail
-
getID
public String getID()
- Returns:
- The ID of this node.
-
getState
public ENodeState getState()
- Returns:
- The current state of this node, e.g. whether this node is running, idle, or in failover mode.
-
setState
public void setState(ENodeState state)
- Parameters:
state
- The current state of this node, e.g. whether this node is running, idle, or in failover mode.
-
getTimeStamp
public Date getTimeStamp()
- Returns:
- The date when the node was added to the cluster.
-
setTimeStamp
public void setTimeStamp(Date timeStamp)
- Parameters:
timeStamp
- The date when the node was added to the cluster.
-
getType
public ENodeType getType()
- Returns:
- The type of this node, i.e. the role it performs in the cluster.
-
setType
public void setType(ENodeType type)
- Parameters:
type
- The type of this node, i.e. the role it performs in the cluster.
-
getAddress
public String getAddress()
- Returns:
- The current address (usually IP address) of this node.
-
setAddress
public void setAddress(String adress)
- Parameters:
adress
- The current address (usually IP address) of this node.
-
-