@Service @PerLookup public abstract class AutoOperation extends Object
AutoOperation and its subclasses have no-arg constructors so they can be initialized as services and an init method that accepts what might otherwise be constructor arguments.
| Modifier and Type | Field and Description |
|---|---|
static Logger |
deplLogger |
| Constructor and Description |
|---|
AutoOperation() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteAllMarks(File file)
Deletes all possible marker files for the file.
|
protected File |
getDeployedFile(File file)
Returns a File object for the "deployed" marker file for a given file.
|
protected File |
getDeployFailedFile(File file)
Returns a File object for the "deploy failed" marker file for a given file.
|
protected abstract String |
getMessageString(AutoDeployer.AutodeploymentStatus ds,
File file)
Returns the appropriate message string for the given operation and the outcome.
|
protected File |
getUndeployedFile(File file)
Returns a File object for the "undeployed" marker file for a given file.
|
protected File |
getUndeployFailedFile(File file)
Returns a File object for the "undeploy failed" marker file for a given file.
|
protected abstract void |
markFiles(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.
|
AutoDeployer.AutodeploymentStatus |
run()
Executes the operation
|
public static final Logger deplLogger
public final AutoDeployer.AutodeploymentStatus run() throws AutoDeploymentException
AutoDeploymentExceptionprotected abstract void markFiles(AutoDeployer.AutodeploymentStatus ds, File file)
ds - AutodeploymentStatus indicating the outcome of the operationfile - file of interestprotected abstract String getMessageString(AutoDeployer.AutodeploymentStatus ds, File file)
ds - AutodeploymentStatus value giving the outcome of the operationfile - file of interestprotected File getDeployedFile(File file)
file - protected File getDeployFailedFile(File file)
file - protected File getUndeployedFile(File file)
file - protected File getUndeployFailedFile(File file)
file - protected void deleteAllMarks(File file)
file - the File whose markers should be removedCopyright © 2019. All rights reserved.