Enum Class EventType

java.lang.Object
java.lang.Enum<EventType>
com.splunk.splunkjenkins.model.EventType
All Implemented Interfaces:
Serializable, Comparable<EventType>, java.lang.constant.Constable

public enum EventType extends Enum<EventType>
  • Enum Constant Details

    • BUILD_REPORT

      public static final EventType BUILD_REPORT
    • BUILD_EVENT

      public static final EventType BUILD_EVENT
    • QUEUE_INFO

      public static final EventType QUEUE_INFO
    • JENKINS_CONFIG

      public static final EventType JENKINS_CONFIG
    • CONSOLE_LOG

      public static final EventType CONSOLE_LOG
    • FILE

      public static final EventType FILE
    • SLAVE_INFO

      public static final EventType SLAVE_INFO
    • LOG

      public static final EventType LOG
    • BATCH_JSON

      public static final EventType BATCH_JSON
    • JSON_FILE

      public static final EventType JSON_FILE
  • Method Details

    • values

      public static EventType[] 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 EventType 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
    • needSplit

      public boolean needSplit()
      Need spit the content line by line if raw event not supported Only applied for non-structural data, such as file and console text. It doesn't applied for json data or xml data
      Returns:
      true if need spit the contents line by line if raw event not supported; false otherwise.
    • getKey

      public String getKey(String suffix)
      Parameters:
      suffix - the config metadata, can be either index, source or sourcetype
      Returns:
      return name.suffix