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 188417 2005-03-23 22:18:42Z ate $
Author:
Scott T. Weaver

Method Summary
 ApplicationServerManagerResult deploy(String appPath, InputStream is, int size)
           deploy
 String getAppServerTarget(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
 String getHostUrl()
           getHostUrl
 boolean isConnected()
           isConnected
 ApplicationServerManagerResult reload(String appPath)
           reload
 ApplicationServerManagerResult start(String appPath)
           start
 ApplicationServerManagerResult stop(String appPath)
           stop
 ApplicationServerManagerResult undeploy(String appPath)
           undeploy
 

Method Detail

start

public ApplicationServerManagerResult start(String appPath)
                                     throws IOException

start

Starts the application represented by the context path, appPath

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

stop

public ApplicationServerManagerResult stop(String appPath)
                                    throws IOException

stop

Stops the application represented by the context path, appPath

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

reload

public ApplicationServerManagerResult reload(String appPath)
                                      throws 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
IOException

undeploy

public ApplicationServerManagerResult undeploy(String appPath)
                                        throws IOException

undeploy

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

deploy

public ApplicationServerManagerResult deploy(String appPath,
                                             InputStream is,
                                             int size)
                                      throws 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
IOException

getHostPort

public int getHostPort()

getHostPort

Returns:

getHostUrl

public String getHostUrl()

getHostUrl

Returns:

isConnected

public boolean isConnected()

isConnected

Returns:

getAppServerTarget

public String getAppServerTarget(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-2005 Apache Software Foundation. All Rights Reserved.