Examples of CleanupTask


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

     * @param props Configuration properties
     */
    @Activate
    protected void activate(final Map<String, Object> props) throws LoginException {
        this.jobScheduler = new JobSchedulerImpl(this.configuration, this.scheduler, this);
        this.maintenanceTask = new CleanUpTask(this.configuration);

        logger.info("Apache Sling Job Manager started on instance {}", Environment.APPLICATION_ID);
    }
View Full Code Here

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

     * @see java.lang.Runnable#run()
     */
    @Override
    public void run() {
        // invoke maintenance task
        final CleanUpTask task = this.maintenanceTask;
        if ( task != null ) {
            task.run();
        }
    }
View Full Code Here

Examples of org.jtrim.concurrent.CleanupTask

                            swingLock.release();
                        }
                    }
                });
            }
        }, new CleanupTask() {
            @Override
            public void cleanup(boolean canceled, Throwable error) throws Exception {
                NbTaskExecutors.defaultCleanup(canceled, error);
                PanelLockRef lock = lockRef.get();
                if (lock != null) {
View Full Code Here

Examples of org.jtrim.concurrent.CleanupTask

                NbGradleProject.PROJECT_PROCESSOR.execute(Cancellation.UNCANCELABLE_TOKEN, new CancelableTask() {
                    @Override
                    public void execute(CancellationToken cancelToken) {
                        XmlPropertyFormat.saveToXml(project, propertiesFile, snapshot);
                    }
                }, new CleanupTask() {
                    @Override
                    public void cleanup(boolean canceled, Throwable error) throws Exception {
                        NbTaskExecutors.defaultCleanup(canceled, error);
                        if (onDone != null) {
                            onDone.run();
View Full Code Here

Examples of org.jtrim.concurrent.CleanupTask

                            onDone.run();
                        }
                    }
                });
            }
        }, new CleanupTask() {
            @Override
            public void cleanup(boolean canceled, Throwable error) throws Exception {
                NbTaskExecutors.defaultCleanup(canceled, error);

                // required, so that the listeners will not
View Full Code Here

Examples of org.jtrim.concurrent.CleanupTask

                }
                else {
                    runBlockingGradleTask(cancelToken, task, progress.getCurrentHandle());
                }
            }
        }, new CleanupTask() {
            @Override
            public void cleanup(boolean canceled, Throwable error) throws Exception {
                try {
                    if (!canceled) {
                        listener.onComplete(error);
View Full Code Here

Examples of org.jtrim.concurrent.CleanupTask

        PROJECT_PROCESSOR.execute(cancel.getToken(), new CancelableTask() {
            @Override
            public void execute(CancellationToken cancelToken) {
                doRemoveProject(cancelToken);
            }
        }, new CleanupTask() {
            @Override
            public void cleanup(boolean canceled, Throwable error) throws Exception {
                NbTaskExecutors.defaultCleanup(canceled, error);
                progress.finish();
            }
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.