org.rhq.enterprise.communications.command.server
Enum CommandProcessorMetrics.UnsuccessfulReason

java.lang.Object
  extended by java.lang.Enum<CommandProcessorMetrics.UnsuccessfulReason>
      extended by org.rhq.enterprise.communications.command.server.CommandProcessorMetrics.UnsuccessfulReason
All Implemented Interfaces:
Serializable, Comparable<CommandProcessorMetrics.UnsuccessfulReason>
Enclosing class:
CommandProcessorMetrics

public static enum CommandProcessorMetrics.UnsuccessfulReason
extends Enum<CommandProcessorMetrics.UnsuccessfulReason>


Enum Constant Summary
DROPPED
          the server is currently under high load and dropped the command
FAILED
          the command encountered an error that caused it to fail
NOT_PROCESSED
          the server is in maintenance mode and not currently accepting any commands
 
Method Summary
static CommandProcessorMetrics.UnsuccessfulReason valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CommandProcessorMetrics.UnsuccessfulReason[] 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

FAILED

public static final CommandProcessorMetrics.UnsuccessfulReason FAILED
the command encountered an error that caused it to fail


DROPPED

public static final CommandProcessorMetrics.UnsuccessfulReason DROPPED
the server is currently under high load and dropped the command


NOT_PROCESSED

public static final CommandProcessorMetrics.UnsuccessfulReason NOT_PROCESSED
the server is in maintenance mode and not currently accepting any commands

Method Detail

values

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

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

valueOf

public static CommandProcessorMetrics.UnsuccessfulReason 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


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.