Class ClusterNode
- java.lang.Object
-
- org.apache.ignite.internal.visor.VisorDataTransferObject
-
- org.apache.ignite.internal.management.wal.ClusterNode
-
- All Implemented Interfaces:
Externalizable,Serializable
public class ClusterNode extends VisorDataTransferObject
Data transfer object forClusterNode.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterNode()Default constructor.ClusterNode(ClusterNode node)Create data transfer object for baseline node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>getAddresses()Get cluster node addresses.Map<String,Object>getAttributes()Get cluster node attributes.StringgetConsistentId()Get cluster node consistent id.Collection<String>getHostNames()Get cluster node host names.protected voidreadExternalData(byte protoVer, ObjectInput in)Load object's specific data content.StringtoString()protected voidwriteExternalData(ObjectOutput out)Save object's specific data content.-
Methods inherited from class org.apache.ignite.internal.visor.VisorDataTransferObject
getProtocolVersion, readExternal, toList, toSet, writeExternal
-
-
-
-
Constructor Detail
-
ClusterNode
public ClusterNode()
Default constructor.
-
ClusterNode
public ClusterNode(ClusterNode node)
Create data transfer object for baseline node.- Parameters:
node- Baseline node.
-
-
Method Detail
-
getConsistentId
public String getConsistentId()
Get cluster node consistent id.- Returns:
- Cluster node consistent id.
-
getAttributes
public Map<String,Object> getAttributes()
Get cluster node attributes.- Returns:
- Cluster node attributes.
-
getAddresses
public Collection<String> getAddresses()
Get cluster node addresses.- Returns:
- Node addresses.
-
getHostNames
public Collection<String> getHostNames()
Get cluster node host names.- Returns:
- Node host names.
-
writeExternalData
protected void writeExternalData(ObjectOutput out) throws IOException
Save object's specific data content.- Specified by:
writeExternalDatain classVisorDataTransferObject- Parameters:
out- Output object to write data content.- Throws:
IOException- If I/O errors occur.
-
readExternalData
protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundExceptionLoad object's specific data content.- Specified by:
readExternalDatain classVisorDataTransferObject- Parameters:
protoVer- Input object version.in- Input object to load data content.- Throws:
IOException- If I/O errors occur.ClassNotFoundException- If the class for an object being restored cannot be found.
-
-