2 * Copyright © 2017 AT&T, Inc. and others. All rights reserved.
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
8 package org.opendaylight.transportpce.pce.service;
10 import com.google.common.util.concurrent.ListenableFuture;
11 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev230925.CancelResourceReserveInput;
12 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev230925.CancelResourceReserveOutput;
13 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev230925.PathComputationRequestInput;
14 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev230925.PathComputationRequestOutput;
15 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev230925.PathComputationRerouteRequestInput;
16 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev230925.PathComputationRerouteRequestOutput;
19 * Path Computation Service.
21 public interface PathComputationService {
24 * Cancels a resource reservation.
26 * @param input CancelResourceReserveInput data
27 * @return output CancelResourceReserveOutput data
29 ListenableFuture<CancelResourceReserveOutput> cancelResourceReserve(CancelResourceReserveInput input);
32 * Requests a path computation.
34 * @param input PathComputationRequestInput data
35 * @return output PathComputationRequestOutput data
37 ListenableFuture<PathComputationRequestOutput> pathComputationRequest(PathComputationRequestInput input);
40 * Requests a path computation in order to reroute a service.
42 * @param input PathComputationRerouteRequestInput data
43 * @return output PathComputationRerouteRequestOutput data
45 ListenableFuture<PathComputationRerouteRequestOutput> pathComputationRerouteRequest(
46 PathComputationRerouteRequestInput input);