Class DeploymentActionImpl
- java.lang.Object
-
- org.jboss.as.controller.client.helpers.standalone.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.standalone.DeploymentAction
DeploymentAction.Type
-
-
Method Summary
-
-
-
Method Detail
-
getAddAction
public static DeploymentActionImpl getAddAction(String deploymentName, String fileName, InputStream in, boolean internalStream)
-
getAddAction
public static DeploymentActionImpl getAddAction(String deploymentName, String fileName, Path in)
-
getAddContentAction
public static DeploymentActionImpl getAddContentAction(String deploymentName, Map<String,InputStream> contents)
-
getAddContentFileAction
public static DeploymentActionImpl getAddContentFileAction(String deploymentName, Map<String,Path> files)
-
getDeployAction
public static DeploymentActionImpl getDeployAction(String deploymentName)
-
getExplodeAction
public static DeploymentActionImpl getExplodeAction(String deploymentName, String path)
-
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, InputStream in, boolean internalStream)
-
getFullReplaceAction
public static DeploymentActionImpl getFullReplaceAction(String deploymentName, String fileName, Path in, boolean internalStream)
-
getRemoveAction
public static DeploymentActionImpl getRemoveAction(String deploymentName)
-
getRemoveContentAction
public static DeploymentActionImpl getRemoveContentAction(String deploymentName, List<String> fileNames)
-
getId
public UUID getId()
Description copied from interface:DeploymentAction
Gets the unique id of the action.- Specified by:
getId
in interfaceDeploymentAction
- Returns:
- the id. Will not be
null
-
getType
public DeploymentAction.Type getType()
Description copied from interface:DeploymentAction
Gets the type of the action.- Specified by:
getType
in interfaceDeploymentAction
- Returns:
- the type. Will not be
null
-
getDeploymentUnitUniqueName
public String getDeploymentUnitUniqueName()
Description copied from interface:DeploymentAction
Gets the name of the content associated with the action. All deployment content has a unique name provided by the user when anDeploymentAction.Type.ADD
orDeploymentAction.Type.FULL_REPLACE
action is requested. API methods that request othertypes of actions
will ask for this name as a parameter.- Specified by:
getDeploymentUnitUniqueName
in interfaceDeploymentAction
- Returns:
- the name of the content. Will not be
null
-
getReplacedDeploymentUnitUniqueName
public String getReplacedDeploymentUnitUniqueName()
Description copied from interface:DeploymentAction
For typeDeploymentAction.Type.REPLACE
andDeploymentAction.Type.FULL_REPLACE
only, returns the name of the content that is being replaced.- Specified by:
getReplacedDeploymentUnitUniqueName
in interfaceDeploymentAction
- Returns:
- the name of the content being replaced, or
null
ifDeploymentAction.getType()
is notDeploymentAction.Type.REPLACE
orDeploymentAction.Type.FULL_REPLACE
. Will not benull
otherwise
-
getNewContentFileName
public String getNewContentFileName()
-
getContentStream
public InputStream getContentStream()
-
getContents
public Map<String,InputStream> getContents()
-
isInternalStream
public boolean isInternalStream()
-
-