public class YarnApplicationStatusMonitor extends Object implements AutoCloseable
Constructor and Description |
---|
YarnApplicationStatusMonitor(org.apache.hadoop.yarn.client.api.YarnClient yarnClient,
org.apache.hadoop.yarn.api.records.ApplicationId yarnApplicationId,
ScheduledExecutor scheduledExecutor) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ApplicationStatus |
getApplicationStatusNow() |
public YarnApplicationStatusMonitor(org.apache.hadoop.yarn.client.api.YarnClient yarnClient, org.apache.hadoop.yarn.api.records.ApplicationId yarnApplicationId, ScheduledExecutor scheduledExecutor)
public ApplicationStatus getApplicationStatusNow()
public void close()
close
in interface AutoCloseable
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.