com.sun.sgs.impl.kernel
Enum StandardProperties.ServiceNodeTypes

java.lang.Object
  extended by java.lang.Enum<StandardProperties.ServiceNodeTypes>
      extended by com.sun.sgs.impl.kernel.StandardProperties.ServiceNodeTypes
All Implemented Interfaces:
Serializable, Comparable<StandardProperties.ServiceNodeTypes>
Enclosing class:
StandardProperties

public static enum StandardProperties.ServiceNodeTypes
extends 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

SINGLE

public static final StandardProperties.ServiceNodeTypes SINGLE
Service should be started on a NodeType.singleNode only.


CORE

public static final StandardProperties.ServiceNodeTypes CORE
Service should be started on a NodeType.coreServerNode only.


APP

public static final StandardProperties.ServiceNodeTypes APP
Service should be started on an NodeType.appNode only.


SINGLE_OR_CORE

public static final StandardProperties.ServiceNodeTypes SINGLE_OR_CORE
Service should be started on either a singleNode or a coreServerNode.


SINGLE_OR_APP

public static final StandardProperties.ServiceNodeTypes SINGLE_OR_APP
Service should be started on either a singleNode or an appNode.


CORE_OR_APP

public static final StandardProperties.ServiceNodeTypes CORE_OR_APP
Service should be started on either a coreServerNode or an appNode.


ALL

public static final StandardProperties.ServiceNodeTypes ALL
Service should be started on any node type.

Method Detail

values

public static StandardProperties.ServiceNodeTypes[] 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 (StandardProperties.ServiceNodeTypes c : StandardProperties.ServiceNodeTypes.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StandardProperties.ServiceNodeTypes 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 name
NullPointerException - if the argument is null

shouldStart

public boolean shouldStart(NodeType nodeType)
Returns true if this node types identifier indicates that the associated service should be started on the specified node type.

Parameters:
nodeType - the current NodeType
Returns:
true if the service should be started on the given node type.

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved