Package org.apache.flink.yarn.cli
Class YarnApplicationStatusMonitor
java.lang.Object
org.apache.flink.yarn.cli.YarnApplicationStatusMonitor
- All Implemented Interfaces:
AutoCloseable
Utility class which monitors the specified yarn application status periodically.
-
Constructor Summary
ConstructorsConstructorDescriptionYarnApplicationStatusMonitor(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
Modifier and TypeMethodDescriptionvoidclose()org.apache.flink.runtime.clusterframework.ApplicationStatus
-
Constructor Details
-
YarnApplicationStatusMonitor
public 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 Details
-
getApplicationStatusNow
public org.apache.flink.runtime.clusterframework.ApplicationStatus getApplicationStatusNow() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-