PageBoxLib
Interface ASInstallIF

All Known Implementing Classes:
TomcatInstall

public interface ASInstallIF

Interface of the Application Server installer. Returned by ASInstallFactory and implemented in TomcatInstall

alexis.grandemange@pagebox.net

Copyright (c) 2002-2004 Alexis Grandemange

This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public License
 as published by the Free Software Foundation; version 2.1 of the
 License.
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU Lesser General Public License for more details.
 A copy of the GNU Lesser General Public License lesser.txt should be
 included in the distribution.

Version:
0, 0, 6
Author:
Alexis Grandemange

Method Summary
 void init(java.lang.String url, Log log, java.lang.String rootPath, java.lang.String user, java.lang.String password, boolean isRelativeTarget)
          Initializes the installer.
 java.lang.String install(java.lang.String arch, java.lang.String archPath)
          Install a Web application.
 java.lang.String reload(java.lang.String arch)
          Reload a Web application.
 java.lang.String remove(java.lang.String arch)
          Remove a Web application.
 

Method Detail

init

public void init(java.lang.String url,
                 Log log,
                 java.lang.String rootPath,
                 java.lang.String user,
                 java.lang.String password,
                 boolean isRelativeTarget)
Initializes the installer.

Parameters:
url - url of the installation page/web service (AS installer dependent)
log - logging object
rootPath - root deployment path
user - used to contact the Application server manager
password - used to contact the Application server manager
isRelativeTarget - true if the archPath in install method is relative

install

public java.lang.String install(java.lang.String arch,
                                java.lang.String archPath)
Install a Web application.

Parameters:
arch - path of the Web application
archPath - directory of the Web application
Returns:
status message or null if success

reload

public java.lang.String reload(java.lang.String arch)
Reload a Web application.

Parameters:
arch - path of the Web application
Returns:
status message or null if success

remove

public java.lang.String remove(java.lang.String arch)
Remove a Web application.

Parameters:
arch - path of the Web application
Returns:
status message or null if success