com.caucho.server.host
Class HostExpandDeployGenerator

java.lang.Object
  extended by com.caucho.env.deploy.DeployGenerator<E>
      extended by com.caucho.env.deploy.ExpandDeployGenerator<HostController>
          extended by com.caucho.server.host.HostExpandDeployGenerator
All Implemented Interfaces:
DeployUpdateListener, RepositoryTagListener, EnvironmentListener, AlarmListener, Dependency, java.util.EventListener

public class HostExpandDeployGenerator
extends ExpandDeployGenerator<HostController>

The generator for the host deploy


Constructor Summary
HostExpandDeployGenerator(java.lang.String id, DeployContainer<HostController> container, HostContainer hostContainer)
          Creates the new host deploy.
 
Method Summary
 void addHostDefault(HostConfig config)
          Adds a default.
 HostController createController(ExpandVersion version)
          Returns the current array of application entries.
protected  void destroyImpl()
          Derived class implentation of destroy.
 boolean equals(java.lang.Object o)
          Tests for equality.
 HostContainer getContainer()
          Gets the host container.
 java.lang.String getHostName()
          Gets the host name.
protected  java.util.logging.Logger getLog()
          Returns the log.
protected  void initImpl()
          Configuration checks on init.
 java.lang.String keyToName(java.lang.String key)
           
protected  void mergeController(HostController controller, java.lang.String key)
          Adds configuration to the current controller
 java.lang.String nameToKey(java.lang.String name)
           
 void setHostName(RawString name)
          Sets the host name.
 void setLazyInit(boolean lazyInit)
          Sets true for a lazy-init.
protected  void startImpl()
          Starts the deploy.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.env.deploy.ExpandDeployGenerator
addExpandCleanupFileset, addExpandPreserveFileset, addRequireFile, afterUpdate, deploy, fillDeployedNames, generateController, getArchiveDirectory, getArchivePath, getConfigException, getDependencyCheckInterval, getExpandDirectory, getExpandPath, getExpandPrefix, getExpandSuffix, getExtension, getId, getNames, getPath, getPrimaryVersion, getRepository, handleAlarm, isDeployedKey, isModified, isVersioning, logModified, onTagChange, onUpdate, setArchiveDirectory, setDependencyCheckInterval, setEntryNamePrefix, setExpandDirectory, setExpandPath, setExpandPrefix, setExpandSuffix, setExtension, setMultiversionRouting, setPath, setVersioning, start, stop, stopImpl, undeploy, update, updateIfModified, updateIfModifiedNow
 
Methods inherited from class com.caucho.env.deploy.DeployGenerator
destroy, environmentBind, environmentConfigure, environmentStart, environmentStop, getConfigException, getDeployContainer, getParentClassLoader, getRedeployMode, getStartupMode, getState, init, isActive, isDestroyed, setRedeployMode, setStartupMode, start, stop
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostExpandDeployGenerator

public HostExpandDeployGenerator(java.lang.String id,
                                 DeployContainer<HostController> container,
                                 HostContainer hostContainer)
Creates the new host deploy.

Method Detail

getContainer

public HostContainer getContainer()
Gets the host container.


setHostName

public void setHostName(RawString name)
Sets the host name.


getHostName

public java.lang.String getHostName()
Gets the host name.


setLazyInit

public void setLazyInit(boolean lazyInit)
                 throws ConfigException
Sets true for a lazy-init.

Throws:
ConfigException

addHostDefault

public void addHostDefault(HostConfig config)
Adds a default.


initImpl

protected void initImpl()
                 throws ConfigException
Description copied from class: ExpandDeployGenerator
Configuration checks on init.

Overrides:
initImpl in class ExpandDeployGenerator<HostController>
Throws:
ConfigException

startImpl

protected void startImpl()
                  throws ConfigException
Description copied from class: ExpandDeployGenerator
Starts the deploy.

Overrides:
startImpl in class ExpandDeployGenerator<HostController>
Throws:
ConfigException

getLog

protected java.util.logging.Logger getLog()
Returns the log.

Overrides:
getLog in class ExpandDeployGenerator<HostController>

createController

public HostController createController(ExpandVersion version)
Returns the current array of application entries.

Specified by:
createController in class ExpandDeployGenerator<HostController>

mergeController

protected void mergeController(HostController controller,
                               java.lang.String key)
Adds configuration to the current controller

Overrides:
mergeController in class DeployGenerator<HostController>

nameToKey

public java.lang.String nameToKey(java.lang.String name)
Overrides:
nameToKey in class ExpandDeployGenerator<HostController>

keyToName

public java.lang.String keyToName(java.lang.String key)
Overrides:
keyToName in class ExpandDeployGenerator<HostController>

destroyImpl

protected void destroyImpl()
Description copied from class: DeployGenerator
Derived class implentation of destroy.

Overrides:
destroyImpl in class DeployGenerator<HostController>

equals

public boolean equals(java.lang.Object o)
Description copied from class: ExpandDeployGenerator
Tests for equality.

Overrides:
equals in class ExpandDeployGenerator<HostController>

toString

public java.lang.String toString()
Overrides:
toString in class ExpandDeployGenerator<HostController>