Package com.xmultra.watcher.jcronwatch

Examples of com.xmultra.watcher.jcronwatch.JcronWatch


                jcronAlarmsNode, this.setSleepTimeByJcronAlarms)) {
            return false;
        }
        // If there is a JcronAlarms element, then create a JcronWatch "Watcher"
        // to be used in JdirWatch (to determine when to look at a directory).
        JcronWatch jcronWatch = null;
        if (jcronAlarmsNode != null) {
            JcronWatchManager jcronWatchManager = new JcronWatchManager(xmlParseUtils);
            jcronWatch = jcronWatchManager.getWatcher(null,jcronAlarmsNode);
            jcronWatch.setWatchMessage("Watching: " + srcLocFile.toString());
        }

        // Create a JdirWatch instance.
        super.watcher = new JdirWatch(srcLocFile,
                                      jcronWatch,
View Full Code Here


            throws InvalidConfigFileFormatException {

        // Set alarm's environment
        JcronAlarmListener jcronAlarmListener = new JcronAlarmListener(
                                             Console.getTestFlag(0));
        JcronWatch jcronWatcher = new JcronWatch(jcronAlarmListener,
                               cronMessages, Console.getTestFlag(0));

        jcronAlarmListener.setWatcher(jcronWatcher);

        // Parse the JcronAlarms child elements.
View Full Code Here

TOP

Related Classes of com.xmultra.watcher.jcronwatch.JcronWatch

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.