Package org.jboss.as.controller
Enum ProcessType
- java.lang.Object
-
- java.lang.Enum<ProcessType>
-
- org.jboss.as.controller.ProcessType
-
- All Implemented Interfaces:
Serializable
,Comparable<ProcessType>
public enum ProcessType extends Enum<ProcessType>
Holds the possible process types. This is used to identify what type of server we are running in.Extension
s can use this information to decide whether certain resources, operations or attributes need to be present.OperationStepHandler
s can use this to determine how to handle operations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLICATION_CLIENT
DOMAIN_SERVER
EMBEDDED_HOST_CONTROLLER
EMBEDDED_SERVER
HOST_CONTROLLER
SELF_CONTAINED
STANDALONE_SERVER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isHostController()
Returns true if the process is a host controller,boolean
isManagedDomain()
Returns true if the process is a managed domain process.boolean
isServer()
Returns true if the process is one of the server variants.static ProcessType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProcessType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ProcessType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProcessType c : ProcessType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProcessType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- 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.
-
-