Enum Class PluginTarget

java.lang.Object
java.lang.Enum<PluginTarget>
com.linecorp.centraldogma.server.plugin.PluginTarget
All Implemented Interfaces:
Serializable, Comparable<PluginTarget>, java.lang.constant.Constable

public enum PluginTarget extends Enum<PluginTarget>
Targets that a Plugin is applied to which replica.
  • Enum Constant Details

    • ALL_REPLICAS

      public static final PluginTarget ALL_REPLICAS
      Run the Plugin on the all replicas. It would be started after the replica is started and would be stopped before the replica is stopped.
    • LEADER_ONLY

      public static final PluginTarget LEADER_ONLY
      Run the Plugin 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.
  • Method Details

    • values

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