org.apache.jetspeed.tools.pamanager.servletcontainer
Interface ApplicationServerManager


public interface ApplicationServerManager

ApplicationServerManager

Implementations of this interface are used primarily by the org.apache.jetspeed.tools.pamanager.ApplicationServerPAM to interact with the servlet container that is supporting the web appliaction portion of deployed the portlet applications.

Version:
$Id: ApplicationServerManager.java 516448 2007-03-09 16:25:47Z ate $
Author:
Scott T. Weaver

Method Summary
 ApplicationServerManagerResult deploy(java.lang.String appPath, java.io.InputStream is, int size)
           deploy
 java.lang.String getAppServerTarget(java.lang.String appName)
           Returns the name of the target directory or archive where the portlet app will be deployed as known to the application server
 int getHostPort()
           getHostPort
 java.lang.String getHostUrl()
           getHostUrl
 boolean isConnected()
           isConnected
 ApplicationServerManagerResult reload(java.lang.String appPath)
           reload
 ApplicationServerManagerResult start(java.lang.String appPath)
           start
 ApplicationServerManagerResult stop(java.lang.String appPath)
           stop
 ApplicationServerManagerResult undeploy(java.lang.String appPath)
           undeploy
 

Method Detail

start

ApplicationServerManagerResult start(java.lang.String appPath)
                                     throws java.io.IOException

start

Starts the application represented by the context path, appPath

Parameters:
appPath - path to restart
Returns:
container-specific status message
Throws:
HttpException
java.io.IOException

stop

ApplicationServerManagerResult stop(java.lang.String appPath)
                                    throws java.io.IOException

stop

Stops the application represented by the context path, appPath

Parameters:
appPath -
Returns:
container-specific status message
Throws:
HttpException
java.io.IOException

reload

ApplicationServerManagerResult reload(java.lang.String appPath)
                                      throws java.io.IOException

reload

Reloads the application represented by the context path, appPath. This must included re-reading the web.xml and reloading all classpath resources.

Parameters:
appPath -
Returns:
container-specific status message
Throws:
HttpException
java.io.IOException

undeploy

ApplicationServerManagerResult undeploy(java.lang.String appPath)
                                        throws java.io.IOException

undeploy

Undeploys the application represented by the context path, appPath
Parameters:
appPath -
Returns:
container-specific status message
Throws:
HttpException
java.io.IOException

deploy

ApplicationServerManagerResult deploy(java.lang.String appPath,
                                      java.io.InputStream is,
                                      int size)
                                      throws java.io.IOException

deploy

Deploys the contents of the InputStream, is, into the parent servlet container using the specified appPath as the context path.

Parameters:
appPath -
is -
size - size (in bytes) of InputStream is
Returns:
Throws:
HttpException
java.io.IOException

getHostPort

int getHostPort()

getHostPort

Returns:

getHostUrl

java.lang.String getHostUrl()

getHostUrl

Returns:

isConnected

boolean isConnected()

isConnected

Returns:

getAppServerTarget

java.lang.String getAppServerTarget(java.lang.String appName)

Returns the name of the target directory or archive where the portlet app will be deployed as known to the application server



Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.