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
-
-
Constructor Summary
Constructors Constructor Description NodeModel(String id)NodeModel(String id, String address)Deprecated, for removal: This API element is subject to removal in a future version.UseNodeModel(String, String, String)instead.NodeModel(String id, String address, String physicalAddress)Creates a new model for a node in the cluster with the given initial data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetAddress()StringgetID()StringgetPhysicalAddress()ENodeStategetState()DategetTimeStamp()ENodeTypegetType()inthashCode()voidsetAddress(String address)voidsetPhysicalAddress(String physicalAddress)voidsetState(ENodeState state)voidsetTimeStamp(Date timeStamp)voidsetType(ENodeType type)StringtoString()
-
-
-
Constructor Detail
-
NodeModel
@Deprecated(since="8.6.0", forRemoval=true) public NodeModel(String id, String address)
Deprecated, for removal: This API element is subject to removal in a future version.UseNodeModel(String, String, String)instead. The physical address is now required to be set for a node. This constructor will be currently set the physical address to the logical address, but this will be removed in a future version.Creates a new model for a node in the cluster with the given initial data.- Parameters:
id- ID of the node that cannot be changed.address- Address of the node.
-
NodeModel
public NodeModel(String id, String address, String physicalAddress)
Creates a new model for a node in the cluster with the given initial data.- Parameters:
id- ID of the node that cannot be changed.address- Address of the node.physicalAddress- Physical address of the node.
-
NodeModel
public NodeModel(String id)
-
-
Method Detail
-
getID
public String getID()
- Returns:
- The ID of this node.
-
getAddress
public String getAddress()
-
getPhysicalAddress
public String getPhysicalAddress()
-
getTimeStamp
public Date getTimeStamp()
-
getState
public ENodeState getState()
-
getType
public ENodeType getType()
-
setAddress
public void setAddress(String address)
-
setPhysicalAddress
public void setPhysicalAddress(String physicalAddress)
-
setTimeStamp
public void setTimeStamp(Date timeStamp)
-
setState
public void setState(ENodeState state)
-
setType
public void setType(ENodeType type)
-
canEqual
protected boolean canEqual(Object other)
-
-