Enum Class DataSource

java.lang.Object
java.lang.Enum<DataSource>
top.wcpe.beacon.agent.api.DataSource
All Implemented Interfaces:
Serializable, Comparable<DataSource>, Constable

public enum DataSource extends Enum<DataSource>
候选 / 健康视图当前的数据来源(FR-148)。

与 DecisionSource 区分:本枚举描述「本机缓存此刻从哪来」(周期刷新态), DecisionSource 描述「某一次决策由谁做出」(单次决策态)。

  • Enum Constant Details

    • CONTROL_PLANE

      public static final DataSource CONTROL_PLANE
      数据来自控制面在线刷新(最近一次候选刷新成功)。
    • LOCAL_SNAPSHOT

      public static final DataSource LOCAL_SNAPSHOT
      控制面不可用,数据来自最后一次落盘快照(含重启后恢复,fail-static)。
  • Method Details

    • values

      public static DataSource[] 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

      public static DataSource valueOf(String name)
      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 name
      NullPointerException - if the argument is null