Package org.apache.flink.yarn.cli
Class YarnApplicationStatusMonitor
- java.lang.Object
-
- org.apache.flink.yarn.cli.YarnApplicationStatusMonitor
-
- All Implemented Interfaces:
AutoCloseable
public class YarnApplicationStatusMonitor extends Object implements AutoCloseable
Utility class which monitors the specified yarn application status periodically.
-
-
Constructor Summary
Constructors Constructor Description YarnApplicationStatusMonitor(org.apache.hadoop.yarn.client.api.YarnClient yarnClient, org.apache.hadoop.yarn.api.records.ApplicationId yarnApplicationId, ScheduledExecutor scheduledExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ApplicationStatus
getApplicationStatusNow()
-
-
-
Constructor Detail
-
YarnApplicationStatusMonitor
public YarnApplicationStatusMonitor(org.apache.hadoop.yarn.client.api.YarnClient yarnClient, org.apache.hadoop.yarn.api.records.ApplicationId yarnApplicationId, ScheduledExecutor scheduledExecutor)
-
-
Method Detail
-
getApplicationStatusNow
public ApplicationStatus getApplicationStatusNow()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-