org.glassfish.deployment.autodeploy
Class AutoDeployedFilesManager

java.lang.Object
  extended by org.glassfish.deployment.autodeploy.AutoDeployedFilesManager

public class AutoDeployedFilesManager
extends java.lang.Object

Contains the status of list of files that have been autodeployed.

Author:
Mahesh Rangamani

Nested Class Summary
protected  class AutoDeployedFilesManager.UndeployRequestedFile
           
 
Field Summary
protected  java.lang.String statDir
           
 
Constructor Summary
  AutoDeployedFilesManager()
           
protected AutoDeployedFilesManager(java.lang.String s)
           
 
Method Summary
protected static java.io.File appToUndeployRequestFile(java.io.File f)
           
protected static java.io.File appToUndeployRequestFile(java.io.File autodeployDir, java.io.File f)
           
 void deleteDeployedFileInfo(java.io.File f)
           
 java.io.File[] getFilesForDeployment(java.io.File[] latestFiles)
          Compare the list of files with the current status info and determine the files that need to be deployed
 java.io.File[] getFilesForUndeployment(java.io.File[] latestFiles)
          Compare the list of files with the current status info and determine the apps that need to be undeployed.
static AutoDeployedFilesManager loadStatus(java.io.File statusDir)
          Create an instance from the persisted file in the specified directory.
static AutoDeployedFilesManager loadStatus(java.lang.String autoDeploymentDir)
           
 void setDeployedFileInfo(java.io.File f)
          Update the status of the file as deployed.
 void writeStatus()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statDir

protected java.lang.String statDir
Constructor Detail

AutoDeployedFilesManager

public AutoDeployedFilesManager()

AutoDeployedFilesManager

protected AutoDeployedFilesManager(java.lang.String s)
Method Detail

loadStatus

public static AutoDeployedFilesManager loadStatus(java.io.File statusDir)
                                           throws java.lang.Exception
Create an instance from the persisted file in the specified directory.

Parameters:
statusDir - Directory in which the status file is to read.
Throws:
java.lang.Exception

loadStatus

public static AutoDeployedFilesManager loadStatus(java.lang.String autoDeploymentDir)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

writeStatus

public void writeStatus()
                 throws java.lang.Exception
Throws:
java.lang.Exception

setDeployedFileInfo

public void setDeployedFileInfo(java.io.File f)
                         throws java.lang.Exception
Update the status of the file as deployed.

Throws:
java.lang.Exception

deleteDeployedFileInfo

public void deleteDeployedFileInfo(java.io.File f)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getFilesForDeployment

public java.io.File[] getFilesForDeployment(java.io.File[] latestFiles)
Compare the list of files with the current status info and determine the files that need to be deployed


getFilesForUndeployment

public java.io.File[] getFilesForUndeployment(java.io.File[] latestFiles)
Compare the list of files with the current status info and determine the apps that need to be undeployed.


appToUndeployRequestFile

protected static java.io.File appToUndeployRequestFile(java.io.File autodeployDir,
                                                       java.io.File f)

appToUndeployRequestFile

protected static java.io.File appToUndeployRequestFile(java.io.File f)


Copyright © 2012 GlassFish Community. All Rights Reserved.