org.glassfish.deployment.autodeploy
Class AutoUndeploymentOperation

java.lang.Object
  extended by org.glassfish.deployment.autodeploy.AutoOperation
      extended by org.glassfish.deployment.autodeploy.AutoUndeploymentOperation

@Service
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class AutoUndeploymentOperation
extends AutoOperation

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

Constructor Summary
AutoUndeploymentOperation()
           
 
Method Summary
protected  String getMessageString(AutoDeployer.AutodeploymentStatus ds, 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 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoUndeploymentOperation

public AutoUndeploymentOperation()
Method Detail

init

protected AutoUndeploymentOperation init(File appFile,
                                         String name,
                                         String target)
Completes the intialization of the object.

Parameters:
appFile -
name -
target -
Returns:
the AutoUndeployOperation for convenience

getMessageString

protected String getMessageString(AutoDeployer.AutodeploymentStatus ds,
                                  File file)
Returns the appropriate message string for the given operation and the outcome.

Specified by:
getMessageString in class AutoOperation
Parameters:
ds - AutodeploymentStatus value giving the outcome of the operation
file - file of interest
Returns:
message string to be logged

markFiles

protected 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.

Specified by:
markFiles in class AutoOperation
Parameters:
ds - AutodeploymentStatus indicating the outcome of the operation
file - file of interest


Copyright © 2012. All Rights Reserved.