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.
|
ContainerAllocateData |
byAny() |
ContainerAllocateData |
byHosts() |
ContainerAllocateData |
byRacks() |
int |
getAny()
Gets the count for any container.
|
Map<String,Integer> |
getHosts()
Gets the hosts counts.
|
String |
getId() |
Map<String,Integer> |
getRacks()
Gets the racks counts.
|
boolean |
hasData() |
void |
setId(String id) |
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()
public void setId(String id)
public String getId()
public boolean hasData()
public ContainerAllocateData byAny()
public ContainerAllocateData byHosts()
public ContainerAllocateData byRacks()