org.mule.tools.cargo.deployer
Class FileDeployer

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.deployer.AbstractDeployer
          extended by org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
              extended by org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
                  extended by org.mule.tools.cargo.deployer.FileDeployer
All Implemented Interfaces:
org.codehaus.cargo.container.deployer.Deployer, org.codehaus.cargo.util.log.Loggable

public class FileDeployer
extends org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer


Constructor Summary
FileDeployer(org.codehaus.cargo.container.InstalledLocalContainer container)
           
 
Method Summary
 void deploy(org.codehaus.cargo.container.deployable.Deployable deployable)
           
protected  void ensureMuleApplication(org.codehaus.cargo.container.deployable.Deployable deployable)
           
protected  File getAnchorFile(AbstractMuleDeployable deployable)
           
protected  File getApplicationFolder(AbstractMuleDeployable deployable)
           
protected  File getAppsFolder()
           
protected  org.codehaus.cargo.container.InstalledLocalContainer getContainer()
           
 void undeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
           
protected  void waitForFile(File file, long timeout, boolean exist)
          Wait up to timeout before anchor is discovered (using File.exists()).
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
getType
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
getFileHandler, setFileHandler
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy, redeploy, redeploy, start, start, stop, stop, undeploy
 
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.util.log.Loggable
getLogger, setLogger
 

Constructor Detail

FileDeployer

public FileDeployer(org.codehaus.cargo.container.InstalledLocalContainer container)
Method Detail

ensureMuleApplication

protected final void ensureMuleApplication(org.codehaus.cargo.container.deployable.Deployable deployable)

getContainer

protected org.codehaus.cargo.container.InstalledLocalContainer getContainer()
Overrides:
getContainer in class org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer

getAppsFolder

protected final File getAppsFolder()
Returns:
mule apps folder

getAnchorFile

protected final File getAnchorFile(AbstractMuleDeployable deployable)
Parameters:
deployable -
Returns:
anchor file for specified Deployable

getApplicationFolder

protected final File getApplicationFolder(AbstractMuleDeployable deployable)
Parameters:
deployable -
Returns:
application folder for specified Deployable

waitForFile

protected final void waitForFile(File file,
                                 long timeout,
                                 boolean exist)
                          throws org.codehaus.cargo.container.deployable.DeployableException
Wait up to timeout before anchor is discovered (using File.exists()).

Parameters:
file -
timeout -
exist - if file should exist or not
Throws:
org.codehaus.cargo.container.deployable.DeployableException - if timeout is elapsed before anchor is discovered

deploy

public void deploy(org.codehaus.cargo.container.deployable.Deployable deployable)
Specified by:
deploy in interface org.codehaus.cargo.container.deployer.Deployer
Overrides:
deploy in class org.codehaus.cargo.container.spi.deployer.AbstractDeployer

undeploy

public void undeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
Specified by:
undeploy in interface org.codehaus.cargo.container.deployer.Deployer
Overrides:
undeploy in class org.codehaus.cargo.container.spi.deployer.AbstractDeployer


Copyright © 2010-2013 MuleSoft, Inc.. All Rights Reserved.