Package org.qzerver.model.service.job.management.dto

Examples of org.qzerver.model.service.job.management.dto.ScheduleJobModifyParameters


        jobParameters.setActionDefinition("action.data".getBytes());

        ScheduleJob scheduleJob = scheduleJobManagementService.createJob(jobParameters);
        Assert.assertNotNull(scheduleJob);

        ScheduleJobModifyParameters modifyParameters = new ScheduleJobModifyParameters();
        modifyParameters.setName("Name2");
        modifyParameters.setDescription("Description2");
        modifyParameters.setAllNodes(true);
        modifyParameters.setNotifyOnFailure(false);
        modifyParameters.setTimeout(1000);
        modifyParameters.setNodesLimit(4);

        ScheduleJob scheduleJobModified = scheduleJobManagementService.modifyJob(scheduleJob.getId(), modifyParameters);
        Assert.assertNotNull(scheduleJobModified);
        Assert.assertEquals("Name2", scheduleJobModified.getName());
        Assert.assertEquals("Description2", scheduleJobModified.getDescription());
View Full Code Here

TOP

Related Classes of org.qzerver.model.service.job.management.dto.ScheduleJobModifyParameters

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.