public class ConfigurationUpdateResponse extends Object implements Serializable
| Constructor and Description |
|---|
ConfigurationUpdateResponse(int configurationUpdateId,
org.rhq.core.domain.configuration.Configuration configuration,
org.rhq.core.domain.configuration.ConfigurationUpdateStatus status,
String errorMessage) |
ConfigurationUpdateResponse(int configurationUpdateId,
org.rhq.core.domain.configuration.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. |
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.configuration.Configuration |
getConfiguration() |
int |
getConfigurationUpdateId() |
String |
getErrorMessage() |
org.rhq.core.domain.configuration.ConfigurationUpdateStatus |
getStatus() |
void |
setConfiguration(org.rhq.core.domain.configuration.Configuration configuration) |
void |
setConfigurationUpdateId(int configurationUpdateId) |
void |
setErrorMessage(String errorMessage)
Calling this method with a non-
null error message implies that the request's status is
ConfigurationUpdateStatus.FAILURE. |
void |
setErrorMessageFromThrowable(Throwable t)
Convienence method that sets the error message to the given throwable's stack trace dump.
|
void |
setStatus(org.rhq.core.domain.configuration.ConfigurationUpdateStatus status) |
String |
toString() |
public ConfigurationUpdateResponse(int configurationUpdateId,
org.rhq.core.domain.configuration.Configuration configuration,
org.rhq.core.domain.configuration.ConfigurationUpdateStatus status,
String errorMessage)
public ConfigurationUpdateResponse(int configurationUpdateId,
org.rhq.core.domain.configuration.Configuration configuration,
Throwable t)
ConfigurationUpdateStatus.FAILURE and sets the error
message to that of the throwable's stack trace. See setErrorMessageFromThrowable(Throwable).configurationUpdateId - configuration - t - public int getConfigurationUpdateId()
public void setConfigurationUpdateId(int configurationUpdateId)
public org.rhq.core.domain.configuration.Configuration getConfiguration()
public void setConfiguration(org.rhq.core.domain.configuration.Configuration configuration)
public org.rhq.core.domain.configuration.ConfigurationUpdateStatus getStatus()
public void setStatus(org.rhq.core.domain.configuration.ConfigurationUpdateStatus status)
public String getErrorMessage()
public void setErrorMessage(String errorMessage)
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.errorMessage - public void setErrorMessageFromThrowable(Throwable t)
null, the error message will be set to null as if passing null to
setErrorMessage(String).t - throwable whose message and stack trace will make up the error message (may be null)Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.