org.jboss.osgi.hotdeploy
Interface DeploymentScannerService


public interface DeploymentScannerService

A service that scans a directory location for new/removed bundles.

Since:
27-May-2009
Author:
thomas.diesler@jboss.com

Field Summary
static String PROPERTY_SCAN_INTERVAL
          The property to defines the scan interval: org.jboss.osgi.hotdeploy.interval
static String PROPERTY_SCAN_LOCATION
          The property that names the scan location: org.jboss.osgi.hotdeploy.scandir
 
Method Summary
 Deployment[] getBundleDeployments()
          Returns the array of bundles currently known to the deployemtn scanner.
 long getLastChange()
          The timestamp of the last change
 long getScanCount()
          The number of scans since the service started
 long getScanInterval()
          The number of milliseconds between scans Defaults to 2000ms
 URL getScanLocation()
          Get the scan location URL.
 void scan()
          Run a directory scan
 

Field Detail

PROPERTY_SCAN_LOCATION

static final String PROPERTY_SCAN_LOCATION
The property that names the scan location: org.jboss.osgi.hotdeploy.scandir

See Also:
Constant Field Values

PROPERTY_SCAN_INTERVAL

static final String PROPERTY_SCAN_INTERVAL
The property to defines the scan interval: org.jboss.osgi.hotdeploy.interval

See Also:
Constant Field Values
Method Detail

getScanLocation

URL getScanLocation()
Get the scan location URL. This is can be specified by setting the PROPERTY_SCAN_LOCATION property.


getScanCount

long getScanCount()
The number of scans since the service started


getScanInterval

long getScanInterval()
The number of milliseconds between scans Defaults to 2000ms


getLastChange

long getLastChange()
The timestamp of the last change


scan

void scan()
Run a directory scan


getBundleDeployments

Deployment[] getBundleDeployments()
Returns the array of bundles currently known to the deployemtn scanner.



Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.