package org.ovirt.engine.core.bll.tasks.interfaces;

import java.util.ArrayList;
import java.util.Map;

import org.ovirt.engine.core.bll.job.ExecutionContext;
import org.ovirt.engine.core.common.action.VdcReturnValueBase;
import org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo;
import org.ovirt.engine.core.common.businessentities.AsyncTaskStatus;
import org.ovirt.engine.core.compat.Guid;

public interface AsyncCommandCallBack {

    Map<Guid, AsyncTaskStatus> getAllTasksStatuses(Guid storagePoolID);
    ArrayList<AsyncTaskCreationInfo> getAllTasksInfo(Guid storagePoolID);
    VdcReturnValueBase endAction(SPMTask task, ExecutionContext context);

}

package org.ovirt.engine.core.bll.tasks.interfaces;

import java.util.ArrayList;
import java.util.Map;

import org.ovirt.engine.core.bll.job.ExecutionContext;
import org.ovirt.engine.core.common.action.VdcReturnValueBase;
import org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo;
import org.ovirt.engine.core.common.businessentities.AsyncTaskStatus;
import org.ovirt.engine.core.compat.Guid;

public interface AsyncCommandCallBack {

    Map<Guid, AsyncTaskStatus> getAllTasksStatuses(Guid storagePoolID);

    ArrayList<AsyncTaskCreationInfo> getAllTasksInfo(Guid storagePoolID);

    VdcReturnValueBase endAction(SPMTask task, ExecutionContext context);
}

Format AsyncCommandCallBack