@InterfaceAudience.Private @InterfaceStability.Unstable public class RemoteAppChecker extends AppChecker
Constructor and Description |
---|
RemoteAppChecker() |
Modifier and Type | Method and Description |
---|---|
Collection<org.apache.hadoop.yarn.api.records.ApplicationId> |
getActiveApplications()
Returns the list of all active apps at the given time.
|
boolean |
isApplicationActive(org.apache.hadoop.yarn.api.records.ApplicationId id)
Returns whether the app is in an active state.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
addIfService, addService, getServices, removeService, serviceStart, serviceStop
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
protected void serviceInit(org.apache.hadoop.conf.Configuration conf) throws Exception
serviceInit
in class org.apache.hadoop.service.CompositeService
Exception
@InterfaceAudience.Private public boolean isApplicationActive(org.apache.hadoop.yarn.api.records.ApplicationId id) throws org.apache.hadoop.yarn.exceptions.YarnException
AppChecker
isApplicationActive
in class AppChecker
org.apache.hadoop.yarn.exceptions.YarnException
- if there is an error in determining the app state@InterfaceAudience.Private public Collection<org.apache.hadoop.yarn.api.records.ApplicationId> getActiveApplications() throws org.apache.hadoop.yarn.exceptions.YarnException
AppChecker
getActiveApplications
in class AppChecker
org.apache.hadoop.yarn.exceptions.YarnException
- if there is an error in obtaining the listCopyright © 2018 Apache Software Foundation. All Rights Reserved.