Package com.xmultra.util

Examples of com.xmultra.util.SyncFlag


        // Set the priority.
        if (!getManagerPriority(managerNode)) return false;

        // Make Processor's SyncFlag object.
        processorSyncFlag = new SyncFlag();

        // Register the processorFlag;
        processorSyncFlagRegistry.add(processorSyncFlag);

        // Make the StopSyncFlag objects.
        processorStopSyncFlag = new SyncFlag(false);
        managerStopSyncFlag = new SyncFlag(false);

        // Make ListHolder object.
        listHolder = new ListHolder();

        // Make CallbackRegistry object, passing in "this".
View Full Code Here


     *
     * @return The number of activeProcessors.
     */
    private static int getNumberOfTrueProcessorSyncFlags() {
        int number = 0;
        SyncFlag procSyncFlag = null;
        for (int i = 0; i < processorSyncFlagRegistry.size(); i++) {

            // The Registry could get cleared out during a config file
            // reload by ConfigProcessor. Just return 0.
            try {
                procSyncFlag = (SyncFlag)processorSyncFlagRegistry.get(i);
            }
            catch (ArrayIndexOutOfBoundsException e) {return 0;}
            if (procSyncFlag != null && procSyncFlag.getFlag() == true) {
                number++;
            }
        }
        return number;
    }
View Full Code Here

        if (!super.init(n, imh, sf, stopFlag)) {
            return false;
        }

        retrySyncFlag = new SyncFlag(false);
        msgEntry = new MessageLogEntry(this, VERSION);
        errEntry = new ErrorLogEntry(this, VERSION);

        this.strings = new Strings();
View Full Code Here

                         SyncFlag stopFlag) {
        if (!super.init(n, imh, sf, stopFlag)) return false;

        initMapHolder = imh;

        retrySyncFlag = new SyncFlag(false);
        msgEntry = new MessageLogEntry(this, VERSION);
        errEntry = new ErrorLogEntry(this, VERSION);

        // Create Strings instance and add it to the InitMapHolder.
        strings = new Strings();
View Full Code Here

     * @return          True if init was successful.
     */
    public boolean init (Node n, InitMapHolder imh, SyncFlag sf, SyncFlag stopFlag) {

        if (!super.init(n, imh, sf, stopFlag)) return false;
        retrySyncFlag = new SyncFlag(false);
        msgEntry = new MessageLogEntry(this, VERSION);
        errEntry = new ErrorLogEntry(this, VERSION);

        // Create Strings instance and add it to the InitMapHolder.
        strings = new Strings();
View Full Code Here

     */
    public boolean init (Node n, InitMapHolder imh, SyncFlag sf, SyncFlag stopFlag) {

        if (!super.init(n, imh, sf, stopFlag)) return false;

        this.retrySyncFlag = new SyncFlag(false);

        Node aProcessorNode = n;

        msgEntry = new MessageLogEntry(this, VERSION);
        errEntry = new ErrorLogEntry(this, VERSION);
View Full Code Here

        SystemContext.setProgramStartTime(System.currentTimeMillis());

        errEntry = new ErrorLogEntry(this, VERSION);
        msgEntry = new MessageLogEntry(this, VERSION);

        startingManagersSyncFlag = new SyncFlag(true);
    }
View Full Code Here

    * @return          True if init was successful.
    */
   public boolean init (Node n, InitMapHolder imh, SyncFlag sf, SyncFlag stopFlag) {

       if (!super.init(n, imh, sf, stopFlag)) return false;
       retrySyncFlag = new SyncFlag(false);
       msgEntry = new MessageLogEntry(this, VERSION);
       errEntry = new ErrorLogEntry(this, VERSION);

       // Get the directory to move a file to after processing it.
       srcDoneLocFile = getLocationDirectory(
View Full Code Here

TOP

Related Classes of com.xmultra.util.SyncFlag

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.