public class ContainerAllocateData extends Object
ResourceRequests.| Constructor and Description |
|---|
ContainerAllocateData()
Instantiates a new container allocate data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAny(int count)
Adds request for any container for given count.
|
void |
addHosts(String name,
int count)
Adds request for a host for given count.
|
void |
addRacks(String name,
int count)
Adds request for a rack for given count.
|
int |
getAny()
Gets the count for any container.
|
Map<String,Integer> |
getHosts()
Gets the hosts counts.
|
Map<String,Integer> |
getRacks()
Gets the racks counts.
|
String |
toString() |
public ContainerAllocateData()
public void addRacks(String name, int count)
name - the rack namecount - the container countpublic void addHosts(String name, int count)
name - the host namecount - the container countpublic void addAny(int count)
count - the countpublic int getAny()