@Test public void testLaunchJob() { final String jobName = "testJob"; final String applicationInstanceId = "testApp"; final LightminClientApplication applicationInstance = new LightminClientApplication(); when(this.registrationBean.findById(applicationInstanceId)).thenReturn(applicationInstance); try { final JobLauncherModel jobLauncherModel = new JobLauncherModel(); jobLauncherModel.setApplicationInstanceId(applicationInstanceId); jobLauncherModel.setJobName(jobName); jobLauncherModel.setJobParameters("test(String)=hello,longValue(long)=1"); jobLauncherModel.setJobIncrementer("DATE"); this.jobLauncherFeService.launchJob(jobLauncherModel); } catch (final Exception e) { fail(e.getMessage()); } }
public void launchJob(final JobLauncherModel jobLauncherModel) { final LightminClientApplication lightminClientApplication = this.findLightminClientApplicatonById(jobLauncherModel.getApplicationInstanceId()); final JobParameters jobParameters = ApiParameterParser.parseParametersToJobParameters(jobLauncherModel.getJobParameters()); this.attachIncremeter(jobLauncherModel, jobParameters); final JobLaunch jobLaunch = new JobLaunch(); jobLaunch.setJobName(jobLauncherModel.getJobName()); jobLaunch.setJobParameters(jobParameters); this.jobServerService.launchJob(jobLaunch, lightminClientApplication); }
JobLauncherFeService extends CommonFeService { public void launchJob(final JobLauncherModel jobLauncherModel) { final LightminClientApplication lightminClientApplication = this.findLightminClientApplicatonById(jobLauncherModel.getApplicationInstanceId()); final JobParameters jobParameters = ApiParameterParser.parseParametersToJobParameters(jobLauncherModel.getJobParameters()); this.attachIncremeter(jobLauncherModel, jobParameters); final JobLaunch jobLaunch = new JobLaunch(); jobLaunch.setJobName(jobLauncherModel.getJobName()); jobLaunch.setJobParameters(jobParameters); this.jobServerService.launchJob(jobLaunch, lightminClientApplication); } }
JobLauncherFeService extends CommonFeService { public void launchJob(final JobLauncherModel jobLauncherModel) { final LightminClientApplication lightminClientApplication = this.findLightminClientApplicatonById(jobLauncherModel.getApplicationInstanceId()); final JobParameters jobParameters = ApiParameterParser.parseParametersToJobParameters(jobLauncherModel.getJobParameters()); this.attachIncremeter(jobLauncherModel, jobParameters); final JobLaunch jobLaunch = new JobLaunch(); jobLaunch.setJobName(jobLauncherModel.getJobName()); jobLaunch.setJobParameters(jobParameters); this.jobServerService.launchJob(jobLaunch, lightminClientApplication); } JobLauncherFeService(final RegistrationBean registrationBean, final JobServerService jobServerService); }
JobLauncherFeService extends CommonFeService { public void launchJob(final JobLauncherModel jobLauncherModel) { final LightminClientApplication lightminClientApplication = this.findLightminClientApplicatonById(jobLauncherModel.getApplicationInstanceId()); final JobParameters jobParameters = ApiParameterParser.parseParametersToJobParameters(jobLauncherModel.getJobParameters()); this.attachIncremeter(jobLauncherModel, jobParameters); final JobLaunch jobLaunch = new JobLaunch(); jobLaunch.setJobName(jobLauncherModel.getJobName()); jobLaunch.setJobParameters(jobParameters); this.jobServerService.launchJob(jobLaunch, lightminClientApplication); } JobLauncherFeService(final RegistrationBean registrationBean, final JobServerService jobServerService); JobLauncherModel getJobLauncherModel(final String jobName,
                                                final String applicationInstanceId); void launchJob(final JobLauncherModel jobLauncherModel); }
JobLauncherFeService extends CommonFeService { public void launchJob(final JobLauncherModel jobLauncherModel) { final LightminClientApplication lightminClientApplication = this.findLightminClientApplicatonById(jobLauncherModel.getApplicationInstanceId()); final JobParameters jobParameters = ApiParameterParser.parseParametersToJobParameters(jobLauncherModel.getJobParameters()); this.attachIncremeter(jobLauncherModel, jobParameters); final JobLaunch jobLaunch = new JobLaunch(); jobLaunch.setJobName(jobLauncherModel.getJobName()); jobLaunch.setJobParameters(jobParameters); this.jobServerService.launchJob(jobLaunch, lightminClientApplication); } JobLauncherFeService(final RegistrationBean registrationBean, final JobServerService jobServerService); JobLauncherModel getJobLauncherModel(final String jobName,
                                                final String applicationInstanceId); void launchJob(final JobLauncherModel jobLauncherModel);  }