Class DeploymentActionImpl
java.lang.Object
org.jboss.as.controller.client.helpers.domain.impl.DeploymentActionImpl
- All Implemented Interfaces:
Serializable,DeploymentAction
Implementation of
DeploymentAction.- Author:
- Brian Stansberry
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.as.controller.client.helpers.domain.DeploymentAction
DeploymentAction.Type -
Method Summary
Modifier and TypeMethodDescriptionstatic DeploymentActionImplgetAddAction(String deploymentName, String fileName, byte[] hash) static DeploymentActionImplgetDeployAction(String deploymentName) Gets the name of the content associated with the action.static DeploymentActionImplgetFullReplaceAction(String deploymentName, String fileName, byte[] hash) getId()Gets the unique id of the action.byte[]static DeploymentActionImplgetRedeployAction(String deploymentName) static DeploymentActionImplgetRemoveAction(String deploymentName) static DeploymentActionImplgetReplaceAction(String deploymentName, String replacedName) For typeDeploymentAction.Type.REPLACEandDeploymentAction.Type.FULL_REPLACEonly, returns the name of the content that is being replaced.getType()Gets the type of the action.static DeploymentActionImplgetUndeployAction(String deploymentName)
-
Method Details
-
getAddAction
public static DeploymentActionImpl getAddAction(String deploymentName, String fileName, byte[] hash) -
getDeployAction
-
getRedeployAction
-
getUndeployAction
-
getReplaceAction
-
getFullReplaceAction
public static DeploymentActionImpl getFullReplaceAction(String deploymentName, String fileName, byte[] hash) -
getRemoveAction
-
getId
Description copied from interface:DeploymentActionGets the unique id of the action.- Specified by:
getIdin interfaceDeploymentAction- Returns:
- the id. Will not be
null
-
getType
Description copied from interface:DeploymentActionGets the type of the action.- Specified by:
getTypein interfaceDeploymentAction- Returns:
- the type. Will not be
null
-
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
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
-
getNewContentHash
public byte[] getNewContentHash()
-