com.caucho.server.deploy
Class DeployConfig

java.lang.Object
  extended by com.caucho.server.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 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.
 java.lang.String getId()
          Gets the id.
 DeployConfig getPrologue()
          Returns the prologue.
 Period getRedeployCheckInterval()
          Gets the redeploy check interval.
 java.lang.String getRedeployMode()
          Gets the redeploy mode.
 java.lang.String getRootDirectory()
          Gets the app-dir.
 java.lang.String 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 setId(java.lang.String id)
          Sets the id.
 void setRedeployCheckInterval(Period period)
          Sets the redeploy-check-interval
 void setRedeployMode(java.lang.String 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(java.lang.String 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 app-dir.


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)


setSkipDefaultConfig

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


setStartupMode

public void setStartupMode(java.lang.String mode)
                    throws ConfigException
Sets the startup-mode

Throws:
ConfigException

getStartupMode

public java.lang.String 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(java.lang.String mode)
                     throws ConfigException
Sets the redeploy-mode

Throws:
ConfigException

getRedeployMode

public java.lang.String getRedeployMode()
Gets the redeploy mode.


getPrologue

public DeployConfig getPrologue()
Returns the prologue.


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.