|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.service.AbstractService
org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator
org.apache.hadoop.mapreduce.v2.app.local.LocalContainerAllocator
public class LocalContainerAllocator
Allocates containers locally. Doesn't allocate a real container; instead sends an allocated event for all requests.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.hadoop.mapreduce.v2.app.rm.ContainerAllocator |
|---|
ContainerAllocator.EventType |
| Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service |
|---|
org.apache.hadoop.service.Service.STATE |
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator |
|---|
allocatorThread, applicationACLs, applicationId, isSignalled, lastResponseID, scheduler |
| Constructor Summary | |
|---|---|
LocalContainerAllocator(ClientService clientService,
AppContext context,
String nmHost,
int nmPort,
int nmHttpPort,
org.apache.hadoop.yarn.api.records.ContainerId cId)
|
|
| Method Summary | |
|---|---|
void |
handle(ContainerAllocatorEvent event)
|
protected void |
heartbeat()
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf)
|
| Methods inherited from class org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator |
|---|
createSchedulerProxy, doUnregistration, getApplicationProgress, getContext, getJob, getLastHeartbeatTime, getMaxContainerCapability, register, runOnNextHeartbeat, serviceStart, serviceStop, setShouldUnregister, setSignalled, startAllocatorThread, unregister |
| Methods inherited from class org.apache.hadoop.service.AbstractService |
|---|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LocalContainerAllocator(ClientService clientService,
AppContext context,
String nmHost,
int nmPort,
int nmHttpPort,
org.apache.hadoop.yarn.api.records.ContainerId cId)
| Method Detail |
|---|
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class RMCommunicatorException
protected void heartbeat()
throws Exception
heartbeat in class RMCommunicatorExceptionpublic void handle(ContainerAllocatorEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<ContainerAllocatorEvent>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||