org.rhq.core.domain.configuration
Class AbstractResourceConfigurationUpdate
java.lang.Object
org.rhq.core.domain.configuration.AbstractConfigurationUpdate
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
Methods inherited from class org.rhq.core.domain.configuration.AbstractConfigurationUpdate |
equals, getConfiguration, getCreatedTime, getDuration, getErrorMessage, getModifiedTime, getStatus, getSubjectName, hashCode, setConfiguration, setErrorMessage, setStatus, toString |
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 configurationsubjectName
- the user that is requesting the update
getResource
public abstract Resource getResource()
getAbstractGroupConfigurationUpdate
public abstract AbstractGroupConfigurationUpdate getAbstractGroupConfigurationUpdate()
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-2011 Red Hat, Inc.. All Rights Reserved.