Package top.wcpe.beacon.agent.api
Enum Class DataSource
- All Implemented Interfaces:
Serializable,Comparable<DataSource>,Constable
候选 / 健康视图当前的数据来源(FR-148)。
与 DecisionSource 区分:本枚举描述「本机缓存此刻从哪来」(周期刷新态),
DecisionSource 描述「某一次决策由谁做出」(单次决策态)。
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription数据来自控制面在线刷新(最近一次候选刷新成功)。控制面不可用,数据来自最后一次落盘快照(含重启后恢复,fail-static)。 -
Method Summary
Modifier and TypeMethodDescriptionstatic DataSourceReturns the enum constant of this class with the specified name.static DataSource[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTROL_PLANE
数据来自控制面在线刷新(最近一次候选刷新成功)。 -
LOCAL_SNAPSHOT
控制面不可用,数据来自最后一次落盘快照(含重启后恢复,fail-static)。
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-