org.rhq.core.domain.configuration
Class AbstractResourceConfigurationUpdate

java.lang.Object
  extended by org.rhq.core.domain.configuration.AbstractConfigurationUpdate
      extended by org.rhq.core.domain.configuration.AbstractResourceConfigurationUpdate
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PluginConfigurationUpdate, ResourceConfigurationUpdate

public abstract class AbstractResourceConfigurationUpdate
extends AbstractConfigurationUpdate
implements Serializable

Provides a configuration that constitutes a configuration update request. This allows you to maintain a history of a configuration update request - when it was made, who made it and if it was successful or not. The status field indicates if the request is currently in progress (i.e. the plugin is currently processing the request) or if it succeeded or failed. If the request failed, you can examine the error messages in the Configuration properties to find out why the request failed.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.rhq.core.domain.configuration.AbstractConfigurationUpdate
configuration, createdTime, errorMessage, modifiedTime, status, subjectName
 
Constructor Summary
protected AbstractResourceConfigurationUpdate()
           
protected AbstractResourceConfigurationUpdate(Configuration config, String subjectName)
          Creates an initial AbstractResourceConfigurationUpdate with its status initially set to ConfigurationUpdateStatus.INPROGRESS and a null AbstractConfigurationUpdate.getErrorMessage().
 
Method Summary
protected  void appendToStringInternals(StringBuilder str)
          Subclasses can override this to add things it wants to see in the toString.
 int getId()
           
 void setId(int id)
           
 
Methods inherited from class org.rhq.core.domain.configuration.AbstractConfigurationUpdate
equals, getConfiguration, getCreatedTime, getDuration, getErrorMessage, getModifiedTime, getStatus, getSubjectName, hashCode, setConfiguration, setErrorMessage, setErrorMessageFromThrowable, setStatus, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractResourceConfigurationUpdate

protected AbstractResourceConfigurationUpdate()

AbstractResourceConfigurationUpdate

protected AbstractResourceConfigurationUpdate(Configuration config,
                                              String subjectName)
Creates an initial AbstractResourceConfigurationUpdate with its status initially set to ConfigurationUpdateStatus.INPROGRESS and a null AbstractConfigurationUpdate.getErrorMessage().

Parameters:
config - contains the values for the new configuration
subjectName - the user that is requesting the update
Method Detail

getId

public int getId()

setId

public void setId(int id)

appendToStringInternals

protected void appendToStringInternals(StringBuilder str)
Description copied from class: AbstractConfigurationUpdate
Subclasses can override this to add things it wants to see in the toString.

Overrides:
appendToStringInternals in class AbstractConfigurationUpdate
Parameters:
str - the builder to append strings to


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