public class ContributionDirectoryScanner
extends java.lang.Object
implements java.lang.Runnable, org.fabric3.spi.runtime.event.Fabric3EventListener
FileSystemResource, which provides a consistent
view across various types such as jars and exploded directories. Unknown file types are ignored. At the specified interval, removed files are determined by
comparing the current directory contents with the contents from the previous pass. Changes or additions are also determined by comparing the current
directory state with that of the previous pass. Detected changes and additions are cached for the following interval. Detected changes and additions from the
previous interval are then compared using a timestamp to see if they have changed again. If so, they remain cached. If they have not changed, they are
processed, contributed via the ContributionService, and deployed in the domain.| Constructor and Description |
|---|
ContributionDirectoryScanner(org.fabric3.api.host.contribution.ContributionService contributionService,
org.fabric3.api.host.domain.Domain domain,
FileSystemResourceFactoryRegistry registry,
org.fabric3.spi.runtime.event.EventService eventService,
org.fabric3.api.host.runtime.HostInfo hostInfo,
ScannerMonitor monitor) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
init() |
void |
onEvent(org.fabric3.spi.runtime.event.Fabric3Event event) |
void |
run() |
void |
setDelay(long delay) |
void |
setProduction(boolean production) |
public ContributionDirectoryScanner(org.fabric3.api.host.contribution.ContributionService contributionService,
org.fabric3.api.host.domain.Domain domain,
FileSystemResourceFactoryRegistry registry,
org.fabric3.spi.runtime.event.EventService eventService,
org.fabric3.api.host.runtime.HostInfo hostInfo,
ScannerMonitor monitor)
public void setProduction(boolean production)
public void setDelay(long delay)
public void init()
public void destroy()
public void onEvent(org.fabric3.spi.runtime.event.Fabric3Event event)
onEvent in interface org.fabric3.spi.runtime.event.Fabric3EventListenerpublic void run()
run in interface java.lang.Runnable