|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.env.deploy.DeployController<I>
com.caucho.env.deploy.ExpandDeployController<I>
public abstract class ExpandDeployController<I extends DeployInstance>
A deployment entry that expands from an archive (Jar/Zip) file.
| Field Summary | |
|---|---|
static java.lang.String |
APPLICATION_HASH_PATH
|
| Fields inherited from class com.caucho.env.deploy.DeployController |
|---|
_lifecycle, REDEPLOY_CHECK_INTERVAL |
| Constructor Summary | |
|---|---|
protected |
ExpandDeployController(java.lang.String id)
|
protected |
ExpandDeployController(java.lang.String id,
java.lang.ClassLoader loader,
Path rootDirectory,
DeployContainerApi<?> container)
|
| Method Summary | |
|---|---|
protected void |
addDependencies()
|
void |
addExpandCleanupFileSet(FileSetType fileSet)
Sets the archive auto-remove file set. |
void |
addExpandPreserveFileset(FileSetType fileSet)
Sets the archive auto-remove file set. |
protected void |
addManifestClassPath()
Adds any class path from the manifest. |
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 |
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 |
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(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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String APPLICATION_HASH_PATH
| Constructor Detail |
|---|
protected ExpandDeployController(java.lang.String id)
protected ExpandDeployController(java.lang.String id,
java.lang.ClassLoader loader,
Path rootDirectory,
DeployContainerApi<?> container)
| Method Detail |
|---|
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.util.Map<java.lang.String,java.lang.String> getManifestAttributes()
public void addExpandCleanupFileSet(FileSetType fileSet)
public void addExpandPreserveFileset(FileSetType fileSet)
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()
protected void preConfigureInstance(I deployInstance)
throws java.lang.Exception
DeployController
preConfigureInstance in class DeployController<I extends DeployInstance>java.lang.Exception
protected void configureInstance(I deployInstance)
throws java.lang.Exception
DeployController
configureInstance in class DeployController<I extends DeployInstance>java.lang.Exception
protected void postConfigureInstance(I deployInstance)
throws java.lang.Exception
DeployController
postConfigureInstance in class DeployController<I extends DeployInstance>java.lang.Exceptionpublic void onTagChange(java.lang.String tag)
onTagChange in interface RepositoryTagListener
protected void postExtract(boolean isExtract)
throws java.io.IOException
java.io.IOException
protected 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 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(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 removal
protected 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>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||