Class DeploymentActionImpl
- java.lang.Object
-
- org.jboss.as.controller.client.helpers.domain.impl.DeploymentActionImpl
-
- All Implemented Interfaces:
Serializable,DeploymentAction
public class DeploymentActionImpl extends Object implements DeploymentAction, Serializable
Implementation ofDeploymentAction.- Author:
- Brian Stansberry
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.as.controller.client.helpers.domain.DeploymentAction
DeploymentAction.Type
-
-
Method Summary
-
-
-
Method Detail
-
getAddAction
public static DeploymentActionImpl getAddAction(String deploymentName, String fileName, byte[] hash)
-
getDeployAction
public static DeploymentActionImpl getDeployAction(String deploymentName)
-
getRedeployAction
public static DeploymentActionImpl getRedeployAction(String deploymentName)
-
getUndeployAction
public static DeploymentActionImpl getUndeployAction(String deploymentName)
-
getReplaceAction
public static DeploymentActionImpl getReplaceAction(String deploymentName, String replacedName)
-
getFullReplaceAction
public static DeploymentActionImpl getFullReplaceAction(String deploymentName, String fileName, byte[] hash)
-
getRemoveAction
public static DeploymentActionImpl getRemoveAction(String deploymentName)
-
getId
public UUID getId()
Description copied from interface:DeploymentActionGets the unique id of the action.- Specified by:
getIdin interfaceDeploymentAction- Returns:
- the id. Will not be
null
-
getType
public DeploymentAction.Type getType()
Description copied from interface:DeploymentActionGets the type of the action.- Specified by:
getTypein interfaceDeploymentAction- Returns:
- the type. Will not be
null
-
getDeploymentUnitUniqueName
public String getDeploymentUnitUniqueName()
Description copied from interface:DeploymentActionGets the name of the content associated with the action. All deployment content has a unique name provided by the user when anDeploymentAction.Type.ADDorDeploymentAction.Type.FULL_REPLACEaction is requested. API methods that request othertypes of actionswill ask for this name as a parameter.- Specified by:
getDeploymentUnitUniqueNamein interfaceDeploymentAction- Returns:
- the name of the content. Will not be
null
-
getReplacedDeploymentUnitUniqueName
public String getReplacedDeploymentUnitUniqueName()
Description copied from interface:DeploymentActionFor typeDeploymentAction.Type.REPLACEandDeploymentAction.Type.FULL_REPLACEonly, returns the name of the content that is being replaced.- Specified by:
getReplacedDeploymentUnitUniqueNamein interfaceDeploymentAction- Returns:
- the name of the content being replaced, or
nullifDeploymentAction.getType()is notDeploymentAction.Type.REPLACEorDeploymentAction.Type.FULL_REPLACE. Will not benullotherwise
-
getNewContentFileName
public String getNewContentFileName()
-
getNewContentHash
public byte[] getNewContentHash()
-
-