Class ContainerLaunchService
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.service.containerlaunch.ContainerLaunchService
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service
public class ContainerLaunchService
extends org.apache.hadoop.service.AbstractService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classLaunch context of a component.Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionContainerLaunchService(org.apache.hadoop.yarn.service.ServiceContext context) -
Method Summary
Modifier and TypeMethodDescriptionlaunchCompInstance(Service service, ComponentInstance instance, org.apache.hadoop.yarn.api.records.Container container, ContainerLaunchService.ComponentLaunchContext componentLaunchContext) reInitCompInstance(Service service, ComponentInstance instance, org.apache.hadoop.yarn.api.records.Container container, ContainerLaunchService.ComponentLaunchContext componentLaunchContext) voidserviceInit(org.apache.hadoop.conf.Configuration conf) protected voidMethods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Constructor Details
-
ContainerLaunchService
public ContainerLaunchService(org.apache.hadoop.yarn.service.ServiceContext context)
-
-
Method Details
-
serviceInit
- Overrides:
serviceInitin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
launchCompInstance
public Future<ProviderService.ResolvedLaunchParams> launchCompInstance(Service service, ComponentInstance instance, org.apache.hadoop.yarn.api.records.Container container, ContainerLaunchService.ComponentLaunchContext componentLaunchContext) -
reInitCompInstance
public Future<ProviderService.ResolvedLaunchParams> reInitCompInstance(Service service, ComponentInstance instance, org.apache.hadoop.yarn.api.records.Container container, ContainerLaunchService.ComponentLaunchContext componentLaunchContext)
-