hudson.plugins.deploy
Class CargoContainerAdapter

java.lang.Object
  extended by hudson.plugins.deploy.ContainerAdapter
      extended by hudson.plugins.deploy.CargoContainerAdapter
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<ContainerAdapter>, java.io.Serializable
Direct Known Subclasses:
DefaultCargoContainerAdapterImpl

public abstract class CargoContainerAdapter
extends ContainerAdapter
implements java.io.Serializable

Provides container-specific glue code.

To support remote operations as an inner class, marking the class as serializable.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
CargoContainerAdapter()
           
 
Method Summary
protected abstract  void configure(org.codehaus.cargo.container.configuration.Configuration config)
          Fills in the Configuration object.
protected  org.codehaus.cargo.container.deployable.Deployable createDeployable(java.io.File deployableFile)
          Creates a Deployable object from the given file object.
protected  void deploy(org.codehaus.cargo.generic.deployer.DeployerFactory deployerFactory, hudson.model.BuildListener listener, org.codehaus.cargo.container.Container container, java.io.File f)
           
protected  org.codehaus.cargo.container.Container getContainer(org.codehaus.cargo.generic.configuration.ConfigurationFactory configFactory, org.codehaus.cargo.generic.ContainerFactory containerFactory, java.lang.String id)
           
protected abstract  java.lang.String getContainerId()
          Returns the container ID used by Cargo.
 boolean redeploy(hudson.FilePath war, hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
          Perform redeployment.
 
Methods inherited from class hudson.plugins.deploy.ContainerAdapter
all, getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CargoContainerAdapter

public CargoContainerAdapter()
Method Detail

getContainerId

protected abstract java.lang.String getContainerId()
Returns the container ID used by Cargo.


configure

protected abstract void configure(org.codehaus.cargo.container.configuration.Configuration config)
Fills in the Configuration object.


getContainer

protected org.codehaus.cargo.container.Container getContainer(org.codehaus.cargo.generic.configuration.ConfigurationFactory configFactory,
                                                              org.codehaus.cargo.generic.ContainerFactory containerFactory,
                                                              java.lang.String id)

deploy

protected void deploy(org.codehaus.cargo.generic.deployer.DeployerFactory deployerFactory,
                      hudson.model.BuildListener listener,
                      org.codehaus.cargo.container.Container container,
                      java.io.File f)

createDeployable

protected org.codehaus.cargo.container.deployable.Deployable createDeployable(java.io.File deployableFile)
Creates a Deployable object from the given file object.

Parameters:
deployableFile - The deployable file to create the Deployable from.
Returns:
A Deployable object.

redeploy

public boolean redeploy(hudson.FilePath war,
                        hudson.model.AbstractBuild<?,?> build,
                        hudson.Launcher launcher,
                        hudson.model.BuildListener listener)
                 throws java.io.IOException,
                        java.lang.InterruptedException
Description copied from class: ContainerAdapter
Perform redeployment. If failed, return false.

Specified by:
redeploy in class ContainerAdapter
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2009. All Rights Reserved.