Interface Container
- All Superinterfaces:
org.apache.hadoop.yarn.event.EventHandler<ContainerEvent>
- All Known Implementing Classes:
ContainerImpl
-
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.hadoop.yarn.api.records.ContainerStatusvoidorg.apache.hadoop.yarn.api.records.ContainerIdlongThe timestamp when the container is allowed to be launched.<T> TgetContainerRuntimeData(Class<T> runtimeClazz) longThe timestamp when the container start request is received.org.apache.hadoop.yarn.security.ContainerTokenIdentifierorg.apache.hadoop.security.Credentialsorg.apache.hadoop.yarn.api.records.ContainerLaunchContextList<org.apache.hadoop.yarn.api.records.LocalizationStatus>Get the localization statuses.org.apache.hadoop.yarn.server.api.protocolrecords.NMContainerStatusorg.apache.hadoop.yarn.api.records.Priorityorg.apache.hadoop.yarn.api.records.ResourceGet assigned resource mappings to the container.getUser()booleanVerify container is in final states.booleanbooleanbooleanbooleanbooleanVector of localization counters to be passed from NM to application container via environment variable$LOCALIZATION_COUNTERS.voidsendKillEvent(int exitStatus, String description) voidvoidsendPauseEvent(String description) voidsetContainerRuntimeData(Object containerRuntimeData) voidsetContainerTokenIdentifier(org.apache.hadoop.yarn.security.ContainerTokenIdentifier token) voidsetCsiVolumesRootDir(String volumesRootDir) voidsetExposedPorts(String ports) voidsetIpAndHost(String[] ipAndHost) voidsetIsReInitializing(boolean isReInitializing) voidvoidsetWorkDir(String workDir) booleanshouldRetry(int errorCode) toString()Methods inherited from interface org.apache.hadoop.yarn.event.EventHandler
handle
-
Method Details
-
getContainerId
org.apache.hadoop.yarn.api.records.ContainerId getContainerId() -
getContainerStartTime
long getContainerStartTime()The timestamp when the container start request is received. -
getContainerLaunchTime
long getContainerLaunchTime()The timestamp when the container is allowed to be launched. -
getResource
org.apache.hadoop.yarn.api.records.Resource getResource() -
getContainerTokenIdentifier
org.apache.hadoop.yarn.security.ContainerTokenIdentifier getContainerTokenIdentifier() -
setContainerTokenIdentifier
void setContainerTokenIdentifier(org.apache.hadoop.yarn.security.ContainerTokenIdentifier token) -
getUser
String getUser() -
getContainerState
ContainerState getContainerState() -
getLaunchContext
org.apache.hadoop.yarn.api.records.ContainerLaunchContext getLaunchContext() -
getCredentials
org.apache.hadoop.security.Credentials getCredentials() -
getLocalizedResources
-
cloneAndGetContainerStatus
org.apache.hadoop.yarn.api.records.ContainerStatus cloneAndGetContainerStatus() -
getNMContainerStatus
org.apache.hadoop.yarn.server.api.protocolrecords.NMContainerStatus getNMContainerStatus() -
isRetryContextSet
boolean isRetryContextSet() -
shouldRetry
boolean shouldRetry(int errorCode) -
getWorkDir
String getWorkDir() -
setWorkDir
-
getCsiVolumesRootDir
String getCsiVolumesRootDir() -
setCsiVolumesRootDir
-
getLogDir
String getLogDir() -
setLogDir
-
setIpAndHost
-
setExposedPorts
-
toString
String toString() -
getPriority
org.apache.hadoop.yarn.api.records.Priority getPriority() -
getResourceSet
ResourceSet getResourceSet() -
isRunning
boolean isRunning() -
setIsReInitializing
void setIsReInitializing(boolean isReInitializing) -
isReInitializing
boolean isReInitializing() -
isMarkedForKilling
boolean isMarkedForKilling() -
canRollback
boolean canRollback() -
commitUpgrade
void commitUpgrade() -
sendLaunchEvent
void sendLaunchEvent() -
sendKillEvent
-
isRecovering
boolean isRecovering() -
setContainerRuntimeData
-
getContainerRuntimeData
- Throws:
ContainerExecutionException
-
getResourceMappings
ResourceMappings getResourceMappings()Get assigned resource mappings to the container.- Returns:
- Resource Mappings of the container
-
sendPauseEvent
-
isContainerInFinalStates
boolean isContainerInFinalStates()Verify container is in final states.- Returns:
- true/false based on container's state
-
getLocalizationStatuses
List<org.apache.hadoop.yarn.api.records.LocalizationStatus> getLocalizationStatuses()Get the localization statuses.- Returns:
- localization statuses.
-
localizationCountersAsString
String localizationCountersAsString()Vector of localization counters to be passed from NM to application container via environment variable$LOCALIZATION_COUNTERS. SeeApplicationConstants.Environment.LOCALIZATION_COUNTERS- Returns:
- coma-separated counter values
-