org.apache.geronimo.deployment.plugin.local
Class AbstractDeployCommand

java.lang.Object
  extended by org.apache.geronimo.deployment.plugin.local.CommandSupport
      extended by org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand
All Implemented Interfaces:
Runnable, ProgressObject
Direct Known Subclasses:
DistributeCommand, RedeployCommand

public abstract class AbstractDeployCommand
extends CommandSupport


Field Summary
protected  AbstractName deployer
           
protected  File deploymentPlan
           
protected  InputStream deploymentStream
           
protected  Kernel kernel
           
protected  File moduleArchive
           
protected  InputStream moduleStream
           
protected  ModuleType moduleType
           
protected  boolean spool
           
 
Fields inherited from class org.apache.geronimo.deployment.plugin.local.CommandSupport
commandContext
 
Constructor Summary
AbstractDeployCommand(CommandType command, Kernel kernel, File moduleArchive, File deploymentPlan, ModuleType moduleType, InputStream moduleStream, InputStream deploymentStream, boolean spool)
           
 
Method Summary
protected  void copyTo(File outfile, InputStream is)
           
protected static File createTempFile(String extension)
           
protected  void doDeploy(Target target, boolean finished)
           
 URL getRemoteDeployUploadURL()
           
protected  void massageFileNames(File[] inputs)
           
 
Methods inherited from class org.apache.geronimo.deployment.plugin.local.CommandSupport
addModule, addProgressListener, addWebContextPaths, addWebURLs, cancel, clean, complete, convertModuleType, doFail, fail, getClientConfiguration, getCommandContext, getDeploymentStatus, getModuleCount, getResultTargetModuleIDs, isCancelSupported, isStopSupported, isWebApp, loadChildren, removeProgressListener, setCommandContext, stop, updateStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

kernel

protected final Kernel kernel

spool

protected final boolean spool

moduleArchive

protected File moduleArchive

deploymentPlan

protected File deploymentPlan

moduleType

protected final ModuleType moduleType

moduleStream

protected InputStream moduleStream

deploymentStream

protected InputStream deploymentStream

deployer

protected AbstractName deployer
Constructor Detail

AbstractDeployCommand

public AbstractDeployCommand(CommandType command,
                             Kernel kernel,
                             File moduleArchive,
                             File deploymentPlan,
                             ModuleType moduleType,
                             InputStream moduleStream,
                             InputStream deploymentStream,
                             boolean spool)
Method Detail

createTempFile

protected static File createTempFile(String extension)
                              throws IOException
Throws:
IOException

copyTo

protected void copyTo(File outfile,
                      InputStream is)
               throws IOException
Throws:
IOException

doDeploy

protected void doDeploy(Target target,
                        boolean finished)
                 throws Exception
Throws:
Exception

massageFileNames

protected void massageFileNames(File[] inputs)

getRemoteDeployUploadURL

public URL getRemoteDeployUploadURL()
                             throws Exception
Throws:
Exception


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.