@Override public void setStatus(final TaskStatus status) { Preconditions.checkNotNull(status, "status"); log.info("Updating task %s to status: %s", status.getId(), status); final boolean set = handler.setStatus( status.getId(), status.isRunnable(), status ); if (!set) { throw new ISE("Active task not found: %s", status.getId()); } }
@Override public void setStatus(final TaskStatus status) { Preconditions.checkNotNull(status, "status"); log.info("Updating task %s to status: %s", status.getId(), status); final boolean set = handler.setStatus( status.getId(), status.isRunnable(), status ); if (!set) { throw new ISE("Active task not found: %s", status.getId()); } }