Package org.qzerver.model.agent.action

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


        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(clusterNode1.getAddress())
        )).andReturn(new ActionAgentResult(true, null));

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

        // Execute action
        boolean succeed = false;
        byte[] data = null;

        try {
            ActionAgentResult actionAgentResult = actionAgent.executeAction(scheduleExecution.getId(),
                scheduleAction.getIdentifier(), scheduleAction.getDefinition(), node.getAddress());
            succeed = actionAgentResult.isSucceed();
            data = actionAgentResult.getData();
        } finally {
            scheduleExecutionResult = executionManagementService.finishExecutionResult(
                scheduleExecutionResult.getId(), succeed, data);
        }
View Full Code Here

        // Marshall execution result
        byte[] actionResultData = actionResultMarshaller.marshall(actionResult);

        // Compose the result record
        ActionAgentResult actionAgentResult = new ActionAgentResult();
        actionAgentResult.setSucceed(actionResult.isSucceed());
        actionAgentResult.setData(actionResultData);

        return actionAgentResult;
    }
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.