Package org.glassfish.api.admin
Enum RuntimeType
- java.lang.Object
-
- java.lang.Enum<RuntimeType>
-
- org.glassfish.api.admin.RuntimeType
-
- All Implemented Interfaces:
Serializable
,Comparable<RuntimeType>
public enum RuntimeType extends Enum<RuntimeType>
Defines a server process type.- Author:
- Jerome Dochez
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL
All instances in the domainDAS
the Domain Administration ServerEMBEDDED
EmbeddedINSTANCE
a single instance or a clustered instance ?need to dissambiguate?NODE_AGENT
the node agent processSINGLE_INSTANCE
The local single instance on which the command will run
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RuntimeType
getDefault()
boolean
isBroadcast()
boolean
isDas()
boolean
isEmbedded()
boolean
isInstance()
boolean
isNodeAgent()
boolean
isSingleInstance()
static RuntimeType
valueOf(String name)
Returns the enum constant of this type with the specified name.static RuntimeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAS
public static final RuntimeType DAS
the Domain Administration Server
-
NODE_AGENT
public static final RuntimeType NODE_AGENT
the node agent process
-
INSTANCE
public static final RuntimeType INSTANCE
a single instance or a clustered instance ?need to dissambiguate?
-
EMBEDDED
public static final RuntimeType EMBEDDED
Embedded
-
SINGLE_INSTANCE
public static final RuntimeType SINGLE_INSTANCE
The local single instance on which the command will run
-
ALL
public static final RuntimeType ALL
All instances in the domain
-
-
Method Detail
-
values
public static RuntimeType[] 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 (RuntimeType c : RuntimeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RuntimeType 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
-
isInstance
public final boolean isInstance()
-
isDas
public final boolean isDas()
-
isNodeAgent
public final boolean isNodeAgent()
-
isEmbedded
public final boolean isEmbedded()
-
isBroadcast
public final boolean isBroadcast()
-
isSingleInstance
public final boolean isSingleInstance()
-
getDefault
public static final RuntimeType getDefault()
-
-