Package org.qzerver.model.agent.action

Examples of org.qzerver.model.agent.action.ActionAgentResult


        IAnswer<ActionAgentResult> actionAgentAnswer = new IAnswer<ActionAgentResult>() {
            @Override
            public ActionAgentResult answer() throws Throwable {
                chronometer.shiftTick(1500);
                return new ActionAgentResult(true, null);
            }
        };

        control.reset();
View Full Code Here


        IAnswer<ActionAgentResult> actionAgentAnswer = new IAnswer<ActionAgentResult>() {
            @Override
            public ActionAgentResult answer() throws Throwable {
                chronometer.shiftTick(1100);
                return new ActionAgentResult(false, null);
            }
        };

        control.reset();
View Full Code Here

        IAnswer<ActionAgentResult> actionAgentAnswer = new IAnswer<ActionAgentResult>() {
            @Override
            public ActionAgentResult answer() throws Throwable {
                scheduleExecutionManagementService.cancelExecution(scheduleExecutionCapture.getValue());
                return new ActionAgentResult(false, null);
            }
        };

        control.reset();
View Full Code Here

        EasyMock.expect(actionAgent.executeAction(
            EasyMock.anyLong(),
            EasyMock.<String>anyObject(),
            EasyMock.<byte[]>anyObject(),
            EasyMock.eq(clusterNode2.getAddress())
        )).andReturn(new ActionAgentResult(false, null));

        EasyMock.expect(actionAgent.executeAction(
            EasyMock.anyLong(),
            EasyMock.<String>anyObject(),
            EasyMock.<byte[]>anyObject(),
            EasyMock.eq(clusterNode1.getAddress())
        )).andReturn(new ActionAgentResult(true, null));

        control.replay();

        AutomaticJobExecutionParameters jobExecutionParameters = new AutomaticJobExecutionParameters();
        jobExecutionParameters.setScheduledTime(ChronometerUtils.parseMoment("2012-02-20 10:00:00.000 UTC"));
View Full Code Here

        EasyMock.expect(actionAgent.executeAction(
            EasyMock.anyLong(),
            EasyMock.<String>anyObject(),
            EasyMock.<byte[]>anyObject(),
            EasyMock.eq(clusterNode2.getAddress())
        )).andReturn(new ActionAgentResult(false, null));

        EasyMock.expect(actionAgent.executeAction(
            EasyMock.anyLong(),
            EasyMock.<String>anyObject(),
            EasyMock.<byte[]>anyObject(),
            EasyMock.eq(clusterNode1.getAddress())
        )).andReturn(new ActionAgentResult(false, null));

        mailService.notifyJobExecutionFailed(
            EasyMock.<ScheduleExecution>anyObject()
        );
View Full Code Here

        EasyMock.expect(actionAgent.executeAction(
            EasyMock.anyLong(),
            EasyMock.<String>anyObject(),
            EasyMock.<byte[]>anyObject(),
            EasyMock.eq(clusterNode2.getAddress())
        )).andReturn(new ActionAgentResult(false, null));

        mailService.notifyJobExecutionFailed(
            EasyMock.<ScheduleExecution>anyObject()
        );
View Full Code Here

            EasyMock.same(httpActionResult)
        )).andReturn(resultData.getBytes());

        control.replay();

        ActionAgentResult actionAgentResult = actionAgent.executeAction(executionId,
            ActionIdentifier.HTTP.getIdentifier(), definitionData.getBytes(), address);

        control.verify();

        Assert.assertNotNull(actionAgentResult);
        Assert.assertTrue(actionAgentResult.isSucceed());
        Assert.assertTrue(Arrays.equals(resultData.getBytes(), actionAgentResult.getData()));
    }
View Full Code Here

        EasyMock.expect(actionAgent.executeAction(
            EasyMock.anyLong(),
            EasyMock.<String>anyObject(),
            EasyMock.<byte[]>anyObject(),
            EasyMock.eq(clusterNode2.getAddress())
        )).andReturn(new ActionAgentResult(true, null));

        EasyMock.expect(actionAgent.executeAction(
            EasyMock.anyLong(),
            EasyMock.<String>anyObject(),
            EasyMock.<byte[]>anyObject(),
            EasyMock.eq(clusterNode1.getAddress())
        )).andReturn(new ActionAgentResult(true, null));

        control.replay();

        AutomaticJobExecutionParameters jobExecutionParameters = new AutomaticJobExecutionParameters();
        jobExecutionParameters.setScheduledTime(ChronometerUtils.parseMoment("2012-02-20 10:00:00.000 UTC"));
View Full Code Here

        EasyMock.expect(actionAgent.executeAction(
            EasyMock.anyLong(),
            EasyMock.<String>anyObject(),
            EasyMock.<byte[]>anyObject(),
            EasyMock.eq(clusterNode2.getAddress())
        )).andReturn(new ActionAgentResult(true, null));

        control.replay();

        AutomaticJobExecutionParameters jobExecutionParameters = new AutomaticJobExecutionParameters();
        jobExecutionParameters.setScheduledTime(ChronometerUtils.parseMoment("2012-02-20 10:00:00.000 UTC"));
View Full Code Here

        EasyMock.expect(actionAgent.executeAction(
            EasyMock.anyLong(),
            EasyMock.<String>anyObject(),
            EasyMock.<byte[]>anyObject(),
            EasyMock.eq(clusterNode2.getAddress())
        )).andReturn(new ActionAgentResult(false, null));

        EasyMock.expect(actionAgent.executeAction(
            EasyMock.anyLong(),
            EasyMock.<String>anyObject(),
            EasyMock.<byte[]>anyObject(),
            EasyMock.eq(clusterNode1.getAddress())
        )).andReturn(new ActionAgentResult(true, null));

        mailService.notifyJobExecutionFailed(
            EasyMock.<ScheduleExecution>anyObject()
        );
View Full Code Here

TOP

Related Classes of org.qzerver.model.agent.action.ActionAgentResult

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.