Update release in docs/conf.yaml
[transportpce.git] / pce / src / main / java / org / opendaylight / transportpce / pce / gnpy / consumer / GnpyConsumer.java
1 /*
2  * Copyright © 2021 Orange, 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.gnpy.consumer;
9
10
11 import org.opendaylight.yang.gen.v1.gnpy.gnpy.api.rev220221.Request;
12 import org.opendaylight.yang.gen.v1.gnpy.path.rev220615.Result;
13
14
15 public interface GnpyConsumer {
16
17     /**
18      * Check if api is available or not.
19      * @return true os available, false otherwise.
20      */
21     boolean isAvailable();
22
23     /**
24      * Path computation request.
25      * @param request GnpyApi.
26      * @return Result the result of pat computation.
27      */
28     Result computePaths(Request request);
29
30 }