Package top.wcpe.beacon.agent.api
Enum Class DecisionSource
- All Implemented Interfaces:
Serializable,Comparable<DecisionSource>,Constable
一次调度决策的来源(FR-148)。
业务插件据此判断本次候选是控制面权威决策还是降级期本地兜底,用于日志 / 观测,不影响调用方式。
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription控制面在线决策(正常路径,traceId 为服务端 traceId)。控制面不可用时 agent 依本地候选快照做的降级决策(fail-static,traceId 为本地 traceId)。 -
Method Summary
Modifier and TypeMethodDescriptionstatic DecisionSourceReturns the enum constant of this class with the specified name.static DecisionSource[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTROL_PLANE
控制面在线决策(正常路径,traceId 为服务端 traceId)。 -
LOCAL_FALLBACK
控制面不可用时 agent 依本地候选快照做的降级决策(fail-static,traceId 为本地 traceId)。
-
-
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
-