Package com.xmultra.watcher

Examples of com.xmultra.watcher.WakeAble


        for (int j = 0; j < fileHolder.destFiles.length; j++) {

            File destFile = new File(fileHolder.destFiles[j]);

            // See if there is a JdirWatch object associated with destLocation.
            WakeAble wakeAble = CallbackRegistry.getFromWakeAbleRegistry(
                                    destFile.getParent().toString());

            // Wake up any WakeAble (implemented by JdirWatch)
            // watching the srcDoneLocation.
            if (wakeAble != null) {
                wakeAble.wakeUp();
            }
        }

        // If test mode, and all items on list processed, exit.
        if (Console.getConsoleMode("9") &&
View Full Code Here


            byte[] articleBytes = this.getArticleByteContents(fileString);
            this.writeBytesToFile(dstFile, articleBytes);
        }

        // See if there is a JdirWatch object associated with destLocation.
        WakeAble wakeAble = CallbackRegistry.getFromWakeAbleRegistry(
                destLocationFile.toString());

        // Wake up any WakeAble (implemented by JdirWatch)
        // watching the srcDoneLocation.
        if (wakeAble != null) {
            wakeAble.wakeUp();
        }

    }
View Full Code Here

                }
            }

            // See if there is a JdirWatch object associated with destLocation.
            // The parent to the destinationFile is the destination dir.
            WakeAble wakeAble = CallbackRegistry.getFromWakeAbleRegistry(
                destinationFile.getParent());

            // Wake up any WakeAble (implemented by JdirWatch)
            // watching the srcDoneLocation.
            if (wakeAble != null) {
                wakeAble.wakeUp();
            }
        }

        // Increment round robin if necessary.
        if (roundRobin) {
View Full Code Here

                                        url +"' into " + fullDstPath);
                logger.logProcess(msgEntry);
            }

            // See if there is a JdirWatch object associated with destLocation.
            WakeAble wakeAble =
                CallbackRegistry.getFromWakeAbleRegistry(dstFile.toString());

            // Wake up any WakeAble (implemented by JdirWatch) watching the srcDoneLocation.
            if (wakeAble != null) {
                wakeAble.wakeUp();
            }
        }

        // Restart the wait period (so if the time to get a single
        // file is too long the processor is killed).
View Full Code Here

                fileUtils.moveFileToDoneLocation(
                    fileToSplit,srcDoneLocFile.toString());
            }

            // See if there is a JdirWatch object associated with destLocation.
            WakeAble wakeAble = CallbackRegistry.getFromWakeAbleRegistry(
                                    destLocation.toString());

            // Wake up any WakeAble (implemented by JdirWatch)
            // watching the destLocation.
            if (wakeAble != null) {
                wakeAble.wakeUp();
            }

            // Exit out if asked to.
            if (processorStopSyncFlag.getFlag()) break;
        }
View Full Code Here

        // If files were successfully unzap'd...
        if (numberEntriesExtracted > 0) {

            // See if there is a JdirWatch object associated with destLocation.
            WakeAble wakeAble = CallbackRegistry.getFromWakeAbleRegistry(
                                    this.destLocationFile.toString());

            // Wake up any WakeAble (implemented by JdirWatch)
            // watching the srcDoneLocation.
            if (wakeAble != null) {
                wakeAble.wakeUp();
            }

            // Log message.
            msgEntry.setDocInfo(fileToUnzap.toString());
            msgEntry.setMessageText(numberEntriesExtracted +
View Full Code Here

        for (int j = 0; j < fileHolder.destFiles.length; j++) {

            File destFile = new File(fileHolder.destFiles[j]);

            // See if there is a JdirWatch object associated with destLocation.
            WakeAble wakeAble = CallbackRegistry.getFromWakeAbleRegistry(
                                    destFile.getParent().toString());

            // Wake up any WakeAble (implemented by JdirWatch)
            // watching the srcDoneLocation.
            if (wakeAble != null) {
                wakeAble.wakeUp();
            }
        }

        // If test mode, and all items on list processed, exit.
        if (Console.getConsoleMode("9") &&
View Full Code Here

        for (int j = 0; j < fileHolder.destFiles.length; j++) {

            File destFile = new File(fileHolder.destFiles[j]);

            // See if there is a JdirWatch object associated with destLocation.
            WakeAble wakeAble = CallbackRegistry.getFromWakeAbleRegistry(
                                    destFile.getParent().toString());

            // Wake up any WakeAble (implemented by JdirWatch)
            // watching the srcDoneLocation.
            if (wakeAble != null) {
                wakeAble.wakeUp();
            }
        }

        // If test mode, and all items on list processed, exit.
        if (Console.getConsoleMode("9") &&
View Full Code Here

        for (int j = 0; j < fileHolder.destFiles.length; j++) {

            File destFile = new File(fileHolder.destFiles[j]);

            // See if there is a JdirWatch object associated with destLocation.
            WakeAble wakeAble = CallbackRegistry.getFromWakeAbleRegistry(
                                    destFile.getParent().toString());

            // Wake up any WakeAble (implemented by JdirWatch)
            // watching the srcDoneLocation.
            if (wakeAble != null) {
                wakeAble.wakeUp();
            }
        }

        // If test mode, and all items on list processed, exit.
        if (Console.getConsoleMode("9") &&
View Full Code Here

TOP

Related Classes of com.xmultra.watcher.WakeAble

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.