2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowplugin.impl.services.batch;
11 import com.google.common.util.concurrent.AsyncFunction;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.flat.batch.service.rev160321.ProcessFlatBatchOutput;
13 import org.opendaylight.yangtools.yang.common.RpcResult;
16 * Wrapper for batch step jobs (type + function).
18 public class BatchStepJob {
20 private final BatchPlanStep planStep;
21 private final AsyncFunction<RpcResult<ProcessFlatBatchOutput>, RpcResult<ProcessFlatBatchOutput>> stepFunction;
23 public BatchStepJob(final BatchPlanStep planStep,
24 final AsyncFunction<RpcResult<ProcessFlatBatchOutput>, RpcResult<ProcessFlatBatchOutput>> stepFunction) {
25 this.planStep = planStep;
26 this.stepFunction = stepFunction;
29 public BatchPlanStep getPlanStep() {
33 public AsyncFunction<RpcResult<ProcessFlatBatchOutput>, RpcResult<ProcessFlatBatchOutput>> getStepFunction() {