public abstract class ExpandDeployController<I extends DeployInstance> extends DeployController<I> implements RepositoryTagListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APPLICATION_HASH_PATH |
_lifecycle, REDEPLOY_CHECK_INTERVAL| Modifier | Constructor and Description |
|---|---|
protected |
ExpandDeployController(java.lang.String id) |
protected |
ExpandDeployController(java.lang.String id,
java.lang.ClassLoader loader,
Path rootDirectory,
DeployContainerApi<?> container) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDependencies() |
void |
addExpandCleanupFileSet(PathPatternType include)
Sets the archive auto-remove file set.
|
void |
addExpandPreserveFileset(PathPatternType exclude)
Sets the archive auto-remove file set.
|
protected void |
addManifestClassPath()
Adds any class path from the manifest.
|
void |
addParentExpandCleanupFileSet(FileSetType fileSet) |
protected void |
configureInstance(I deployInstance)
Configuration of the instance
|
protected boolean |
controllerLogModified(java.util.logging.Logger log) |
void |
deploy()
Deploys the controller
|
protected void |
deployImpl()
Deploys the controller
|
boolean |
equals(java.lang.Object o)
Returns equality.
|
Path |
getArchivePath()
Gets the archive path.
|
java.lang.String |
getAutoDeployStage() |
java.lang.String |
getAutoDeployTag() |
java.lang.Throwable |
getConfigException() |
java.util.jar.Manifest |
getManifest()
Returns the manifest.
|
java.util.Map<java.lang.String,java.lang.String> |
getManifestAttributes()
Returns the manifest as an attribute map
|
Repository |
getRepository()
Returns the repository
|
Path |
getRootDirectory()
Gets the root directory
|
java.lang.String |
getRootHash() |
Dependency |
getVersionDependency() |
int |
hashCode()
Returns the hash code.
|
protected void |
initEnd()
Final calls for init.
|
boolean |
isAllowRepository() |
protected boolean |
isControllerModified() |
protected boolean |
isControllerModifiedNow() |
void |
merge(DeployControllerApi<I> newControllerV)
Merges with the new controller.
|
protected void |
onActive() |
protected void |
onDestroy() |
protected void |
onError(java.lang.Throwable e) |
protected void |
onRemove() |
protected void |
onStop() |
void |
onTagChange(java.lang.String tag) |
protected void |
postConfigureInstance(I deployInstance)
After instance configuration
|
protected void |
postExtract(boolean isExtract)
Called after the application is extracted from the repository.
|
protected void |
preConfigureInstance(I deployInstance)
Before instance configuration
|
protected void |
removeExpandDirectory() |
protected void |
removeExpandDirectory(Path path)
Recursively remove all files in a directory.
|
protected void |
removeExpandDirectory(Path path,
java.lang.String prefix)
Recursively remove all files in a directory.
|
protected void |
removeExpandFile(Path path,
java.lang.String prefix)
Removes an expanded file.
|
void |
setAllowRepository(boolean isAllowRepository) |
void |
setArchivePath(Path path)
Sets the archive path.
|
void |
setDependencyCheckInterval(long period) |
protected void |
setRootDirectory(Path rootDirectory)
Sets the root directory
|
void |
setVersionDependency(Dependency versionDependency) |
void |
undeploy()
Deploys the controller
|
protected void |
undeployImpl()
Deploys the controller
|
addLifecycleListener, alarm, close, createDeployInstance, destroy, destroyInstance, getActiveDeployInstance, getActiveWaitTime, getControllerType, getDeployInstance, getDeployInstanceImpl, getId, getIdKey, getIdStage, getIdType, getLog, getParentClassLoader, getRedeployCheckInterval, getRedeployMode, getStartTime, getStartupMode, getStartupPriority, getState, init, initBegin, instantiateDeployInstance, isIdleTimeout, isModified, isModifiedNow, isNameMatch, logModified, mergeRedeployCheckInterval, mergeRedeployMode, onStartComplete, remove, request, restart, setActiveWaitTimeMillis, setControllerType, setRedeployCheckInterval, setRedeployMode, setStartupMode, setStartupPriority, start, startImpl, startOnInit, stop, stopImpl, stopLazyImpl, subrequest, toRestart, toStart, toStop, toString, updatepublic static final java.lang.String APPLICATION_HASH_PATH
protected ExpandDeployController(java.lang.String id)
protected ExpandDeployController(java.lang.String id,
java.lang.ClassLoader loader,
Path rootDirectory,
DeployContainerApi<?> container)
public Path getRootDirectory()
protected void setRootDirectory(Path rootDirectory)
public Path getArchivePath()
public void setArchivePath(Path path)
public void setAllowRepository(boolean isAllowRepository)
public boolean isAllowRepository()
public Repository getRepository()
public java.util.jar.Manifest getManifest()
public java.lang.String getRootHash()
public java.util.Map<java.lang.String,java.lang.String> getManifestAttributes()
public void addParentExpandCleanupFileSet(FileSetType fileSet)
@Configurable public void addExpandCleanupFileSet(PathPatternType include)
@Configurable public void addExpandPreserveFileset(PathPatternType exclude)
public java.lang.String getAutoDeployStage()
public void setDependencyCheckInterval(long period)
protected void initEnd()
initEnd in class DeployController<I extends DeployInstance>public void merge(DeployControllerApi<I> newControllerV)
merge in interface DeployControllerApi<I extends DeployInstance>merge in class DeployController<I extends DeployInstance>public void deploy()
protected void deployImpl()
public void undeploy()
protected void undeployImpl()
protected void preConfigureInstance(I deployInstance) throws java.lang.Exception
DeployControllerpreConfigureInstance in class DeployController<I extends DeployInstance>java.lang.Exceptionprotected void configureInstance(I deployInstance) throws java.lang.Exception
DeployControllerconfigureInstance in class DeployController<I extends DeployInstance>java.lang.Exceptionprotected void postConfigureInstance(I deployInstance) throws java.lang.Exception
DeployControllerpostConfigureInstance in class DeployController<I extends DeployInstance>java.lang.Exceptionpublic void onTagChange(java.lang.String tag)
onTagChange in interface RepositoryTagListenerprotected void postExtract(boolean isExtract)
throws java.io.IOException
java.io.IOExceptionprotected void addManifestClassPath()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getAutoDeployTag()
protected boolean isControllerModified()
isControllerModified in class DeployController<I extends DeployInstance>protected boolean isControllerModifiedNow()
isControllerModifiedNow in class DeployController<I extends DeployInstance>protected final boolean controllerLogModified(java.util.logging.Logger log)
controllerLogModified in class DeployController<I extends DeployInstance>protected void addDependencies()
public Dependency getVersionDependency()
public void setVersionDependency(Dependency versionDependency)
protected void removeExpandDirectory()
protected void removeExpandDirectory(Path path)
path - root directory to start removalpublic java.lang.Throwable getConfigException()
protected void removeExpandDirectory(Path path, java.lang.String prefix)
dir - root directory to start removalprotected void removeExpandFile(Path path, java.lang.String prefix) throws java.io.IOException
java.io.IOExceptionprotected void onActive()
onActive in class DeployController<I extends DeployInstance>protected void onError(java.lang.Throwable e)
onError in class DeployController<I extends DeployInstance>protected void onStop()
onStop in class DeployController<I extends DeployInstance>protected void onDestroy()
onDestroy in class DeployController<I extends DeployInstance>protected void onRemove()
onRemove in class DeployController<I extends DeployInstance>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object