Package org.kie.api.builder
Interface KieScanner
- 
 public interface KieScannerA KieScanner is a scanner of the maven repositories (both local and remote) used to automatically discover if there are new releases for a given KieModule and its dependencies and eventually deploy them in the KieRepository
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classKieScanner.Status
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(KieScannerEventListener listener)Add an event listener.Collection<KieScannerEventListener>getListeners()Returns all event listeners.voidremoveListener(KieScannerEventListener listener)Remove an event listener.voidscanNow()Triggers a synchronous scanvoidshutdown()Shuts down the scanner and releases any resources held.voidstart(long pollingInterval)Starts this KieScanner polling the maven repositories with the given interval expressed in milliseconds throws An IllegalStateException if this KieScanner has been already startedvoidstop()Stops this KieScanner, but does not release the resources.
 
- 
- 
- 
Method Detail- 
startvoid start(long pollingInterval) Starts this KieScanner polling the maven repositories with the given interval expressed in milliseconds throws An IllegalStateException if this KieScanner has been already started
 - 
stopvoid stop() Stops this KieScanner, but does not release the resources. A call tostart(long)will resume the scanner's work after a call tostop()
 - 
shutdownvoid shutdown() Shuts down the scanner and releases any resources held. After a shutdown call, any call to start() will fail with an exception.
 - 
scanNowvoid scanNow() Triggers a synchronous scan
 - 
addListenervoid addListener(KieScannerEventListener listener) Add an event listener.- Parameters:
- listener- The listener to add.
 
 - 
removeListenervoid removeListener(KieScannerEventListener listener) Remove an event listener.- Parameters:
- listener- The listener to remove.
 
 - 
getListenersCollection<KieScannerEventListener> getListeners() Returns all event listeners.- Returns:
- listeners The listeners.
 
 
- 
 
-