|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.yarn.am.allocate.ContainerAllocateData
public class ContainerAllocateData
Acts as a main entry point abstracting access for
ResourceRequest
s.
Constructor Summary | |
---|---|
ContainerAllocateData()
Instantiates a new container allocate data. |
Method Summary | |
---|---|
void |
addAny(int count)
Adds request for any container for given count. |
void |
addHosts(java.lang.String name,
int count)
Adds request for a host for given count. |
void |
addRacks(java.lang.String name,
int count)
Adds request for a rack for given count. |
int |
getAny()
Gets the count for any container. |
java.util.Map<java.lang.String,java.lang.Integer> |
getHosts()
Gets the hosts counts. |
java.util.Map<java.lang.String,java.lang.Integer> |
getRacks()
Gets the racks counts. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContainerAllocateData()
Method Detail |
---|
public void addRacks(java.lang.String name, int count)
name
- the rack namecount
- the container countpublic java.util.Map<java.lang.String,java.lang.Integer> getRacks()
public void addHosts(java.lang.String name, int count)
name
- the host namecount
- the container countpublic java.util.Map<java.lang.String,java.lang.Integer> getHosts()
public void addAny(int count)
count
- the countpublic int getAny()
public java.lang.String toString()
toString
in class java.lang.Object
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |