Class BaselineNode
- java.lang.Object
-
- org.apache.ignite.internal.visor.VisorDataTransferObject
-
- org.apache.ignite.internal.management.baseline.BaselineNode
-
- All Implemented Interfaces:
Externalizable,Serializable
public class BaselineNode extends VisorDataTransferObject
Data transfer object forBaselineNode.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBaselineNode.ResolvedAddressesSimple data class for storing (hostname, address) pairs
-
Constructor Summary
Constructors Constructor Description BaselineNode()Default constructor.BaselineNode(BaselineNode node, @NotNull Collection<BaselineNode.ResolvedAddresses> resolvedInetAddrs)Create data transfer object for baseline node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Collection<BaselineNode.ResolvedAddresses>getAddrs()Map<String,Object>getAttributes()StringgetConsistentId()@Nullable LonggetOrder()bytegetProtocolVersion()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
readExternal, toList, toSet, writeExternal
-
-
-
-
Constructor Detail
-
BaselineNode
public BaselineNode()
Default constructor.
-
BaselineNode
public BaselineNode(BaselineNode node, @NotNull @NotNull Collection<BaselineNode.ResolvedAddresses> resolvedInetAddrs)
Create data transfer object for baseline node.- Parameters:
node- Baseline node.resolvedInetAddrs- List of resolved ip, hostnames pairs.
-
-
Method Detail
-
getProtocolVersion
public byte getProtocolVersion()
- Overrides:
getProtocolVersionin classVisorDataTransferObject- Returns:
- Transfer object version.
-
getConsistentId
public String getConsistentId()
- Returns:
- Node consistent ID.
-
getOrder
@Nullable public @Nullable Long getOrder()
- Returns:
- Node order.
-
getAddrs
@NotNull public @NotNull Collection<BaselineNode.ResolvedAddresses> getAddrs()
- Returns:
- Collection with resolved pairs ip->hostname
-
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.
-
-