org.jboss.osgi.spi.service
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

Nested Class Summary
static interface DeploymentScannerService.ScanListener
          A ScanListener can be registered with the DeploymentScannerService to monitor the progress of deployed bundles
 
Field Summary
static java.lang.String PROPERTY_SCAN_INTERVAL
          The property to defines the scan interval: org.jboss.osgi.hotdeploy.interval
static java.lang.String PROPERTY_SCAN_LOCATION
          The property that names the scan location: org.jboss.osgi.hotdeploy.scandir
 
Method Summary
 void addScanListener(DeploymentScannerService.ScanListener listener)
          Add a scan listener to this service
 BundleInfo[] getBundles()
          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
 java.net.URL getScanLocation()
          Get the scan location URL.
 void removeScanListener(DeploymentScannerService.ScanListener listener)
          Remove the scan listener from this service
 void scan()
          Run a directory scan
 

Field Detail

PROPERTY_SCAN_LOCATION

static final java.lang.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 java.lang.String PROPERTY_SCAN_INTERVAL
The property to defines the scan interval: org.jboss.osgi.hotdeploy.interval

See Also:
Constant Field Values
Method Detail

getScanLocation

java.net.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


getBundles

BundleInfo[] getBundles()
Returns the array of bundles currently known to the deployemtn scanner.


addScanListener

void addScanListener(DeploymentScannerService.ScanListener listener)
Add a scan listener to this service


removeScanListener

void removeScanListener(DeploymentScannerService.ScanListener listener)
Remove the scan listener from this service



Copyright © 2009. All Rights Reserved.