public interface ResourceChangeScanner extends ResourceChangeMonitor
Built in service, as provided by the ResourceFactory for monitor file changes on the local disk.
This interface, as well as ChangeSet, ResourceChangeNotifier, ResourceChangeMonitor and ResourceChangeScanner are still considered subject to change. Use the XML format change-set, as part of the ResourceType api when adding to KnowledgeBuilder, which is considered stable. KnowledgeBuilder currently ignored Added/Modified xml elements, the KnowledgeAgent will use them, when rebuilding the KnowledgeBase.
Modifier and Type | Method and Description |
---|---|
void |
configure(ResourceChangeScannerConfiguration configuration)
Reconfigure the Scanner now
|
ResourceChangeScannerConfiguration |
newResourceChangeScannerConfiguration()
New ResourceChangeScannerConfiguration which can be used to update this service.
|
ResourceChangeScannerConfiguration |
newResourceChangeScannerConfiguration(Properties properties)
New ResourceChangeScannerConfiguration, using the given Properties, which can be used to update this service.
|
void |
scan()
Execute a disk scan of subscribed resources now.
|
void |
setInterval(int interval)
Set scan interval in seconds
|
void |
start()
Start the service, this creates a new Thread.
|
void |
stop()
Stop the service.
|
setSystemEventListener, subscribeNotifier, unsubscribeNotifier
ResourceChangeScannerConfiguration newResourceChangeScannerConfiguration()
ResourceChangeScannerConfiguration newResourceChangeScannerConfiguration(Properties properties)
void configure(ResourceChangeScannerConfiguration configuration)
configuration
- void scan()
void start()
void stop()
void setInterval(int interval)
interval
- Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.