@Test void getJobStatusInWrongPlaceAndWithInvalidLogArgument() { JobStatus jobStatus = this.store.getJobStatus(Arrays.asList("invalidlogargument")); assertNotNull(jobStatus); assertEquals(3, jobStatus.getLog().size()); }
@Override public JobStatus getJobStatus(List<String> id) { String idString = toUniqueString(id); JobStatus status = this.cache.get(idString); if (status == null) { status = maybeLoadStatus(id, idString); } return status == NOSTATUS ? null : status; }
DefaultJobStatusStore implements JobStatusStore, Initializable { @Override public JobStatus getJobStatus(List<String> id) { String idString = toUniqueString(id); JobStatus status = this.cache.get(idString); if (status == null) { status = maybeLoadStatus(id, idString); } return status == NOSTATUS ? null : status; } }
DefaultJobStatusStore implements JobStatusStore, Initializable { @Override public JobStatus getJobStatus(List<String> id) { String idString = toUniqueString(id); JobStatus status = this.cache.get(idString); if (status == null) { status = maybeLoadStatus(id, idString); } return status == NOSTATUS ? null : status; }  }
DefaultJobStatusStore implements JobStatusStore, Initializable { @Override public JobStatus getJobStatus(List<String> id) { String idString = toUniqueString(id); JobStatus status = this.cache.get(idString); if (status == null) { status = maybeLoadStatus(id, idString); } return status == NOSTATUS ? null : status; }  @Override void initialize(); @Override JobStatus getJobStatus(List<String> id); @Override void store(JobStatus status); @Override void storeAsync(JobStatus status); @Override void remove(List<String> id); @Override LoggerTail createLoggerTail(List<String> jobId, boolean readonly); void flushCache(); }
DefaultJobStatusStore implements JobStatusStore, Initializable { @Override public JobStatus getJobStatus(List<String> id) { String idString = toUniqueString(id); JobStatus status = this.cache.get(idString); if (status == null) { status = maybeLoadStatus(id, idString); } return status == NOSTATUS ? null : status; }  @Override void initialize(); @Override JobStatus getJobStatus(List<String> id); @Override void store(JobStatus status); @Override void storeAsync(JobStatus status); @Override void remove(List<String> id); @Override LoggerTail createLoggerTail(List<String> jobId, boolean readonly); void flushCache();  }