Search in sources :

Example 1 with QueryRemover

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));
}
Also used : Query(edu.snu.mist.core.task.Query) QueryRemover(edu.snu.mist.core.task.QueryRemover)

Aggregations

Query (edu.snu.mist.core.task.Query)1 QueryRemover (edu.snu.mist.core.task.QueryRemover)1