Enum Class PluginTarget
- All Implemented Interfaces:
Serializable
,Comparable<PluginTarget>
,Constable
Targets that a
Plugin
is applied to which replica.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRun thePlugin
on the all replicas.Run thePlugin
on the leader replica.Run thePlugin
on the leader replica for a zone specified inCentralDogmaConfig.zone()
. -
Method Summary
Modifier and TypeMethodDescriptionstatic PluginTarget
Returns the enum constant of this class with the specified name.static PluginTarget[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL_REPLICAS
Run thePlugin
on the all replicas. It would be started after the replica is started and would be stopped before the replica is stopped. -
LEADER_ONLY
Run thePlugin
on the leader replica. It would be started after the replica has taken the leadership and would be stopped when the replica is about to release the leadership. -
ZONE_LEADER_ONLY
Run thePlugin
on the leader replica for a zone specified inCentralDogmaConfig.zone()
. It would be started after the replica has taken the zone leadership and would be stopped when the replica is about to release the zone leadership.
-
-
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
-