a64175a5e5f748dbb28b583b6c93c2d5635653b0
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / services / batch / BatchStepJob.java
1 /**
2  * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.openflowplugin.impl.services.batch;
10
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;
14
15 /**
16  * Wrapper for batch step jobs (type + function).
17  */
18 public class BatchStepJob {
19
20     private final BatchPlanStep planStep;
21     private final AsyncFunction<RpcResult<ProcessFlatBatchOutput>, RpcResult<ProcessFlatBatchOutput>> stepFunction;
22
23     public BatchStepJob(final BatchPlanStep planStep,
24                         final AsyncFunction<RpcResult<ProcessFlatBatchOutput>, RpcResult<ProcessFlatBatchOutput>> stepFunction) {
25         this.planStep = planStep;
26         this.stepFunction = stepFunction;
27     }
28
29     public BatchPlanStep getPlanStep() {
30         return planStep;
31     }
32
33     public AsyncFunction<RpcResult<ProcessFlatBatchOutput>, RpcResult<ProcessFlatBatchOutput>> getStepFunction() {
34         return stepFunction;
35     }
36
37
38 }