add gnpy results to pce:path-computation-request
[transportpce.git] / pce / src / main / java / org / opendaylight / transportpce / pce / service / PathComputationService.java
index 88f372a40951c4411561e5f13376913c94fa966a..72f7615089ac48c64cecea7951f804dbe5da0522 100644 (file)
@@ -7,10 +7,12 @@
  */
 package org.opendaylight.transportpce.pce.service;
 
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev171017.CancelResourceReserveInput;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev171017.CancelResourceReserveOutput;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev171017.PathComputationRequestInput;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev171017.PathComputationRequestOutput;
+import com.google.common.util.concurrent.ListenableFuture;
+
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev190624.CancelResourceReserveInput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev190624.CancelResourceReserveOutput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev190624.PathComputationRequestInput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev190624.PathComputationRequestOutput;
 
 /**
  * Path Computation Service.
@@ -23,7 +25,7 @@ public interface PathComputationService {
      * @param input CancelResourceReserveInput data
      * @return output CancelResourceReserveOutput data
      */
-    CancelResourceReserveOutput cancelResourceReserve(CancelResourceReserveInput input);
+    ListenableFuture<CancelResourceReserveOutput> cancelResourceReserve(CancelResourceReserveInput input);
 
     /**
      * Requests a path compuation.
@@ -31,6 +33,6 @@ public interface PathComputationService {
      * @param input PathComputationRequestInput data
      * @return output PathComputationRequestOutput data
      */
-    PathComputationRequestOutput pathComputationRequest(PathComputationRequestInput input);
+    ListenableFuture<PathComputationRequestOutput> pathComputationRequest(PathComputationRequestInput input);
 
 }