removed unused method

Original commit: elastic/x-pack-elasticsearch@bbe4b7e932
This commit is contained in:
Martijn van Groningen 2016-12-12 11:19:44 +01:00
parent 3d8353ac6a
commit f73d22b4b2
1 changed files with 0 additions and 13 deletions

View File

@ -320,19 +320,6 @@ public class PrelertMetadata implements MetaData.Custom {
return this; return this;
} }
public Builder updateAllocation(String jobId, Allocation updated) {
Allocation previous = this.allocations.put(jobId, updated);
if (previous == null) {
throw new IllegalStateException("Expected that job [" + jobId + "] was already allocated");
}
if (previous.getStatus() != updated.getStatus() && updated.getStatus() == JobStatus.CLOSED) {
Job.Builder job = new Job.Builder(this.jobs.get(jobId));
job.setFinishedTime(new Date());
this.jobs.put(job.getId(), job.build());
}
return this;
}
// only for parsing // only for parsing
private Builder putAllocations(Collection<Allocation.Builder> allocations) { private Builder putAllocations(Collection<Allocation.Builder> allocations) {
for (Allocation.Builder allocationBuilder : allocations) { for (Allocation.Builder allocationBuilder : allocations) {