use of edu.snu.mist.core.task.QueryRemover in project mist by snuspl.
the class DefaultCheckpointManagerImpl method deleteGroup.
@Override
public void deleteGroup(final String groupId) {
final Group group = groupMap.get(groupId);
if (group == null) {
LOG.log(Level.WARNING, "There is no such group {0}.", new Object[] { groupId });
return;
}
final QueryRemover remover = group.getApplicationInfo().getQueryRemover();
for (final Query query : group.getQueries()) {
remover.deleteQuery(query.getId());
}
applicationMap.remove(groupId);
groupAllocationTableModifier.addEvent(new WritingEvent(WritingEvent.EventType.GROUP_REMOVE_ALL, null));
}
Aggregations