org.rhq.core.domain.content.transfer
Class DeployIndividualPackageResponse

java.lang.Object
  extended by org.rhq.core.domain.content.transfer.DeployIndividualPackageResponse
All Implemented Interfaces:
Serializable

public class DeployIndividualPackageResponse
extends Object
implements Serializable

Contains the data necessary to describe the result of deploying a single package. The overall result of the package installation and any error message (if there is one) will convey whether or not the package was successfully installed. Additionally, if installation steps were determined for this package, they and their respective success/failure flags, will be contained in this object as well.

See Also:
Serialized Form

Constructor Summary
DeployIndividualPackageResponse(PackageDetailsKey key)
           
DeployIndividualPackageResponse(PackageDetailsKey key, ContentResponseResult result)
           
 
Method Summary
 void addDeploymentStep(DeployPackageStep step)
           
 List<DeployPackageStep> getDeploymentSteps()
           
 String getErrorMessage()
           
 PackageDetailsKey getKey()
           
 ContentResponseResult getResult()
           
 void setDeploymentSteps(List<DeployPackageStep> deploymentSteps)
           
 void setErrorMessage(String errorMessage)
           
 void setErrorMessageFromThrowable(Throwable t)
          Convienence method that sets the error message to the given throwable's stack trace dump.
 void setResult(ContentResponseResult result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeployIndividualPackageResponse

public DeployIndividualPackageResponse(PackageDetailsKey key)

DeployIndividualPackageResponse

public DeployIndividualPackageResponse(PackageDetailsKey key,
                                       ContentResponseResult result)
Method Detail

getKey

public PackageDetailsKey getKey()

getResult

public ContentResponseResult getResult()

setResult

public void setResult(ContentResponseResult result)

getErrorMessage

public String getErrorMessage()

setErrorMessage

public void setErrorMessage(String errorMessage)

getDeploymentSteps

public List<DeployPackageStep> getDeploymentSteps()

setDeploymentSteps

public void setDeploymentSteps(List<DeployPackageStep> deploymentSteps)

addDeploymentStep

public void addDeploymentStep(DeployPackageStep step)

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)


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