|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<StandardProperties.ServiceNodeTypes>
com.sun.sgs.impl.kernel.StandardProperties.ServiceNodeTypes
public static enum StandardProperties.ServiceNodeTypes
An enumeration of the possible values to assign in the
SERVICE_NODE_TYPES list. Each value represents which node
types a Service/Manager pair will be started
on.
| Enum Constant Summary | |
|---|---|
ALL
Service should be started on any node type. |
|
APP
Service should be started on an NodeType.appNode only. |
|
CORE
Service should be started on a NodeType.coreServerNode only. |
|
CORE_OR_APP
Service should be started on either a coreServerNode or an
appNode. |
|
SINGLE
Service should be started on a NodeType.singleNode only. |
|
SINGLE_OR_APP
Service should be started on either a singleNode or an
appNode. |
|
SINGLE_OR_CORE
Service should be started on either a singleNode or a
coreServerNode. |
|
| Method Summary | |
|---|---|
boolean |
shouldStart(NodeType nodeType)
Returns true if this node types identifier indicates that
the associated service should be started on the specified node type. |
static StandardProperties.ServiceNodeTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static StandardProperties.ServiceNodeTypes[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final StandardProperties.ServiceNodeTypes SINGLE
NodeType.singleNode only.
public static final StandardProperties.ServiceNodeTypes CORE
NodeType.coreServerNode only.
public static final StandardProperties.ServiceNodeTypes APP
NodeType.appNode only.
public static final StandardProperties.ServiceNodeTypes SINGLE_OR_CORE
singleNode or a
coreServerNode.
public static final StandardProperties.ServiceNodeTypes SINGLE_OR_APP
singleNode or an
appNode.
public static final StandardProperties.ServiceNodeTypes CORE_OR_APP
coreServerNode or an
appNode.
public static final StandardProperties.ServiceNodeTypes ALL
| Method Detail |
|---|
public static StandardProperties.ServiceNodeTypes[] values()
for (StandardProperties.ServiceNodeTypes c : StandardProperties.ServiceNodeTypes.values()) System.out.println(c);
public static StandardProperties.ServiceNodeTypes valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean shouldStart(NodeType nodeType)
true if this node types identifier indicates that
the associated service should be started on the specified node type.
nodeType - the current NodeType
true if the service should be started on the given
node type.
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||