/**
   * Returns an event indicating the current status of each active job, in the order they were
   * submitted.
   * TODO: hook this up.
   */
synchronized ImmutableList<JobEvent> getActiveEvents() {
    ImmutableList.Builder<JobEvent> builder = ImmutableList.builder();
    for (String id : activeJobIds) {
      JobEvent p = eventsByJobId.get(id);
      assert p != null;
      builder.add(p);
    }
    return builder.build();
  }
synchronized ImmutableList<JobEvent> getActiveEvents() {
ImmutableList.Builder<JobEvent> builder = ImmutableList.builder();
for (String id : activeJobIds) {
JobEvent p = eventsByJobId.get(id);
assert p != null;
builder.add(p);
}
return builder.build();
}
synchronized ImmutableList<JobEvent> getActiveEvents() {
ImmutableList.Builder<JobEvent> builder = ImmutableList.builder();
for (String id : activeJobIds) {
JobEvent p = eventsByJobId.get(id);
assert p != null;
builder.add(p);
}
return builder.build();
}
synchronized ImmutableList<JobEvent> getActiveEvents() {
ImmutableList.Builder<JobEvent> builder = ImmutableList.builder();
for (String id : activeJobIds) {
JobEvent p = eventsByJobId.get(id);
assert p != null;
builder.add(p);
}
return builder.build();
}