dk.netarkivet.deploy
Class DeployApplication

java.lang.Object
  extended by dk.netarkivet.deploy.DeployApplication

public final class DeployApplication
extends java.lang.Object

The application that is run to generate install and start/stop scripts for all physical locations, machines and applications. The actual deployment has to be done from an Linux/Unix machine, and this application should therefore not be run on Windows.


Method Summary
static void initArchiveDatabase(java.lang.String arcDbFileName)
          Checks the argument for the archive database.
static void initEvaluate(java.lang.String evaluateArgument)
          Checks the arguments for evaluating the config file.
static void initJarFolder(java.lang.String folderName)
          Checks the argument for the external jar-folder.
static void main(java.lang.String[] args)
          Run deploy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
Run deploy.

Parameters:
args - The Command-line arguments in no particular order: -C The deploy configuration file (ends with .xml). -Z The NetarchiveSuite file to be unpacked (ends with .zip). -S The security policy file (ends with .policy). -L The logging property file (ends with .prop). -O [OPTIONAL] The output directory -D [OPTIONAL] The harvest definition database -T [OPTIONAL] The test arguments (httpportoffset, port, environmentName, mailReceiver) -R [OPTIONAL] For resetting the tempDir (takes arguments 'y' or 'yes') -E [OPTIONAL] Evaluating the deployConfig file (arguments: 'y' or 'yes') -A [OPTIONAL] For archive database. -J [OPTIONAL] For deploying with external jar files. Must be the total path to the directory containing jar-files. These external files will be placed on every machine, and they have to manually be put into the classpath, where they should be used.

initEvaluate

public static void initEvaluate(java.lang.String evaluateArgument)
Checks the arguments for evaluating the config file. Only the arguments 'y' or 'yes' is accepted for evaluation. Anything else (including argument set to null) does not evaluate the deployConfigFile.

Parameters:
evaluateArgument - The argument for evaluation.

initArchiveDatabase

public static void initArchiveDatabase(java.lang.String arcDbFileName)
Checks the argument for the archive database.

Parameters:
arcDbFileName - The path to the archive database.

initJarFolder

public static void initJarFolder(java.lang.String folderName)
Checks the argument for the external jar-folder.

Parameters:
folderName - The path to the folder. Global path.