PageBoxLib
Class InstallHelper

java.lang.Object
  extended byPageBoxLib.InstallHelper

public class InstallHelper
extends java.lang.Object

Helper class for running the database creation and running the Install class.

Changes:

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, 1, 0
Author:
Alexis Grandemange

Field Summary
private  java.lang.String dbCreateScript
          Script for the creation of database
private  Log log
          Logging object
private  java.util.HashMap resources
          Application server resource map
 
Constructor Summary
InstallHelper(Log log, java.util.HashMap resources, java.lang.String dbCreateScript)
          Constructor.
 
Method Summary
 DeployIF.Status install(java.lang.String arch, java.lang.String downloadURL, boolean isUpdate2, java.lang.String archPath)
          Install an archive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbCreateScript

private java.lang.String dbCreateScript
Script for the creation of database


log

private Log log
Logging object


resources

private java.util.HashMap resources
Application server resource map

Constructor Detail

InstallHelper

public InstallHelper(Log log,
                     java.util.HashMap resources,
                     java.lang.String dbCreateScript)
Constructor.

Parameters:
log - logging object
resources - application server resource map
dbCreateScript - script for the creation of database
Method Detail

install

public DeployIF.Status install(java.lang.String arch,
                               java.lang.String downloadURL,
                               boolean isUpdate2,
                               java.lang.String archPath)
Install an archive.

Parameters:
arch - archive name
downloadURL - download URL.
isUpdate2 - if true replaces an older version
Returns:
Status object