public class Nodes
extends java.lang.Object
Constructor and Description |
---|
Nodes() |
Nodes(java.io.BufferedReader reader) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getNodeList()
Get the list of all the nodes
|
protected java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> |
getNodes()
Get the map from rackID to its associated
nodes
|
int |
getNumPhysicalNodes()
Get the number of physical nodes
|
protected java.util.List<java.lang.Integer> |
getRackList()
Get the list of the racks
|
java.util.List<java.lang.String> |
printToNodesFile()
print the rack and the nodes information
|
void |
sortRacks()
Sorting the racks based on the number of the
nodes associated with the racks in descending
order
|
public Nodes() throws java.lang.Exception
java.lang.Exception
public Nodes(java.io.BufferedReader reader) throws java.lang.Exception
java.lang.Exception
public int getNumPhysicalNodes()
protected java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> getNodes()
protected java.util.List<java.lang.Integer> getRackList()
public java.util.List<java.lang.String> getNodeList()
public void sortRacks()
public java.util.List<java.lang.String> printToNodesFile()