8f443076b9680014847cdc2bb89f538c5a582d75
[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 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev200128.CancelResourceReserveInput;
12 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev200128.CancelResourceReserveOutput;
13 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev200128.PathComputationRequestInput;
14 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev200128.PathComputationRequestOutput;
15
16 /**
17  * Path Computation Service.
18  */
19 public interface PathComputationService {
20
21     /**
22      * Cancels a resource reservation.
23      *
24      * @param input CancelResourceReserveInput data
25      * @return output CancelResourceReserveOutput data
26      */
27     ListenableFuture<CancelResourceReserveOutput> cancelResourceReserve(CancelResourceReserveInput input);
28
29     /**
30      * Requests a path compuation.
31      *
32      * @param input PathComputationRequestInput data
33      * @return output PathComputationRequestOutput data
34      */
35     ListenableFuture<PathComputationRequestOutput> pathComputationRequest(PathComputationRequestInput input);
36
37 }