|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.am.allocate.DefaultAllocateCountTracker
public class DefaultAllocateCountTracker
Helper class tracking allocation counts. This separates counts for hosts into two states; in first state we have a counts of pending requests which are not yet sent into resource manager. in second state we have a counts which are sent into resource manager. These states allows us to loosely track needed counts sent during the allocation requests to minimise allocation garbage.
| Nested Class Summary | |
|---|---|
static class |
DefaultAllocateCountTracker.AllocateCountInfo
|
| Constructor Summary | |
|---|---|
DefaultAllocateCountTracker(Configuration configuration)
Instantiates a new default allocate count tracker. |
|
| Method Summary | |
|---|---|
void |
addContainers(ContainerAllocateData containerAllocateData)
Adds new count of containers into 'host', 'rack' and 'any' pending requests. |
void |
addContainers(int count)
Adds new count of containers into 'any' pending requests. |
DefaultAllocateCountTracker.AllocateCountInfo |
getAllocateCounts()
Gets the allocate counts which should be used to create allocate requests. |
Container |
processAllocatedContainer(Container container)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAllocateCountTracker(Configuration configuration)
configuration - the hadoop configuration| Method Detail |
|---|
public void addContainers(int count)
count - the count to addpublic void addContainers(ContainerAllocateData containerAllocateData)
containerAllocateData - the container allocate datapublic DefaultAllocateCountTracker.AllocateCountInfo getAllocateCounts()
public Container processAllocatedContainer(Container container)
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||