Package org.apache.sling.event.impl.jobs.tasks

Examples of org.apache.sling.event.impl.jobs.tasks.CheckTopologyTask


            final FindUnfinishedJobsTask rt = new FindUnfinishedJobsTask(this);
            rt.run();
        }

        // we run the checker task twice, now and shortly after the topology has changed.
        final CheckTopologyTask mt = new CheckTopologyTask(this);
        mt.fullRun(!isConfigChange, isConfigChange);

        // and run checker again in some seconds (if leader)
        // notify listeners afterwards
        scheduler.schedule(new Runnable() {

                @Override
                public void run() {
                    if ( newCaps.isLeader() && newCaps.isActive() ) {
                        mt.assignUnassignedJobs();
                    }
                    // start listeners
                    synchronized ( listeners ) {
                        if ( topologyCapabilities != null && newCaps.isActive() ) {
                            notifiyListeners();
View Full Code Here

TOP

Related Classes of org.apache.sling.event.impl.jobs.tasks.CheckTopologyTask

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.