@Test public void assertBuildAllProperties() { JobConfiguration actual = JobConfiguration.newBuilder("test_job", 3) .cron("0/1 * * * * ?") .shardingItemParameters("0=a,1=b,2=c").jobParameter("param") .monitorExecution(false).failover(true).misfire(false) .maxTimeDiffSeconds(1000).reconcileIntervalMinutes(60) .jobShardingStrategyType("AVG_ALLOCATION").jobExecutorServiceHandlerType("SINGLE_THREAD").jobErrorHandlerType("IGNORE") .description("desc").setProperty("key", "value") .disabled(true).overwrite(true).build(); assertThat(actual.getJobName(), is("test_job")); assertThat(actual.getCron(), is("0/1 * * * * ?")); assertThat(actual.getShardingTotalCount(), is(3)); assertThat(actual.getShardingItemParameters(), is("0=a,1=b,2=c")); assertThat(actual.getJobParameter(), is("param")); assertFalse(actual.isMonitorExecution()); assertTrue(actual.isFailover()); assertFalse(actual.isMisfire()); assertThat(actual.getMaxTimeDiffSeconds(), is(1000)); assertThat(actual.getReconcileIntervalMinutes(), is(60)); assertThat(actual.getJobShardingStrategyType(), is("AVG_ALLOCATION")); assertThat(actual.getJobExecutorServiceHandlerType(), is("SINGLE_THREAD")); assertThat(actual.getJobErrorHandlerType(), is("IGNORE")); assertThat(actual.getDescription(), is("desc")); assertThat(actual.getProps().getProperty("key"), is("value")); assertTrue(actual.isDisabled()); assertTrue(actual.isOverwrite()); }
public static Builder newBuilder(final String jobName, final int shardingTotalCount) { return new Builder(jobName, shardingTotalCount); }
JobConfiguration { public static Builder newBuilder(final String jobName, final int shardingTotalCount) { return new Builder(jobName, shardingTotalCount); } }
JobConfiguration { public static Builder newBuilder(final String jobName, final int shardingTotalCount) { return new Builder(jobName, shardingTotalCount); }  }
JobConfiguration { public static Builder newBuilder(final String jobName, final int shardingTotalCount) { return new Builder(jobName, shardingTotalCount); }  static Builder newBuilder(final String jobName, final int shardingTotalCount); }
JobConfiguration { public static Builder newBuilder(final String jobName, final int shardingTotalCount) { return new Builder(jobName, shardingTotalCount); }  static Builder newBuilder(final String jobName, final int shardingTotalCount);  }