|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkortsoft.kmx.deployer.KmxDaemon
public class KmxDaemon
KmxDameon responsability is to check modified or new components to be deployed.
It must be assigned the directories to check (in the future it could check
other sources) with the method setWatchDirectories(List.
Takes the modified or new components and selects a Deployer taken within:
FilenameFilter)
These Extra deployers must be assigned with the method
addExtraDeployer(Class extends Deployer>,FilenameFilter).
| Constructor Summary | |
|---|---|
KmxDaemon()
|
|
| Method Summary | |
|---|---|
void |
addExtraDeployer(java.lang.Class<? extends Deployer> deployerType,
java.io.FilenameFilter filter)
|
protected java.util.List<java.io.File> |
checkDirectoryChanges(java.io.File directory,
java.util.Map<java.io.File,java.lang.Long> lastLoadings)
Check modifications in a directory. |
java.lang.ClassLoader |
getBaseClassLoader()
|
java.util.List<java.io.File> |
getWatchDirectories()
|
protected Deployer |
loadDeployer(java.io.File element)
Loads an instance of a Deployer suitable for the specified file. |
void |
runDaemon()
Executes one iteration of loading. |
void |
setBaseClassLoader(java.lang.ClassLoader baseClassLoader)
|
void |
setWatchDirectories(java.util.List<java.io.File> watchDirectories)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KmxDaemon()
| Method Detail |
|---|
protected java.util.List<java.io.File> checkDirectoryChanges(java.io.File directory,
java.util.Map<java.io.File,java.lang.Long> lastLoadings)
directory - lastLoadings -
protected Deployer loadDeployer(java.io.File element)
throws DeployerCreationException
jarFile -
DeployerCreationException
public void addExtraDeployer(java.lang.Class<? extends Deployer> deployerType,
java.io.FilenameFilter filter)
addExtraDeployer in interface KmxDaemonInterfaceaddExtraDeployer in interface KmxDaemonMBeanname - filter - public void setWatchDirectories(java.util.List<java.io.File> watchDirectories)
setWatchDirectories in interface KmxDaemonMBeanwatchDirectories - public void runDaemon()
runDaemon in interface KmxDaemonMBeanpublic java.util.List<java.io.File> getWatchDirectories()
getWatchDirectories in interface KmxDaemonMBeanpublic java.lang.ClassLoader getBaseClassLoader()
getBaseClassLoader in interface KmxDaemonMBeanpublic void setBaseClassLoader(java.lang.ClassLoader baseClassLoader)
setBaseClassLoader in interface KmxDaemonInterfacebaseClassLoader - The baseClassLoader to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||