public final class SfcGeniusUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static BigInteger |
getDpnIdFromLowerLayerIfList(List<String> lowerLayerIfList)
Extracts the data plane node Id from a lower layer interface list.
|
static <T> CompletableFuture<T> |
toCompletableFuture(com.google.common.util.concurrent.ListenableFuture<T> listenableFuture,
Executor executor)
Adapts a
ListenableFuture to a CompletableFuture. |
public static <T> CompletableFuture<T> toCompletableFuture(com.google.common.util.concurrent.ListenableFuture<T> listenableFuture, Executor executor)
ListenableFuture to a CompletableFuture. The
provided executor is used to execute the callback as per
Futures.addCallback(ListenableFuture, FutureCallback, Executor)
On such callback, completion will be performed.T - the type of the listenable future.listenableFuture - the listenable future to adapt.executor - the executor where the callback execution is submitted.public static BigInteger getDpnIdFromLowerLayerIfList(List<String> lowerLayerIfList)
lowerLayerIfList - to extract the data plane node Id from.SfcGeniusRuntimeException - wrapping an IllegalArgumentException if the input
list does not contain one item only, or if the format of the
item is invalid.Copyright © 2017 OpenDaylight. All rights reserved.