Upgrade to Service Path 1.7
[transportpce.git] / pce / src / main / java / org / opendaylight / transportpce / pce / service / PathComputationService.java
1 /*
2  * Copyright © 2017 AT&T, 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 package org.opendaylight.transportpce.pce.service;
9
10 import com.google.common.util.concurrent.ListenableFuture;
11
12 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev200128.CancelResourceReserveInput;
13 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev200128.CancelResourceReserveOutput;
14 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev200128.PathComputationRequestInput;
15 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev200128.PathComputationRequestOutput;
16
17 /**
18  * Path Computation Service.
19  */
20 public interface PathComputationService {
21
22     /**
23      * Cancels a resource reservation.
24      *
25      * @param input CancelResourceReserveInput data
26      * @return output CancelResourceReserveOutput data
27      */
28     ListenableFuture<CancelResourceReserveOutput> cancelResourceReserve(CancelResourceReserveInput input);
29
30     /**
31      * Requests a path compuation.
32      *
33      * @param input PathComputationRequestInput data
34      * @return output PathComputationRequestOutput data
35      */
36     ListenableFuture<PathComputationRequestOutput> pathComputationRequest(PathComputationRequestInput input);
37
38 }