Class ClusterOverviewWithVersion
- java.lang.Object
-
- org.apache.flink.runtime.messages.webmonitor.JobsOverview
-
- org.apache.flink.runtime.messages.webmonitor.ClusterOverview
-
- org.apache.flink.runtime.rest.handler.legacy.messages.ClusterOverviewWithVersion
-
- All Implemented Interfaces:
Serializable,InfoMessage,ResponseBody
public class ClusterOverviewWithVersion extends ClusterOverview implements ResponseBody
Cluster overview message including the current Flink version and commit id.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringFIELD_NAME_COMMITstatic StringFIELD_NAME_VERSION-
Fields inherited from class org.apache.flink.runtime.messages.webmonitor.ClusterOverview
FIELD_NAME_SLOTS_AVAILABLE, FIELD_NAME_SLOTS_FREE_AND_BLOCKED, FIELD_NAME_SLOTS_TOTAL, FIELD_NAME_TASKMANAGERS, FIELD_NAME_TASKMANAGERS_BLOCKED
-
Fields inherited from class org.apache.flink.runtime.messages.webmonitor.JobsOverview
FIELD_NAME_JOBS_CANCELLED, FIELD_NAME_JOBS_FAILED, FIELD_NAME_JOBS_FINISHED, FIELD_NAME_JOBS_RUNNING
-
-
Constructor Summary
Constructors Constructor Description ClusterOverviewWithVersion(int numTaskManagersConnected, int numSlotsTotal, int numSlotsAvailable, Integer numTaskManagersBlocked, Integer numSlotsFreeAndBlocked, int numJobsRunningOrPending, int numJobsFinished, int numJobsCancelled, int numJobsFailed, String version, String commitId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ClusterOverviewWithVersionfromStatusOverview(ClusterOverview statusOverview, String version, String commitId)StringgetCommitId()StringgetVersion()inthashCode()-
Methods inherited from class org.apache.flink.runtime.messages.webmonitor.ClusterOverview
getNumSlotsAvailable, getNumSlotsFreeAndBlocked, getNumSlotsTotal, getNumTaskManagersBlocked, getNumTaskManagersConnected, toString
-
Methods inherited from class org.apache.flink.runtime.messages.webmonitor.JobsOverview
combine, create, getNumJobsCancelled, getNumJobsFailed, getNumJobsFinished, getNumJobsRunningOrPending
-
-
-
-
Field Detail
-
FIELD_NAME_VERSION
public static final String FIELD_NAME_VERSION
- See Also:
- Constant Field Values
-
FIELD_NAME_COMMIT
public static final String FIELD_NAME_COMMIT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClusterOverviewWithVersion
public ClusterOverviewWithVersion(int numTaskManagersConnected, int numSlotsTotal, int numSlotsAvailable, @Nullable Integer numTaskManagersBlocked, @Nullable Integer numSlotsFreeAndBlocked, int numJobsRunningOrPending, int numJobsFinished, int numJobsCancelled, int numJobsFailed, String version, String commitId)
-
-
Method Detail
-
fromStatusOverview
public static ClusterOverviewWithVersion fromStatusOverview(ClusterOverview statusOverview, String version, String commitId)
-
getVersion
public String getVersion()
-
getCommitId
public String getCommitId()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classClusterOverview
-
hashCode
public int hashCode()
- Overrides:
hashCodein classClusterOverview
-
-