@Service @PerLookup public class AutoUndeploymentOperation extends AutoOperation
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.
deplLogger
Constructor and Description |
---|
AutoUndeploymentOperation() |
Modifier and Type | Method and Description |
---|---|
protected String |
getMessageString(AutoDeployer.AutodeploymentStatus autodeploymentStatus,
File file)
Returns the appropriate message string for the given operation and the outcome.
|
protected AutoUndeploymentOperation |
init(File appFile,
String name,
String target)
Completes the intialization of the object.
|
protected void |
markFiles(AutoDeployer.AutodeploymentStatus autodeploymentStatus,
File file)
Marks the files relevant to the specified file appropriately given the outcome of the command as given in the status.
|
static AutoUndeploymentOperation |
newInstance(org.glassfish.hk2.api.ServiceLocator serviceLocator,
File file,
String name,
String target)
Creates a new, injected, and initialized AutoUndeploymentOperation object.
|
deleteAllMarks, getDeployedFile, getDeployFailedFile, getUndeployedFile, getUndeployFailedFile, run
public static AutoUndeploymentOperation newInstance(org.glassfish.hk2.api.ServiceLocator serviceLocator, File file, String name, String target)
serviceLocator
- file
- name
- target
- protected AutoUndeploymentOperation init(File appFile, String name, String target)
appFile
- name
- target
- protected String getMessageString(AutoDeployer.AutodeploymentStatus autodeploymentStatus, File file)
getMessageString
in class AutoOperation
autodeploymentStatus
- AutodeploymentStatus value giving the outcome of the operationfile
- file of interestprotected void markFiles(AutoDeployer.AutodeploymentStatus autodeploymentStatus, File file)
markFiles
in class AutoOperation
autodeploymentStatus
- AutodeploymentStatus indicating the outcome of the operationfile
- file of interestCopyright © 2019. All rights reserved.