org.rhq.core.clientapi.server.configuration
Class ConfigurationUpdateResponse
java.lang.Object
org.rhq.core.clientapi.server.configuration.ConfigurationUpdateResponse
- All Implemented Interfaces:
- Serializable
public class ConfigurationUpdateResponse
- extends Object
- implements Serializable
- See Also:
- Serialized Form
ConfigurationUpdateResponse
public ConfigurationUpdateResponse(int configurationUpdateId,
Configuration configuration,
ConfigurationUpdateStatus status,
String errorMessage)
ConfigurationUpdateResponse
public ConfigurationUpdateResponse(int configurationUpdateId,
Configuration configuration,
Throwable t)
- Convienence constructor that sets the status to
ConfigurationUpdateStatus.FAILURE and sets the error
message to that of the throwable's stack trace. See setErrorMessageFromThrowable(Throwable).
- Parameters:
configurationUpdateId - configuration - t -
getConfigurationUpdateId
public int getConfigurationUpdateId()
setConfigurationUpdateId
public void setConfigurationUpdateId(int configurationUpdateId)
getConfiguration
public Configuration getConfiguration()
setConfiguration
public void setConfiguration(Configuration configuration)
getStatus
public ConfigurationUpdateStatus getStatus()
setStatus
public void setStatus(ConfigurationUpdateStatus status)
getErrorMessage
public String getErrorMessage()
setErrorMessage
public void setErrorMessage(String errorMessage)
- Calling this method with a non-
null error message implies that the request's status is
ConfigurationUpdateStatus.FAILURE. The inverse is not true - that is, if you set the error message
to null, the status is left as-is; it will not assume that a null error message means
the status is successful.
- Parameters:
errorMessage -
setErrorMessageFromThrowable
public void setErrorMessageFromThrowable(Throwable t)
- Convienence method that sets the error message to the given throwable's stack trace dump. If the given throwable
is
null, the error message will be set to null as if passing null to
setErrorMessage(String).
- Parameters:
t - throwable whose message and stack trace will make up the error message (may be null)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.