autohit.common.deployment
Class DeploymentConfigure

java.lang.Object
  extended byautohit.common.deployment.DeploymentConfigure

public class DeploymentConfigure
extends java.lang.Object

A deployment manager. It will handle configuration, installation, and checkpointing.

Version:
1.0 Version History EPG - Initial - 25Apr03
Author:
Erich P. Gatejen

Field Summary
 org.apache.commons.collections.ExtendedProperties props
          Command system
 
Constructor Summary
DeploymentConfigure()
          Default constructor.
 
Method Summary
 boolean checkpoint(java.lang.String name, java.lang.String root, java.lang.String cf, boolean special)
          Checkpoint the system
 boolean configure(java.lang.String config, java.lang.String root, org.apache.commons.collections.ExtendedProperties varprops)
          config config [config name] [root] [prop file] Process a configuration
 boolean configure(java.lang.String config, java.lang.String root, java.lang.String vars)
          config config [config name] [root] [prop file] Process a configuration
 boolean delete(java.lang.String name, java.lang.String root)
          Delete a checkpoint
 void go(java.lang.String[] args)
          Object main
static void main(java.lang.String[] args)
          main interface
 boolean restore(java.lang.String name, java.lang.String root, boolean wipe)
          Restore a checkpoint
 void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

props

public org.apache.commons.collections.ExtendedProperties props
Command system

Constructor Detail

DeploymentConfigure

public DeploymentConfigure()
                    throws java.lang.Exception
Default constructor.

Method Detail

checkpoint

public boolean checkpoint(java.lang.String name,
                          java.lang.String root,
                          java.lang.String cf,
                          boolean special)
Checkpoint the system

Parameters:
name - checkpoint name
root - directory root
cf - configuration file
special - unlock factory. ALWAYS use FALSE
Returns:
true if successful, false if there is an error

delete

public boolean delete(java.lang.String name,
                      java.lang.String root)
Delete a checkpoint

Parameters:
name - checkpoint name
root - directory root
Returns:
true if successful, false if there is an error

restore

public boolean restore(java.lang.String name,
                       java.lang.String root,
                       boolean wipe)
Restore a checkpoint

Parameters:
name - checkpoint name
root - directory root
wipe - destructive restore
Returns:
true if successful, false if there is an error

configure

public boolean configure(java.lang.String config,
                         java.lang.String root,
                         java.lang.String vars)
config config [config name] [root] [prop file] Process a configuration

Parameters:
config - config file name
root - directory root
vars - variable replacement set. a properties file.
Returns:
true if successful, false if there is an error

configure

public boolean configure(java.lang.String config,
                         java.lang.String root,
                         org.apache.commons.collections.ExtendedProperties varprops)
config config [config name] [root] [prop file] Process a configuration

Parameters:
config - config file name
root - directory root
varprops - an ExtendedProperties set of configuration name/values.
Returns:
true if successful, false if there is an error

go

public void go(java.lang.String[] args)
Object main


usage

public void usage()

main

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



Test.