public class RegisterApplicationMasterResponseReflector extends Object
RegisterApplicationMasterResponse
.
Only Hadoop versions (>= 2.4.0) support
RegisterApplicationMasterResponse#getContainersFromPreviousAttempts
. Therefore, it's checked
at runtime whether the RegisterApplicationMasterResponse supports this method. If not, then an
empty Seq[Container] is returned upon calling getContainersFromPreviousAttempts.
Constructor and Description |
---|
RegisterApplicationMasterResponseReflector() |
Modifier and Type | Method and Description |
---|---|
static scala.collection.Seq<org.apache.hadoop.yarn.api.records.Container> |
getContainersFromPreviousAttempts(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse response) |
static grizzled.slf4j.Logger |
log() |
static scala.Option<Method> |
methodOption() |
public RegisterApplicationMasterResponseReflector()
public static grizzled.slf4j.Logger log()
public static scala.Option<Method> methodOption()
public static scala.collection.Seq<org.apache.hadoop.yarn.api.records.Container> getContainersFromPreviousAttempts(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse response)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.