SQLFire 1.0.1

com.vmware.sqlfire
Enum FabricService.State

java.lang.Object
  extended by java.lang.Enum<FabricService.State>
      extended by com.vmware.sqlfire.FabricService.State
All Implemented Interfaces:
Serializable, Comparable<FabricService.State>
Enclosing interface:
FabricService

public static enum FabricService.State
extends Enum<FabricService.State>

Status of the service enumerating different states the service can be in.

Different states of service
.
UNINITIALIZED
Description: This is the initial state of the status when service on this peer is yet to be started or the start was unsuccessful.
STARTING
Description: Service was started on the peer but is still in the process of booting up its driver and joining the distributed system..
RUNNING
Description: Indicates that the peer is ready to service JDBC connections in the application program.
STOPPING
Description: The peer has initiated the shutdown process ( FabricService.stop(java.util.Properties)). No new JDBC connections will be allowed and existing ones will be closed. Current activity on the connection may raise CacheClosedException.
STOPPED
Description: The peer has successfully disconnected from distributed system. No new JDBC connections will be allowed and existing will be closed. Current activity on the connection may raise CacheClosedException.


Enum Constant Summary
RUNNING
           
STARTING
           
STOPPED
           
STOPPING
           
UNINITIALIZED
           
 
Method Summary
static FabricService.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FabricService.State[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNINITIALIZED

public static final FabricService.State UNINITIALIZED

STARTING

public static final FabricService.State STARTING

RUNNING

public static final FabricService.State RUNNING

STOPPING

public static final FabricService.State STOPPING

STOPPED

public static final FabricService.State STOPPED
Method Detail

values

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

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

valueOf

public static FabricService.State 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

SQLFire 1.0.1

Copyright © 2010-2011 VMware, Inc. All rights reserved.