org.rhq.core.domain.resource
Enum CreateResourceStatus

java.lang.Object
  extended by java.lang.Enum<CreateResourceStatus>
      extended by org.rhq.core.domain.resource.CreateResourceStatus
All Implemented Interfaces:
Serializable, Comparable<CreateResourceStatus>

public enum CreateResourceStatus
extends Enum<CreateResourceStatus>

Status indicators for a create resource request made to a plugin.


Enum Constant Summary
FAILURE
          Indicates the agent has responded to this request and indicated a failure occurred in either the agent, plugin container, or plugin itself.
IN_PROGRESS
          Indicates the request has been submitted to the agent but we have not yet received a response.
INVALID_ARTIFACT
          The resource was created, however there were errors while creating the artifact associated with the resource.
INVALID_CONFIGURATION
          The resource was created, however there were errors configuring it.
SUCCESS
          Indicates the result has been returned from the agent and the plugin was able to create the requested resource.
TIMED_OUT
          Indicates the request was successfully sent to the agent, however a response was not received in a timely manner.
 
Method Summary
 String toString()
           
static CreateResourceStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CreateResourceStatus[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IN_PROGRESS

public static final CreateResourceStatus IN_PROGRESS
Indicates the request has been submitted to the agent but we have not yet received a response. Requests in this state are subject to cleanup if they have been in this state for an extended period of time without a reply from the agent.


SUCCESS

public static final CreateResourceStatus SUCCESS
Indicates the result has been returned from the agent and the plugin was able to create the requested resource.


FAILURE

public static final CreateResourceStatus FAILURE
Indicates the agent has responded to this request and indicated a failure occurred in either the agent, plugin container, or plugin itself. An error message will be provided in the request to further describe the failure. The resource has not been created.


INVALID_CONFIGURATION

public static final CreateResourceStatus INVALID_CONFIGURATION
The resource was created, however there were errors configuring it. The likely cause is that one or more values in the configuration failed plugin-side validation. The resource will appear as created and will be discovered, however it may not function correctly until the configuration errors are corrected.


INVALID_ARTIFACT

public static final CreateResourceStatus INVALID_ARTIFACT
The resource was created, however there were errors while creating the artifact associated with the resource. The resource will appear as created and will be discovered, however it may not function correctly until the artifact is correctly deployed to the resource.


TIMED_OUT

public static final CreateResourceStatus TIMED_OUT
Indicates the request was successfully sent to the agent, however a response was not received in a timely manner. This state prevents the UI from showing a perpetually in progress request. It is possible that a request may leave this state at a later time if the agent eventually returns with a response on this request.

Method Detail

values

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

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

valueOf

public static CreateResourceStatus 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

toString

public String toString()
Overrides:
toString in class Enum<CreateResourceStatus>


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.