Class JobsOverview
- java.lang.Object
-
- org.apache.flink.runtime.messages.webmonitor.JobsOverview
-
- All Implemented Interfaces:
Serializable
,InfoMessage
- Direct Known Subclasses:
ClusterOverview
public class JobsOverview extends Object implements InfoMessage
An overview of how many jobs are in which status.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
FIELD_NAME_JOBS_CANCELLED
static String
FIELD_NAME_JOBS_FAILED
static String
FIELD_NAME_JOBS_FINISHED
static String
FIELD_NAME_JOBS_RUNNING
-
Constructor Summary
Constructors Constructor Description JobsOverview(int numJobsRunningOrPending, int numJobsFinished, int numJobsCancelled, int numJobsFailed)
JobsOverview(JobsOverview first, JobsOverview second)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JobsOverview
combine(JobsOverview jobsOverview)
Combines the given jobs overview with this.static JobsOverview
create(Collection<JobStatus> allJobsStatus)
boolean
equals(Object obj)
int
getNumJobsCancelled()
int
getNumJobsFailed()
int
getNumJobsFinished()
int
getNumJobsRunningOrPending()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
FIELD_NAME_JOBS_RUNNING
public static final String FIELD_NAME_JOBS_RUNNING
- See Also:
- Constant Field Values
-
FIELD_NAME_JOBS_FINISHED
public static final String FIELD_NAME_JOBS_FINISHED
- See Also:
- Constant Field Values
-
FIELD_NAME_JOBS_CANCELLED
public static final String FIELD_NAME_JOBS_CANCELLED
- See Also:
- Constant Field Values
-
FIELD_NAME_JOBS_FAILED
public static final String FIELD_NAME_JOBS_FAILED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JobsOverview
public JobsOverview(int numJobsRunningOrPending, int numJobsFinished, int numJobsCancelled, int numJobsFailed)
-
JobsOverview
public JobsOverview(JobsOverview first, JobsOverview second)
-
-
Method Detail
-
getNumJobsRunningOrPending
public int getNumJobsRunningOrPending()
-
getNumJobsFinished
public int getNumJobsFinished()
-
getNumJobsCancelled
public int getNumJobsCancelled()
-
getNumJobsFailed
public int getNumJobsFailed()
-
combine
public JobsOverview combine(JobsOverview jobsOverview)
Combines the given jobs overview with this.- Parameters:
jobsOverview
- to combine with this- Returns:
- Combined jobs overview
-
create
public static JobsOverview create(Collection<JobStatus> allJobsStatus)
-
-