|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl
public class AutoLoaderServiceImpl
This class is used to load automatically components which are placed in the "autoLoad" directory. It scans the directory periodically and check if new components are presents. The @ link InstallationServiceMBean} is called for each of those components. The whole process of installation is done (install + start) After being threat, the archives of the components are removed. A file "fileName.success" will be created if success A file "fileName.failed" will be created otherwise, containing the related exception
| Field Summary | |
|---|---|
protected DeploymentService |
deploymentService
|
protected InstallationService |
installationService
|
protected JMXService |
jmxService
|
protected org.ow2.petals.util.LoggingUtil |
log
|
protected SystemStateService |
systemStateService
|
| Constructor Summary | |
|---|---|
AutoLoaderServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
install(java.util.List<java.io.File> archiveFiles)
Install the given list of files. |
protected void |
resolveJBIArtefactDependencies(java.util.List<java.io.File> archivesToUninstall)
For each JBI artefact to uninstall, search the dependent artefacts and add them to the List if they are not already set. |
protected void |
start()
Initialize the autoloader. |
protected void |
stop()
Stop the autoload of the components. |
void |
uninstall(java.util.List<java.io.File> archiveFiles)
Uninstall the given list of files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DeploymentService deploymentService
protected InstallationService installationService
protected JMXService jmxService
protected org.ow2.petals.util.LoggingUtil log
protected SystemStateService systemStateService
| Constructor Detail |
|---|
public AutoLoaderServiceImpl()
| Method Detail |
|---|
public void install(java.util.List<java.io.File> archiveFiles)
AutoLoaderService
install in interface AutoLoaderServicearchiveFiles - the list of JBI archivespublic void uninstall(java.util.List<java.io.File> archiveFiles)
AutoLoaderService
uninstall in interface AutoLoaderServicearchiveFiles - the list of JBI archivesprotected void resolveJBIArtefactDependencies(java.util.List<java.io.File> archivesToUninstall)
filesToUninstall - The initial collection of files to uninstall
protected void start()
throws java.io.IOException
java.io.IOExceptionprotected void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||