Class DashboardConfiguration
- java.lang.Object
-
- org.apache.flink.runtime.rest.messages.DashboardConfiguration
-
- All Implemented Interfaces:
ResponseBody
public class DashboardConfiguration extends Object implements ResponseBody
Response of theDashboardConfigHandlercontaining general configuration values such as the time zone and the refresh interval.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDashboardConfiguration.FeaturesCollection of features that are enabled/disabled.
-
Field Summary
Fields Modifier and Type Field Description static StringFIELD_NAME_FEATURE_WEB_CANCELstatic StringFIELD_NAME_FEATURE_WEB_HISTORYstatic StringFIELD_NAME_FEATURE_WEB_RESCALEstatic StringFIELD_NAME_FEATURE_WEB_SUBMITstatic StringFIELD_NAME_FLINK_FEATURESstatic StringFIELD_NAME_FLINK_REVISIONstatic StringFIELD_NAME_FLINK_VERSIONstatic StringFIELD_NAME_REFRESH_INTERVALstatic StringFIELD_NAME_TIMEZONE_NAMEstatic StringFIELD_NAME_TIMEZONE_OFFSET
-
Constructor Summary
Constructors Constructor Description DashboardConfiguration(long refreshInterval, String timeZoneName, int timeZoneOffset, String flinkVersion, String flinkRevision, DashboardConfiguration.Features features)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static DashboardConfigurationfrom(long refreshInterval, ZonedDateTime zonedDateTime, boolean webSubmitEnabled, boolean webCancelEnabled, boolean webRescaleEnabled, boolean isHistoryServer)DashboardConfiguration.FeaturesgetFeatures()StringgetFlinkRevision()StringgetFlinkVersion()longgetRefreshInterval()StringgetTimeZoneName()intgetTimeZoneOffset()inthashCode()
-
-
-
Field Detail
-
FIELD_NAME_REFRESH_INTERVAL
public static final String FIELD_NAME_REFRESH_INTERVAL
- See Also:
- Constant Field Values
-
FIELD_NAME_TIMEZONE_OFFSET
public static final String FIELD_NAME_TIMEZONE_OFFSET
- See Also:
- Constant Field Values
-
FIELD_NAME_TIMEZONE_NAME
public static final String FIELD_NAME_TIMEZONE_NAME
- See Also:
- Constant Field Values
-
FIELD_NAME_FLINK_VERSION
public static final String FIELD_NAME_FLINK_VERSION
- See Also:
- Constant Field Values
-
FIELD_NAME_FLINK_REVISION
public static final String FIELD_NAME_FLINK_REVISION
- See Also:
- Constant Field Values
-
FIELD_NAME_FLINK_FEATURES
public static final String FIELD_NAME_FLINK_FEATURES
- See Also:
- Constant Field Values
-
FIELD_NAME_FEATURE_WEB_SUBMIT
public static final String FIELD_NAME_FEATURE_WEB_SUBMIT
- See Also:
- Constant Field Values
-
FIELD_NAME_FEATURE_WEB_CANCEL
public static final String FIELD_NAME_FEATURE_WEB_CANCEL
- See Also:
- Constant Field Values
-
FIELD_NAME_FEATURE_WEB_RESCALE
public static final String FIELD_NAME_FEATURE_WEB_RESCALE
- See Also:
- Constant Field Values
-
FIELD_NAME_FEATURE_WEB_HISTORY
public static final String FIELD_NAME_FEATURE_WEB_HISTORY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DashboardConfiguration
public DashboardConfiguration(long refreshInterval, String timeZoneName, int timeZoneOffset, String flinkVersion, String flinkRevision, DashboardConfiguration.Features features)
-
-
Method Detail
-
getRefreshInterval
public long getRefreshInterval()
-
getTimeZoneOffset
public int getTimeZoneOffset()
-
getTimeZoneName
public String getTimeZoneName()
-
getFlinkVersion
public String getFlinkVersion()
-
getFlinkRevision
public String getFlinkRevision()
-
getFeatures
public DashboardConfiguration.Features getFeatures()
-
from
public static DashboardConfiguration from(long refreshInterval, ZonedDateTime zonedDateTime, boolean webSubmitEnabled, boolean webCancelEnabled, boolean webRescaleEnabled, boolean isHistoryServer)
-
-