Class DeploymentActionImpl
java.lang.Object
org.jboss.as.controller.client.helpers.standalone.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.standalone.DeploymentAction
DeploymentAction.Type -
Method Summary
Modifier and TypeMethodDescriptionstatic DeploymentActionImplgetAddAction(String deploymentName, String fileName, InputStream in, boolean internalStream) static DeploymentActionImplgetAddAction(String deploymentName, String fileName, Path in) static DeploymentActionImplgetAddContentAction(String deploymentName, Map<String, InputStream> contents) static DeploymentActionImplgetAddContentFileAction(String deploymentName, Map<String, Path> files) static DeploymentActionImplgetDeployAction(String deploymentName) Gets the name of the content associated with the action.static DeploymentActionImplgetExplodeAction(String deploymentName, String path) getFiles()static DeploymentActionImplgetFullReplaceAction(String deploymentName, String fileName, InputStream in, boolean internalStream) static DeploymentActionImplgetFullReplaceAction(String deploymentName, String fileName, Path in, boolean internalStream) getId()Gets the unique id of the action.static DeploymentActionImplgetRedeployAction(String deploymentName) static DeploymentActionImplgetRemoveAction(String deploymentName) static DeploymentActionImplgetRemoveContentAction(String deploymentName, List<String> fileNames) 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) boolean
-
Method Details
-
getAddAction
public static DeploymentActionImpl getAddAction(String deploymentName, String fileName, InputStream in, boolean internalStream) -
getAddAction
-
getAddContentAction
public static DeploymentActionImpl getAddContentAction(String deploymentName, Map<String, InputStream> contents) -
getAddContentFileAction
public static DeploymentActionImpl getAddContentFileAction(String deploymentName, Map<String, Path> files) -
getDeployAction
-
getExplodeAction
-
getRedeployAction
-
getUndeployAction
-
getReplaceAction
-
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
-
getRemoveContentAction
public static DeploymentActionImpl getRemoveContentAction(String deploymentName, List<String> fileNames) -
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
-
getContentStream
-
getContents
-
getFiles
-
isInternalStream
public boolean isInternalStream()
-