org.mule.tools.cargo.deployer
Class IONDeployer

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

public class IONDeployer
extends org.codehaus.cargo.container.spi.deployer.AbstractDeployer

Deploy MuleApplicationDeployable to a Mule iON domain using REST API (http://www.mulesoft.org/documentation/display/ION/API).


Constructor Summary
IONDeployer(org.codehaus.cargo.container.RemoteContainer container)
           
 
Method Summary
protected  com.sun.jersey.api.client.WebResource.Builder createBuilder(String path)
           
 void deploy(org.codehaus.cargo.container.deployable.Deployable deployable)
           
protected  void ensureIONApplicationExists(String domain)
           
protected  String extractFailureReason(com.sun.jersey.api.client.ClientResponse response)
           
protected  IONConfiguration getConfiguration()
           
protected  Application getIONApplication(String domain)
           
protected  String getIONApplicationsResource()
           
protected  String getIONURL()
           
 org.codehaus.cargo.container.deployer.DeployerType getType()
           
protected  boolean isIONApplicationCreated(String domain)
           
protected  void sleep()
           
 void undeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
           
protected  void updateIONApplication(String domain, Application application)
           
 
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

IONDeployer

public IONDeployer(org.codehaus.cargo.container.RemoteContainer container)
Method Detail

getType

public org.codehaus.cargo.container.deployer.DeployerType getType()

getIONURL

protected final String getIONURL()

getIONApplicationsResource

protected final String getIONApplicationsResource()

createBuilder

protected final com.sun.jersey.api.client.WebResource.Builder createBuilder(String path)

getConfiguration

protected final IONConfiguration getConfiguration()

getIONApplication

protected final Application getIONApplication(String domain)

isIONApplicationCreated

protected final boolean isIONApplicationCreated(String domain)

updateIONApplication

protected final void updateIONApplication(String domain,
                                          Application application)

ensureIONApplicationExists

protected final void ensureIONApplicationExists(String domain)
Parameters:
domain -
Throws:
org.codehaus.cargo.container.deployable.DeployableException - if iON application does not exist

extractFailureReason

protected final String extractFailureReason(com.sun.jersey.api.client.ClientResponse response)

sleep

protected void sleep()

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 © 2011. All Rights Reserved.