|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.glassfish.deployment.autodeploy.AutoOperation
@Service @Scoped(value=org.jvnet.hk2.component.PerLookup.class) public abstract class AutoOperation
Abstract class for operations the AutoDeployer can perform (currently deploy and undeploy).
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.
| Constructor Summary | |
|---|---|
AutoOperation()
|
|
| Method Summary | |
|---|---|
protected void |
deleteAllMarks(java.io.File f)
Deletes all possible marker files for the file. |
protected java.io.File |
getDeployedFile(java.io.File f)
Returns a File object for the "deployed" marker file for a given file. |
protected java.io.File |
getDeployFailedFile(java.io.File f)
Returns a File object for the "deploy failed" marker file for a given file. |
protected abstract java.lang.String |
getMessageString(AutoDeployer.AutodeploymentStatus ds,
java.io.File file)
Returns the appropriate message string for the given operation and the outcome. |
protected java.io.File |
getUndeployedFile(java.io.File f)
Returns a File object for the "undeployed" marker file for a given file. |
protected java.io.File |
getUndeployFailedFile(java.io.File f)
Returns a File object for the "undeploy failed" marker file for a given file. |
protected abstract void |
markFiles(AutoDeployer.AutodeploymentStatus ds,
java.io.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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AutoOperation()
| Method Detail |
|---|
protected abstract void markFiles(AutoDeployer.AutodeploymentStatus ds,
java.io.File file)
ds - AutodeploymentStatus indicating the outcome of the operationfile - file of interest
protected abstract java.lang.String getMessageString(AutoDeployer.AutodeploymentStatus ds,
java.io.File file)
ds - AutodeploymentStatus value giving the outcome of the operationfile - file of interest
protected java.io.File getDeployedFile(java.io.File f)
f -
protected java.io.File getDeployFailedFile(java.io.File f)
f -
protected java.io.File getUndeployedFile(java.io.File f)
f -
protected java.io.File getUndeployFailedFile(java.io.File f)
f -
protected void deleteAllMarks(java.io.File f)
f - the File whose markers should be removed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||