public abstract class ApplicationCleaner extends Object implements Runnable
Constructor and Description |
---|
ApplicationCleaner() |
Modifier and Type | Method and Description |
---|---|
Set<org.apache.hadoop.yarn.api.records.ApplicationId> |
getAppsFromRouter()
Query router for applications.
|
GPGContext |
getGPGContext() |
org.apache.hadoop.yarn.server.federation.utils.FederationRegistryClient |
getRegistryClient() |
Set<org.apache.hadoop.yarn.api.records.ApplicationId> |
getRouterKnownApplications()
Get the list of known applications in the cluster from Router.
|
void |
init(org.apache.hadoop.conf.Configuration config,
GPGContext context) |
abstract void |
run() |
public void init(org.apache.hadoop.conf.Configuration config, GPGContext context) throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnException
public GPGContext getGPGContext()
public org.apache.hadoop.yarn.server.federation.utils.FederationRegistryClient getRegistryClient()
public Set<org.apache.hadoop.yarn.api.records.ApplicationId> getAppsFromRouter() throws org.apache.hadoop.yarn.exceptions.YarnRuntimeException
org.apache.hadoop.yarn.exceptions.YarnRuntimeException
- when router call failspublic Set<org.apache.hadoop.yarn.api.records.ApplicationId> getRouterKnownApplications() throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnException
- if get app failsCopyright © 2008–2024 Apache Software Foundation. All rights reserved.