public abstract class EnvironmentDeployController<I extends EnvironmentDeployInstance,C extends DeployConfig> extends ExpandDeployController<I> implements EnvironmentListener
APPLICATION_HASH_PATH_lifecycle, REDEPLOY_CHECK_INTERVAL| Constructor and Description |
|---|
EnvironmentDeployController(java.lang.String id,
Path rootDirectory) |
EnvironmentDeployController(java.lang.String id,
Path rootDirectory,
C config,
DeployContainerApi<?> container) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigDefault(C config)
Adds a default config.
|
protected void |
configureInstance(I instance)
Configures the instance.
|
protected void |
configureInstanceVariables(I instance) |
boolean |
destroy()
Returns the application object.
|
void |
environmentBind(EnvironmentClassLoader loader)
Handles bind phase.
|
void |
environmentConfigure(EnvironmentClassLoader loader)
Handles config phase.
|
void |
environmentStart(EnvironmentClassLoader loader)
Handles the case where the environment is starting (after init).
|
void |
environmentStop(EnvironmentClassLoader loader)
Handles the case where the environment is stopping
|
protected void |
extendJMXContext(java.util.Map<java.lang.String,java.lang.String> context) |
protected void |
fillInitList(java.util.ArrayList<DeployConfig> initList) |
Path |
getArchivePath()
Gets the archive path.
|
java.lang.String[] |
getClassPath() |
C |
getConfig()
Gets the primary configuration
|
java.lang.Throwable |
getConfigException()
Returns the configure exception.
|
protected DeployControllerAdmin<?> |
getDeployAdmin() |
java.lang.String |
getErrorMessage()
Returns the error message
|
java.lang.Object |
getMBean()
Returns the mbean.
|
protected java.lang.String |
getMBeanId() |
protected java.lang.String |
getMBeanTypeName() |
javax.management.ObjectName |
getObjectName()
Returns the object name.
|
DeployConfig |
getPrologue()
Gets the prologue configuration
|
java.util.Map<java.lang.String,java.lang.String> |
getRepositoryMetaData() |
java.util.HashMap<java.lang.String,java.lang.Object> |
getVariableMap()
Returns the path variable map.
|
protected void |
initEnd()
Initialize the controller.
|
boolean |
isNameMatch(java.lang.String url)
Returns true if the entry matches.
|
void |
merge(DeployControllerApi<I> oldControllerV)
Merges with the old controller.
|
void |
setConfig(C config)
Sets the primary configuration.
|
void |
setConfigException(java.lang.Throwable e)
Sets a parent config exception (e.g.
|
void |
setPrologue(DeployConfig prologue)
Sets the prologue configuration
|
java.lang.String |
toString()
Returns a printable view.
|
addDependencies, addExpandCleanupFileSet, addExpandPreserveFileset, addManifestClassPath, addParentExpandCleanupFileSet, controllerLogModified, deploy, deployImpl, equals, getAutoDeployStage, getAutoDeployTag, getManifest, getManifestAttributes, getRepository, getRootDirectory, getVersionDependency, hashCode, isAllowRepository, isControllerModified, isControllerModifiedNow, onActive, onDestroy, onError, onRemove, onStop, onTagChange, postConfigureInstance, postExtract, preConfigureInstance, removeExpandDirectory, removeExpandDirectory, removeExpandDirectory, removeExpandFile, setAllowRepository, setArchivePath, setDependencyCheckInterval, setRootDirectory, setVersionDependency, undeploy, undeployImpladdLifecycleListener, alarm, close, createDeployInstance, destroyInstance, getActiveDeployInstance, getActiveWaitTime, getControllerType, getDeployInstance, getDeployInstanceImpl, getId, getIdKey, getIdStage, getIdType, getLog, getParentClassLoader, getRedeployCheckInterval, getRedeployMode, getStartTime, getStartupMode, getStartupPriority, getState, init, initBegin, instantiateDeployInstance, isIdleTimeout, isModified, isModifiedNow, logModified, mergeRedeployCheckInterval, mergeRedeployMode, onStartComplete, remove, request, restart, setActiveWaitTimeMillis, setControllerType, setRedeployCheckInterval, setRedeployMode, setStartupMode, setStartupPriority, start, startImpl, startOnInit, stop, stopImpl, stopLazyImpl, subrequest, toRestart, toStart, toStop, updatepublic EnvironmentDeployController(java.lang.String id,
Path rootDirectory)
public EnvironmentDeployController(java.lang.String id,
Path rootDirectory,
C config,
DeployContainerApi<?> container)
public void setConfig(C config)
public C getConfig()
public DeployConfig getPrologue()
public void setPrologue(DeployConfig prologue)
public java.lang.String getErrorMessage()
public java.lang.Throwable getConfigException()
getConfigException in class ExpandDeployController<I extends EnvironmentDeployInstance>public void addConfigDefault(C config)
public java.util.HashMap<java.lang.String,java.lang.Object> getVariableMap()
public java.lang.Object getMBean()
public javax.management.ObjectName getObjectName()
public void setConfigException(java.lang.Throwable e)
protected void initEnd()
initEnd in class ExpandDeployController<I extends EnvironmentDeployInstance>public boolean isNameMatch(java.lang.String url)
isNameMatch in interface DeployControllerApi<I extends EnvironmentDeployInstance>isNameMatch in class DeployController<I extends EnvironmentDeployInstance>protected java.lang.String getMBeanTypeName()
protected java.lang.String getMBeanId()
public void merge(DeployControllerApi<I> oldControllerV)
merge in interface DeployControllerApi<I extends EnvironmentDeployInstance>merge in class ExpandDeployController<I extends EnvironmentDeployInstance>protected DeployControllerAdmin<?> getDeployAdmin()
public boolean destroy()
destroy in class DeployController<I extends EnvironmentDeployInstance>protected void configureInstance(I instance) throws java.lang.Exception
configureInstance in class ExpandDeployController<I extends EnvironmentDeployInstance>java.lang.Exceptionprotected void extendJMXContext(java.util.Map<java.lang.String,java.lang.String> context)
protected void fillInitList(java.util.ArrayList<DeployConfig> initList)
protected void configureInstanceVariables(I instance)
public java.util.Map<java.lang.String,java.lang.String> getRepositoryMetaData()
public java.lang.String[] getClassPath()
public Path getArchivePath()
ExpandDeployControllergetArchivePath in class ExpandDeployController<I extends EnvironmentDeployInstance>public void environmentConfigure(EnvironmentClassLoader loader)
environmentConfigure in interface EnvironmentListenerpublic void environmentBind(EnvironmentClassLoader loader)
environmentBind in interface EnvironmentListenerpublic void environmentStart(EnvironmentClassLoader loader)
environmentStart in interface EnvironmentListenerpublic void environmentStop(EnvironmentClassLoader loader)
environmentStop in interface EnvironmentListenerpublic java.lang.String toString()
toString in class DeployController<I extends EnvironmentDeployInstance>