Package org.apache.oozie.command.coord

Examples of org.apache.oozie.command.coord.CoordActionInputCheckXCommand


                msg.append(", COORD_ACTIONS : " + cactions.size());
                for (CoordinatorActionBean caction : cactions) {
                    Services.get().get(InstrumentationService.class).get().incr(INSTRUMENTATION_GROUP,
                                                                                INSTR_RECOVERED_COORD_ACTIONS_COUNTER, 1);
                    if (caction.getStatus() == CoordinatorActionBean.Status.WAITING) {
            queueCallable(new CoordActionInputCheckXCommand(
                caction.getId(), caction.getJobId()));

            log.info("Recover a WAITTING coord action and resubmit CoordActionInputCheckXCommand :"
                + caction.getId());
                    }
View Full Code Here


                for (CoordinatorActionBean caction : cactions) {
                    Services.get().get(InstrumentationService.class).get().incr(INSTRUMENTATION_GROUP,
                                                                                INSTR_RECOVERED_COORD_ACTIONS_COUNTER, 1);
                    if (caction.getStatus() == CoordinatorActionBean.Status.WAITING) {
                        if (useXCommand) {
                            queueCallable(new CoordActionInputCheckXCommand(caction.getId()));
                        } else {
                            queueCallable(new CoordActionInputCheckCommand(caction.getId()));
                        }

                        log.info("Recover a WAITTING coord action and resubmit CoordActionInputCheckXCommand :" + caction.getId());
View Full Code Here

            for (CoordinatorActionBean caction : cactions) {
                try {
                    Services.get().get(InstrumentationService.class).get()
                            .incr(INSTRUMENTATION_GROUP, INSTR_RECOVERED_COORD_ACTIONS_COUNTER, 1);
                    if (caction.getStatus() == CoordinatorActionBean.Status.WAITING) {
                        queueCallable(new CoordActionInputCheckXCommand(caction.getId(), caction.getJobId()));

                        log.info("Recover a WAITTING coord action and resubmit CoordActionInputCheckXCommand :"
                                + caction.getId());
                    }
                    else if (caction.getStatus() == CoordinatorActionBean.Status.SUBMITTED) {
View Full Code Here

                try {
                    if (Services.get().get(JobsConcurrencyService.class).isJobIdForThisServer(caction.getId())) {
                        Services.get().get(InstrumentationService.class).get()
                                .incr(INSTRUMENTATION_GROUP, INSTR_RECOVERED_COORD_ACTIONS_COUNTER, 1);
                        if (caction.getStatus() == CoordinatorActionBean.Status.WAITING) {
                            queueCallable(new CoordActionInputCheckXCommand(caction.getId(), caction.getJobId()));
                            log.info("Recover a WAITING coord action and resubmit CoordActionInputCheckXCommand :"
                                    + caction.getId());
                            if (caction.getPushMissingDependencies() != null
                                    && caction.getPushMissingDependencies().length() != 0) {
                                queueCallable(new CoordPushDependencyCheckXCommand(caction.getId(), true, true),
View Full Code Here

        assertEquals(coord.getAppName(), event.getAppName());
        assertEquals(0, queue.size());

        // Make Action ready
        // In this case it will proceed to Running since n(ready_actions) < concurrency
        new CoordActionInputCheckXCommand(action.getId(), coord.getId()).call();
        action = jpaService.execute(coordGetCmd);
        assertEquals(CoordinatorAction.Status.RUNNING, action.getStatus());

        event = (JobEvent) queue.poll();
        assertEquals(EventStatus.STARTED, event.getEventStatus());
View Full Code Here

        assertEquals(coord.getUser(), event.getUser());
        assertEquals(coord.getAppName(), event.getAppName());
        assertEquals(0, queue.size());

        // Make Action ready
        new CoordActionInputCheckXCommand(action.getId(), coord.getId()).call();
        action = jpaService.execute(coordGetCmd);
        assertEquals(CoordinatorAction.Status.READY, action.getStatus());

        waitFor(4 * 100, new Predicate() {
            @Override
View Full Code Here

            for (CoordinatorActionBean caction : cactions) {
                try {
                    Services.get().get(InstrumentationService.class).get()
                            .incr(INSTRUMENTATION_GROUP, INSTR_RECOVERED_COORD_ACTIONS_COUNTER, 1);
                    if (caction.getStatus() == CoordinatorActionBean.Status.WAITING) {
                        queueCallable(new CoordActionInputCheckXCommand(caction.getId(), caction.getJobId()));
                        log.info("Recover a WAITING coord action and resubmit CoordActionInputCheckXCommand :"
                                + caction.getId());
                        if (caction.getPushMissingDependencies() != null
                                && caction.getPushMissingDependencies().length() != 0) {
                            queueCallable(new CoordPushDependencyCheckXCommand(caction.getId(), true, true),
View Full Code Here

                for (CoordinatorActionBean caction : cactions) {
                    Services.get().get(InstrumentationService.class).get().incr(INSTRUMENTATION_GROUP,
                                                                                INSTR_RECOVERED_COORD_ACTIONS_COUNTER, 1);
                    if (caction.getStatus() == CoordinatorActionBean.Status.WAITING) {
                        if (useXCommand) {
                            queueCallable(new CoordActionInputCheckXCommand(caction.getId()));
                        } else {
                            queueCallable(new CoordActionInputCheckCommand(caction.getId()));
                        }

                        log.info("Recover a WAITTING coord action and resubmit CoordActionInputCheckXCommand :" + caction.getId());
View Full Code Here

TOP

Related Classes of org.apache.oozie.command.coord.CoordActionInputCheckXCommand

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.