Enum Class ProcessType

java.lang.Object
java.lang.Enum<ProcessType>
org.jboss.as.controller.ProcessType
All Implemented Interfaces:
Serializable, Comparable<ProcessType>, Constable

public enum ProcessType extends Enum<ProcessType>
Holds the possible process types. This is used to identify what type of server we are running in. Extensions can use this information to decide whether certain resources, operations or attributes need to be present. OperationStepHandlers can use this to determine how to handle operations.
  • Enum Constant Details

    • DOMAIN_SERVER

      public static final ProcessType DOMAIN_SERVER
    • EMBEDDED_SERVER

      public static final ProcessType EMBEDDED_SERVER
    • STANDALONE_SERVER

      public static final ProcessType STANDALONE_SERVER
    • HOST_CONTROLLER

      public static final ProcessType HOST_CONTROLLER
    • EMBEDDED_HOST_CONTROLLER

      public static final ProcessType EMBEDDED_HOST_CONTROLLER
    • APPLICATION_CLIENT

      public static final ProcessType APPLICATION_CLIENT
    • SELF_CONTAINED

      public static final ProcessType SELF_CONTAINED
  • Method Details

    • values

      public static ProcessType[] 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 ProcessType 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
    • isServer

      public boolean isServer()
      Returns true if the process is one of the server variants.
      Returns:
      Returns true if the process is a server. Returns false otherwise.
    • isHostController

      public boolean isHostController()
      Returns true if the process is a host controller,
      Returns:
      Returns true if the process is a hostcontroller. Returns false otherwise.
    • isManagedDomain

      public boolean isManagedDomain()
      Returns true if the process is a managed domain process.
      Returns:
      Returns true if the process is a managed domain process. Returns false otherwise.
    • isEmbedded

      public boolean isEmbedded()
      Gets whether the process is an embedded process.
      Returns:
      true if the process is an embedded process; false otherwise.