public class NodePlan extends Object
| Constructor and Description | 
|---|
| NodePlan()Constructs an Empty Node Plan. | 
| NodePlan(String datanodeName,
        int rpcPort)Constructs an empty NodePlan. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getNodeName()Returns the DataNode URI. | 
| String | getNodeUUID()gets the Node UUID. | 
| int | getPort()Gets the DataNode RPC Port. | 
| long | getTimeStamp()returns timestamp when this plan was created. | 
| List<Step> | getVolumeSetPlans()Returns a Map of  VolumeSetIDs and volumeSetPlans. | 
| static NodePlan | parseJson(String json)Parses a Json string and converts to NodePlan. | 
| void | setNodeName(String nodeName)Sets Node Name. | 
| void | setNodeUUID(String nodeUUID)Sets the Node UUID. | 
| void | setPort(int port)Sets the DataNode RPC Port. | 
| void | setTimeStamp(long timeStamp)Sets the timestamp when this plan was created. | 
| void | setURI(String dataNodeName)Sets the DataNodeURI. | 
| void | setVolumeSetPlans(List<Step> volumeSetPlans)Sets a volume List plan. | 
| String | toJson()Returns a Json representation of NodePlan. | 
public NodePlan()
public NodePlan(String datanodeName, int rpcPort)
public long getTimeStamp()
public void setTimeStamp(long timeStamp)
timeStamp - public List<Step> getVolumeSetPlans()
public void setNodeName(String nodeName)
nodeName - - Namepublic void setVolumeSetPlans(List<Step> volumeSetPlans)
volumeSetPlans - - List of plans.public String getNodeName()
public void setURI(String dataNodeName)
dataNodeName - - Stringpublic int getPort()
public void setPort(int port)
port - - intpublic static NodePlan parseJson(String json) throws IOException
json - - Json StringIOExceptionpublic String toJson() throws IOException
IOExceptionpublic String getNodeUUID()
public void setNodeUUID(String nodeUUID)
nodeUUID - - UUID of the node.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.