Bundle: dirdeployer
Version 2.0.0

Directory deployer

Simple bundle which scans file system directories and installs/uninstalls bundles found or removed from these directories.

This is a quite useful tool for handle bundle deployment without using any console. Just copy the bundles that should be started to the deploy directory, and the directory deployer will find and start them. When the files are removed, they are uninstalled.

Deploy method

The procedure for scanning and deploying is as follows:

  1. Check if any new files have appeared or if any already deployed files has been replaced with newer files.
  2. New files are installed into the framework.
    If they have a bundle activator, they are marked for delayed start.
    Files newer than a previously deployed bundle are updated.
  3. Files that have the same location as an already installed bundle is not installed again, instead, the installed bundle is re-used in the created DeployedFile instance.
  4. Files marked for delayed start is started.
  5. Sleep a while
  6. Repeat from 1.

Configuration

See metatype.xml for specification using CM. The same properties as defined by CM are also read as default values from the system properties. Thus, the bundle can be both configured by CM and using system properties.

Quick guide to the metatype.xml format:

For details on the metatype format, see http://www.knopflerfish.org/XMLMetatype/

You can set the deployment directory in metatype.xml in the bundle's resource directory (defaults to ./load). The path is relative to from where the framework is started (given that the path is relative).

Jar docs

dirdeployer_api-2.0.0
dirdeployer_all-2.0.0

Exported Packages

org.knopflerfish.service.dirdeployer