com.sun.sgs.protocol
Enum RequestFailureException.FailureReason

java.lang.Object
  extended by java.lang.Enum<RequestFailureException.FailureReason>
      extended by com.sun.sgs.protocol.RequestFailureException.FailureReason
All Implemented Interfaces:
Serializable, Comparable<RequestFailureException.FailureReason>
Enclosing class:
RequestFailureException

public static enum RequestFailureException.FailureReason
extends Enum<RequestFailureException.FailureReason>

Reasons why a request fails.


Enum Constant Summary
DISCONNECT_PENDING
          The client session is disconnecting from the local node.
LOGIN_PENDING
          The associated client session has not completed login.
OTHER
          Other operational failure (see exception cause for detail).
RELOCATE_PENDING
          The client session is relocating to another node.
 
Method Summary
static RequestFailureException.FailureReason valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RequestFailureException.FailureReason[] 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

LOGIN_PENDING

public static final RequestFailureException.FailureReason LOGIN_PENDING
The associated client session has not completed login.


RELOCATE_PENDING

public static final RequestFailureException.FailureReason RELOCATE_PENDING
The client session is relocating to another node.


DISCONNECT_PENDING

public static final RequestFailureException.FailureReason DISCONNECT_PENDING
The client session is disconnecting from the local node.


OTHER

public static final RequestFailureException.FailureReason OTHER
Other operational failure (see exception cause for detail).

Method Detail

values

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

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

valueOf

public static RequestFailureException.FailureReason 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

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