Examples of PurgeCommand


Examples of com.onarandombox.MultiverseCore.commands.PurgeCommand

        this.commandHandler.registerCommand(new DeleteCommand(this));
        this.commandHandler.registerCommand(new RegenCommand(this));
        this.commandHandler.registerCommand(new ConfirmCommand(this));
        // Modification commands
        this.commandHandler.registerCommand(new ModifyCommand(this));
        this.commandHandler.registerCommand(new PurgeCommand(this));
        this.commandHandler.registerCommand(new ModifyAddCommand(this));
        this.commandHandler.registerCommand(new ModifySetCommand(this));
        this.commandHandler.registerCommand(new ModifyRemoveCommand(this));
        this.commandHandler.registerCommand(new ModifyClearCommand(this));
        this.commandHandler.registerCommand(new ConfigCommand(this));
View Full Code Here

Examples of org.apache.oozie.command.wf.PurgeCommand

            public boolean evaluate() throws Exception {
                return (engine.getJob(jobId).getStatus() == WorkflowJob.Status.SUCCEEDED);
            }
        });
        assertEquals(WorkflowJob.Status.SUCCEEDED, engine.getJob(jobId).getStatus());
        new PurgeCommand(1, 10000).call();
        Thread.sleep(1000);

        JPAService jpaService = Services.get().get(JPAService.class);
        WorkflowJobGetJPAExecutor wfJobGetCmd = new WorkflowJobGetJPAExecutor(jobId);
        WorkflowJobBean wfBean = jpaService.execute(wfJobGetCmd);
View Full Code Here

Examples of org.apache.oozie.command.wf.PurgeCommand

            if (useXCommand) {
                Services.get().get(CallableQueueService.class).queue(new PurgeXCommand(olderThan, limit));
                Services.get().get(CallableQueueService.class).queue(new CoordPurgeXCommand(coordOlderThan, limit));
                Services.get().get(CallableQueueService.class).queue(new BundlePurgeXCommand(bundleOlderThan, limit));
            } else {
                Services.get().get(CallableQueueService.class).queue(new PurgeCommand(olderThan, limit));
                Services.get().get(CallableQueueService.class).queue(new CoordPurgeCommand(coordOlderThan, limit));
            }
        }
View Full Code Here

Examples of org.apache.oozie.command.wf.PurgeCommand

                return (engine.getJob(jobId).getStatus() == WorkflowJob.Status.SUCCEEDED);
            }
        });
        assertEquals(WorkflowJob.Status.SUCCEEDED, engine.getJob(jobId)
                .getStatus());
        new PurgeCommand(1, 10000).call();
        Thread.sleep(1000);

        final WorkflowStore store = Services.get().get(
                WorkflowStoreService.class).create();
        store.beginTrx();
View Full Code Here

Examples of org.apache.oozie.command.wf.PurgeCommand

            this.coordOlderThan = coordOlderThan;
            this.limit = limit;
        }

        public void run() {
            Services.get().get(CallableQueueService.class).queue(new PurgeCommand(olderThan, limit));
            Services.get().get(CallableQueueService.class).queue(new CoordPurgeCommand(coordOlderThan, limit));
        }
View Full Code Here

Examples of org.apache.oozie.command.wf.PurgeCommand

            if (useXCommand) {
                Services.get().get(CallableQueueService.class).queue(new PurgeXCommand(olderThan, limit));
                Services.get().get(CallableQueueService.class).queue(new CoordPurgeXCommand(coordOlderThan, limit));
                Services.get().get(CallableQueueService.class).queue(new BundlePurgeXCommand(bundleOlderThan, limit));
            } else {
                Services.get().get(CallableQueueService.class).queue(new PurgeCommand(olderThan, limit));
                Services.get().get(CallableQueueService.class).queue(new CoordPurgeCommand(coordOlderThan, limit));
            }
        }
View Full Code Here

Examples of org.apache.oozie.command.wf.PurgeCommand

            public boolean evaluate() throws Exception {
                return (engine.getJob(jobId).getStatus() == WorkflowJob.Status.SUCCEEDED);
            }
        });
        assertEquals(WorkflowJob.Status.SUCCEEDED, engine.getJob(jobId).getStatus());
        new PurgeCommand(1, 10000).call();
        Thread.sleep(1000);

        JPAService jpaService = Services.get().get(JPAService.class);
        WorkflowJobGetJPAExecutor wfJobGetCmd = new WorkflowJobGetJPAExecutor(jobId);
        WorkflowJobBean wfBean = jpaService.execute(wfJobGetCmd);
View Full Code Here

Examples of org.openstreetmap.josm.command.PurgeCommand

        if (answer != 1)
            return;

        Main.pref.put("purge.clear_undo_redo", cbClearUndoRedo.isSelected());

        Main.main.undoRedo.add(new PurgeCommand(Main.main.getEditLayer(), toPurgeChecked, makeIncomplete));

        if (cbClearUndoRedo.isSelected()) {
            Main.main.undoRedo.clean();
            getCurrentDataSet().clearSelectionHistory();
        }
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.