super.stop();
}
private void handleEvent(TaskSchedulerEvent event) {
if (event.getType() == EventType.T_SCHEDULE) {
TaskScheduleEvent castEvent = (TaskScheduleEvent) event;
if (castEvent.isLeafQuery()) {
scheduledRequests.addLeafTask(castEvent);
} else {
scheduledRequests.addNonLeafTask(castEvent);
}
}