Package br.com.datawatcher.entity

Examples of br.com.datawatcher.entity.DataWatcher.addMapping()


        log.info("Mapping folder to DataWatcher. Folder: " + mappedFolder.getCanonicalPath());
       
        folder.setRegexFilter(HPIConstants.REGEX_FILE);
        folder.setCheckChange(new CheckChange(HPIConstants.DATA_WATCHER_CRON_EXPRESSION));
        folder.addListeners(new Listener(MappedFolderListener.class.getName()));
        dataWatcher.addMapping(folder);
      }
     
      log.info("Starting DataWatcher.");
      dataWatcher.start();
    } catch (Exception e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.