hudson.plugins.deploy
Class CargoContainerAdapter

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

public abstract class CargoContainerAdapter
extends java.lang.Object
implements ContainerAdapter

Provides container-specific glue code.

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from interface hudson.plugins.deploy.ContainerAdapter
LIST
 
Constructor Summary
CargoContainerAdapter()
           
 
Method Summary
protected abstract  void configure(org.codehaus.cargo.container.configuration.Configuration config)
          Fills in the Configuration object.
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.Describable
getDescriptor
 

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.


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 interface: ContainerAdapter
Perform redeployment. If failed, return false.

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


Copyright © 2008. All Rights Reserved.