Class AutoUndeploymentOperation
java.lang.Object
org.glassfish.deployment.autodeploy.AutoOperation
org.glassfish.deployment.autodeploy.AutoUndeploymentOperation
Performs a single auto-undeploy operation for a single file.
Note - Use the newInstance static method to obtain a fully-injected operation; it is safer and more convenient than using the no-arg constructor and then invoking init yourself.
- Author:
- tjquinn
-
Field Summary
Fields inherited from class org.glassfish.deployment.autodeploy.AutoOperation
deplLogger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns the appropriate message string for the given operation and the outcome.protected AutoUndeploymentOperationCompletes the intialization of the object.protected voidmarkFiles(AutoDeployer.AutodeploymentStatus ds, File file) Marks the files relevant to the specified file appropriately given the outcome of the command as given in the status.Methods inherited from class org.glassfish.deployment.autodeploy.AutoOperation
deleteAllMarks, getDeployedFile, getDeployFailedFile, getUndeployedFile, getUndeployFailedFile
-
Constructor Details
-
AutoUndeploymentOperation
public AutoUndeploymentOperation()
-
-
Method Details
-
init
Completes the intialization of the object.- Parameters:
appFile-name-target-- Returns:
- the AutoUndeployOperation for convenience
-
getMessageString
Returns the appropriate message string for the given operation and the outcome.- Specified by:
getMessageStringin classAutoOperation- Parameters:
ds- AutodeploymentStatus value giving the outcome of the operationfile- file of interest- Returns:
- message string to be logged
-
markFiles
Marks the files relevant to the specified file appropriately given the outcome of the command as given in the status.- Specified by:
markFilesin classAutoOperation- Parameters:
ds- AutodeploymentStatus indicating the outcome of the operationfile- file of interest
-