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, org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.apache.flink.runtime.clusterframework.ApplicationStatusgetApplicationStatusNow()
-
-
-
Method Detail
-
getApplicationStatusNow
public org.apache.flink.runtime.clusterframework.ApplicationStatus getApplicationStatusNow()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-