com.caucho.env.deploy
Class DeployConfig

java.lang.Object
  extended by com.caucho.env.deploy.DeployConfig
Direct Known Subclasses:
EarConfig, HostConfig, ResourceConfig, WebAppConfig

public class DeployConfig
extends java.lang.Object

The configuration for a deployable instance.


Constructor Summary
DeployConfig()
           
 
Method Summary
 void addBuilderProgram(ConfigProgram program)
          Adds to the builder program.
 void addClassLoader(ConfigProgram program)
          Adds to the classloader
 void addPropertyProgram(java.lang.String name, java.lang.Object value)
          Adds a program.
 Path calculateRootDirectory()
          Calculates the root directory for the config.
 Path calculateRootDirectory(java.util.Map<java.lang.String,java.lang.Object> varMap)
          Calculates the root directory for the config.
 java.lang.String getArchivePath()
          Gets the archive-path
 ConfigProgram getBuilderProgram()
          Returns the program.
 ConfigProgram getClassLoaderProgram()
           
 FileSetType getExpandCleanupFileset()
          Gets the archive auto-remove file set.
 java.lang.String getId()
          Gets the id.
 DeployConfig getPrologue()
          Returns the prologue.
 Period getRedeployCheckInterval()
          Gets the redeploy check interval.
 DeployMode getRedeployMode()
          Gets the redeploy mode.
 java.lang.String getRootDirectory()
          Gets the root-directory.
 DeployMode getStartupMode()
          Gets the startup mode.
 int getStartupPriority()
          Gets the startup priority.
 boolean isSkipDefaultConfig()
          Skip the defaults (for admin)
 void setArchivePath(RawString path)
          Sets the archive-path
 void setExpandCleanupFileset(FileSetType fileset)
          Sets the archive auto-remove file set.
 void setId(java.lang.String id)
          Sets the id.
 void setRedeployCheckInterval(Period period)
          Sets the redeploy-check-interval
 void setRedeployMode(DeployMode mode)
          Sets the redeploy-mode
 void setRootDirectory(RawString rootDirectory)
          Sets the root directory string
 void setSkipDefaultConfig(boolean isDefault)
          Skip the defaults (for admin)
 void setStartupMode(DeployMode mode)
          Sets the startup-mode
 void setStartupPriority(int priority)
          Sets the startup-priority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeployConfig

public DeployConfig()
Method Detail

setId

public void setId(java.lang.String id)
Sets the id.


getId

public java.lang.String getId()
Gets the id.


setRootDirectory

public void setRootDirectory(RawString rootDirectory)
Sets the root directory string


getRootDirectory

public java.lang.String getRootDirectory()
Gets the root-directory.


setArchivePath

public void setArchivePath(RawString path)
Sets the archive-path


getArchivePath

public java.lang.String getArchivePath()
Gets the archive-path


isSkipDefaultConfig

public boolean isSkipDefaultConfig()
Skip the defaults (for admin)


setExpandCleanupFileset

public void setExpandCleanupFileset(FileSetType fileset)
Sets the archive auto-remove file set.


getExpandCleanupFileset

public FileSetType getExpandCleanupFileset()
Gets the archive auto-remove file set.


setSkipDefaultConfig

public void setSkipDefaultConfig(boolean isDefault)
Skip the defaults (for admin)


setStartupMode

public void setStartupMode(DeployMode mode)
                    throws ConfigException
Sets the startup-mode

Throws:
ConfigException

getStartupMode

public DeployMode getStartupMode()
Gets the startup mode.


setStartupPriority

public void setStartupPriority(int priority)
                        throws ConfigException
Sets the startup-priority

Throws:
ConfigException

getStartupPriority

public int getStartupPriority()
Gets the startup priority.


setRedeployCheckInterval

public void setRedeployCheckInterval(Period period)
Sets the redeploy-check-interval


getRedeployCheckInterval

public Period getRedeployCheckInterval()
Gets the redeploy check interval.


setRedeployMode

public void setRedeployMode(DeployMode mode)
                     throws ConfigException
Sets the redeploy-mode

Throws:
ConfigException

getRedeployMode

public DeployMode getRedeployMode()
Gets the redeploy mode.


getPrologue

public DeployConfig getPrologue()
Returns the prologue.


addClassLoader

public void addClassLoader(ConfigProgram program)
Adds to the classloader


getClassLoaderProgram

public ConfigProgram getClassLoaderProgram()

addBuilderProgram

public void addBuilderProgram(ConfigProgram program)
Adds to the builder program.


getBuilderProgram

public ConfigProgram getBuilderProgram()
Returns the program.


addPropertyProgram

public void addPropertyProgram(java.lang.String name,
                               java.lang.Object value)
Adds a program.


calculateRootDirectory

public Path calculateRootDirectory()
Calculates the root directory for the config.


calculateRootDirectory

public Path calculateRootDirectory(java.util.Map<java.lang.String,java.lang.Object> varMap)
Calculates the root directory for the config.