@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 f)
Deletes all possible marker files for the file.
|
protected File |
getDeployedFile(File f)
Returns a File object for the "deployed" marker file for a given file.
|
protected File |
getDeployFailedFile(File f)
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 f)
Returns a File object for the "undeployed" marker file for a given file.
|
protected File |
getUndeployFailedFile(File f)
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.
|
public static final Logger deplLogger
protected 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 f)
f - protected File getDeployFailedFile(File f)
f - protected File getUndeployedFile(File f)
f - protected File getUndeployFailedFile(File f)
f - protected void deleteAllMarks(File f)
f - the File whose markers should be removedCopyright © 2014. All rights reserved.