Package org.drools.io

Examples of org.drools.io.ResourceChangeScanner


   
    // 2) start the notifier
    ResourceFactory.getResourceChangeNotifierService().start();
   
    // 3) start the scanner
    ResourceChangeScanner rcs = ResourceFactory.getResourceChangeScannerService();
    ResourceChangeScannerConfiguration rcs_conf = rcs.newResourceChangeScannerConfiguration();
    String rulesResourceScannerInterval = Configuration.getRulesResourceScannerInterval();
    if (logger.isInfoEnabled())
    {
      logger.info("setting " + DROOLS_RESOURCE_SCANNER_INTERVAL + " to " + rulesResourceScannerInterval);
    }
    rcs_conf.setProperty(DROOLS_RESOURCE_SCANNER_INTERVAL, rulesResourceScannerInterval);
    rcs.configure(rcs_conf);
    rcs.start();
   
    // 4) start the super
    super.startService();
  }
View Full Code Here

TOP

Related Classes of org.drools.io.ResourceChangeScanner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.