Skip to content

Commit

Permalink
fix checkstyle (build)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsten Hollmann committed Oct 27, 2021
1 parent 87403bb commit ff7a8f3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ public class JobFactory implements Constructable {

public static final String FULL_HARVEST_UPDATE = "harvest.full";
public static final String TEMPORAL_HARVEST_UPDATE = "harvest.temporal";
private static final String FULL_HARVEST_UPDATE_VALUE = "${" + FULL_HARVEST_UPDATE + "}";
private static final String TEMPORAL_HARVEST_UPDATE_VALUE = "${" + TEMPORAL_HARVEST_UPDATE + "}";
private static final String DOLLAR_BRACE = "${";
private static final String BRACE = "}";
private static final String FULL_HARVEST_UPDATE_VALUE = DOLLAR_BRACE + FULL_HARVEST_UPDATE + BRACE;
private static final String TEMPORAL_HARVEST_UPDATE_VALUE = DOLLAR_BRACE + TEMPORAL_HARVEST_UPDATE + BRACE;
private static final Logger LOGGER = LoggerFactory.getLogger(JobFactory.class);
private String cronFullExpression = "0 0 03 * * ?";
private String cronTemporalExpression = "0 0/5 * * * ?";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

public class TriggerJobListener implements JobListener, TriggerListener {
private static final Logger LOGGER = LoggerFactory.getLogger(TriggerJobListener.class);

private Set<String> fullHarvestingJobs = new LinkedHashSet<>();

@Override
Expand All @@ -51,7 +52,7 @@ public void jobExecutionVetoed(JobExecutionContext context) {
@Override
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException) {
if (checkForFullHarvesterJob(context)) {
fullHarvestingJobs.remove(getGroup(context));
fullHarvestingJobs.remove(getGroup(context));
}
}

Expand All @@ -77,11 +78,15 @@ public void triggerComplete(Trigger trigger, JobExecutionContext context,
}

private String getGroup(JobExecutionContext context) {
return context.getJobDetail().getKey().getGroup();
return context.getJobDetail()
.getKey()
.getGroup();
}

private String getJobName(JobExecutionContext context) {
return context.getJobDetail().getKey().getName();
return context.getJobDetail()
.getKey()
.getName();
}

private boolean checkForFullHarvesterJob(JobExecutionContext context) {
Expand Down

0 comments on commit ff7a8f3

Please sign in to comment.