org.duracloud.services.webapputil
Interface WebAppUtil

All Superinterfaces:
ComputeService
All Known Implementing Classes:
WebAppUtilImpl

public interface WebAppUtil
extends ComputeService

This interface abstracts the ability to (un)deploy a webapp to/from an application server.

Author:
Andrew Woods Date: Dec 7, 2009

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.duracloud.services.ComputeService
ComputeService.ServiceStatus
 
Field Summary
 
Fields inherited from interface org.duracloud.services.ComputeService
ERROR_KEY
 
Method Summary
 java.net.URL deploy(java.lang.String context, java.io.InputStream war)
          This method deploys the arg war to a new application server under the arg context.
 java.net.URL deploy(java.lang.String context, java.io.InputStream war, java.util.Map<java.lang.String,java.lang.String> env)
           
 java.net.URL filteredDeploy(java.lang.String serviceId, java.io.InputStream war, java.util.Map<java.lang.String,java.lang.String> env, java.util.List<java.lang.String> filterNames)
          This method deploys the arg war to a newly created appserver under the arg serviceId context.
 void unDeploy(java.net.URL url)
          This method undeploys the webapp currently running at the arg url and destroys the application server that was hosting it.
 
Methods inherited from interface org.duracloud.services.ComputeService
describe, getServiceId, getServiceProps, getServiceStatus, getServiceWorkDir, setServiceWorkDir, start, stop
 

Method Detail

deploy

java.net.URL deploy(java.lang.String context,
                    java.io.InputStream war)
This method deploys the arg war to a new application server under the arg context. The arg war inputstream is closed by this method.

Parameters:
context -
war -
Returns:
URL of running webapp

deploy

java.net.URL deploy(java.lang.String context,
                    java.io.InputStream war,
                    java.util.Map<java.lang.String,java.lang.String> env)

filteredDeploy

java.net.URL filteredDeploy(java.lang.String serviceId,
                            java.io.InputStream war,
                            java.util.Map<java.lang.String,java.lang.String> env,
                            java.util.List<java.lang.String> filterNames)
This method deploys the arg war to a newly created appserver under the arg serviceId context.

Parameters:
serviceId - is the name of the context of deployed webapp
war - to be deployed
env - of tomcat that will be installed/started
filterNames - are names of files in the arg war to be filtered with host and port. Any text in the named files with the Strings $DURA_HOST$ or $DURA_PORT$ will be swapped with the host and port of the compute instance.
Returns:
URL of deployed webapp

unDeploy

void unDeploy(java.net.URL url)
This method undeploys the webapp currently running at the arg url and destroys the application server that was hosting it.

Parameters:
url - of webapp to undeploy


Copyright © 2009-2010 DuraSpace. All Rights Reserved.