Enum Class DecisionSource

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

public enum DecisionSource extends Enum<DecisionSource>
一次调度决策的来源(FR-148)。

业务插件据此判断本次候选是控制面权威决策还是降级期本地兜底,用于日志 / 观测,不影响调用方式。

  • Enum Constant Details

    • CONTROL_PLANE

      public static final DecisionSource CONTROL_PLANE
      控制面在线决策(正常路径,traceId 为服务端 traceId)。
    • LOCAL_FALLBACK

      public static final DecisionSource LOCAL_FALLBACK
      控制面不可用时 agent 依本地候选快照做的降级决策(fail-static,traceId 为本地 traceId)。
  • Method Details

    • values

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