|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.deploy.DeployGenerator<E>
com.caucho.server.deploy.ExpandDeployGenerator<E>
public abstract class ExpandDeployGenerator<E extends ExpandDeployController>
The generator for the deploy
| Constructor Summary | |
|---|---|
ExpandDeployGenerator(DeployContainer<E> container,
Path containerRootDirectory)
Creates the deploy. |
|
| Method Summary | |
|---|---|
void |
addRequireFile(java.lang.String file)
Adds a required file in the expansion. |
protected java.lang.String |
archiveNameToEntryName(java.lang.String archiveName)
Converts the entry name to the archive name, returns null if the entry name is not valid. |
protected abstract E |
createController(java.lang.String name)
Creates a new entry. |
protected java.lang.String |
entryNameToArchiveName(java.lang.String entryName)
Converts the archive name to the entry name, returns null if the archive name is not valid. |
boolean |
equals(java.lang.Object o)
Tests for equality. |
protected void |
fillDeployedKeys(java.util.Set<java.lang.String> keys)
Returns the deployed keys. |
E |
generateController(java.lang.String name)
Finds the matching entry. |
Path |
getArchiveDirectory()
Gets the war expand directory. |
Path |
getArchivePath(java.lang.String name)
Returns the location for deploying an archive with the specified name. |
java.lang.Throwable |
getConfigException(java.lang.String name)
Returns an exception for the named archive or null if there is no exception |
long |
getDependencyCheckInterval()
|
Path |
getExpandDirectory()
Gets the war expand directory. |
protected java.lang.String |
getExpandName(java.lang.String name)
Returns the combination of prefix, name, and suffix used for expanded archives. |
Path |
getExpandPath(java.lang.String name)
Returns the location of an expanded archive, or null if no archive with the passed name is deployed. |
java.lang.String |
getExpandPrefix()
Gets the expand prefix. |
java.lang.String |
getExpandSuffix()
Gets the expand suffix. |
java.lang.String |
getExtension()
Returns the extension. |
GitRepository |
getGit()
The Git repository |
java.lang.String |
getGitPath()
The Git ref directory |
Path |
getGitRefPath(java.lang.String name)
|
protected java.util.logging.Logger |
getLog()
Returns the log. |
java.lang.String[] |
getNames()
|
Path |
getPath()
Gets the default path. |
java.util.ArrayList<java.lang.String> |
getVersionNames(java.lang.String name)
|
void |
handleAlarm(Alarm alarm)
Checks for updates. |
protected void |
initImpl()
Configuration checks on init. |
protected boolean |
isDeployedKey(java.lang.String key)
Return true for a matching key. |
boolean |
isModified()
Returns true if the deployment has modified. |
protected boolean |
isValidDirectory(Path rootDirectory,
java.lang.String pathName)
|
boolean |
isVersioning()
Sets true to enable versioning |
boolean |
logModified(java.util.logging.Logger log)
Log the reason for modification |
protected java.lang.String |
pathNameToEntryName(java.lang.String name)
Converts the expand-path name to the entry name, returns null if the path name is not valid. |
void |
request()
Redeploys if modified. |
void |
setArchiveDirectory(Path path)
Sets the war expand dir to check for new archive files. |
void |
setDependencyCheckInterval(Period period)
Sets the dependency check interval. |
void |
setExpandCleanupFileset(FileSetType fileSet)
Sets the expand remove file set. |
void |
setExpandDirectory(Path path)
Sets the war expand dir to check for new applications. |
void |
setExpandPath(Path path)
Sets the war expand dir to check for new applications. |
void |
setExpandPrefix(java.lang.String prefix)
Sets the expand prefix to check for new applications. |
void |
setExpandSuffix(java.lang.String suffix)
Sets the expand suffix to check for new applications. |
void |
setExtension(java.lang.String extension)
Sets the extension. |
void |
setGit(GitRepository git)
The Git repository |
void |
setGitPath(java.lang.String gitPath)
The Git ref directory |
void |
setPath(Path path)
Sets the deploy directory. |
void |
setVersioning(boolean isVersioning)
Sets true to enable versioning |
boolean |
start(java.lang.String name)
Start the archive. |
protected void |
startImpl()
Starts the deploy. |
boolean |
stop(java.lang.String name)
Stop the archive. |
protected void |
stopImpl()
Stops the deploy. |
java.lang.String |
toString()
|
boolean |
undeploy(java.lang.String name)
Undeploy the archive. |
void |
update()
Forces an update. |
| Methods inherited from class com.caucho.server.deploy.DeployGenerator |
|---|
destroy, destroyImpl, environmentBind, environmentConfigure, environmentStart, environmentStop, getConfigException, getDeployContainer, getParentClassLoader, getRedeployMode, getStartupMode, getState, init, isActive, isDestroyed, mergeController, setRedeployMode, setStartupMode, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExpandDeployGenerator(DeployContainer<E> container,
Path containerRootDirectory)
| Method Detail |
|---|
public void setArchiveDirectory(Path path)
public Path getArchiveDirectory()
public Path getArchivePath(java.lang.String name)
name - a name, without an extensionpublic void setExpandPath(Path path)
public void setExpandDirectory(Path path)
public Path getExpandDirectory()
public Path getExpandPath(java.lang.String name)
name - a name, without an extensionprotected java.lang.String getExpandName(java.lang.String name)
public void setDependencyCheckInterval(Period period)
public long getDependencyCheckInterval()
public void setExpandCleanupFileset(FileSetType fileSet)
public void setExtension(java.lang.String extension)
throws ConfigException
ConfigExceptionpublic java.lang.String getExtension()
public void setExpandPrefix(java.lang.String prefix)
throws ConfigException
ConfigExceptionpublic java.lang.String getExpandPrefix()
public void setExpandSuffix(java.lang.String suffix)
throws ConfigException
ConfigExceptionpublic java.lang.String getExpandSuffix()
public void setGit(GitRepository git)
public GitRepository getGit()
public void setGitPath(java.lang.String gitPath)
public java.lang.String getGitPath()
public Path getPath()
public void setPath(Path path)
public void addRequireFile(java.lang.String file)
throws ConfigException
ConfigExceptionpublic void setVersioning(boolean isVersioning)
public boolean isVersioning()
protected java.util.logging.Logger getLog()
getLog in class DeployGenerator<E extends ExpandDeployController>public boolean isModified()
isModified in interface DependencyisModified in class DeployGenerator<E extends ExpandDeployController>public boolean logModified(java.util.logging.Logger log)
logModified in interface DependencylogModified in class DeployGenerator<E extends ExpandDeployController>
protected void initImpl()
throws ConfigException
initImpl in class DeployGenerator<E extends ExpandDeployController>ConfigExceptionprotected void startImpl()
startImpl in class DeployGenerator<E extends ExpandDeployController>protected void fillDeployedKeys(java.util.Set<java.lang.String> keys)
fillDeployedKeys in class DeployGenerator<E extends ExpandDeployController>protected boolean isDeployedKey(java.lang.String key)
public void update()
update in class DeployGenerator<E extends ExpandDeployController>public void request()
request in class DeployGenerator<E extends ExpandDeployController>public E generateController(java.lang.String name)
generateController in class DeployGenerator<E extends ExpandDeployController>public Path getGitRefPath(java.lang.String name)
public java.util.ArrayList<java.lang.String> getVersionNames(java.lang.String name)
protected boolean isValidDirectory(Path rootDirectory,
java.lang.String pathName)
protected java.lang.String pathNameToEntryName(java.lang.String name)
protected java.lang.String entryNameToArchiveName(java.lang.String entryName)
protected java.lang.String archiveNameToEntryName(java.lang.String archiveName)
protected abstract E createController(java.lang.String name)
public java.lang.String[] getNames()
public boolean start(java.lang.String name)
public java.lang.Throwable getConfigException(java.lang.String name)
public boolean stop(java.lang.String name)
public boolean undeploy(java.lang.String name)
public void handleAlarm(Alarm alarm)
handleAlarm in interface AlarmListenerprotected void stopImpl()
stopImpl in class DeployGenerator<E extends ExpandDeployController>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class DeployGenerator<E extends ExpandDeployController>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||