Package org.opendaylight.algo.impl
Class PathComputationServer
java.lang.Object
org.opendaylight.algo.impl.PathComputationServer
- All Implemented Interfaces:
AutoCloseable
,PathComputationProvider
,GetConstrainedPath
,org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.Rpc<GetConstrainedPathInput,
,GetConstrainedPathOutput>> org.opendaylight.yangtools.yang.binding.Rpc<GetConstrainedPathInput,
GetConstrainedPathOutput>
@Singleton
public final class PathComputationServer
extends Object
implements AutoCloseable, PathComputationProvider, GetConstrainedPath
Path Computation Algorithms provider.
- Author:
- Olivier Dugeon
-
Field Summary
Fields inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.path.computation.rev220324.GetConstrainedPath
QNAME
-
Constructor Summary
ConstructorDescriptionPathComputationServer
(org.opendaylight.mdsal.binding.api.RpcProviderService rpcService, ConnectedGraphProvider graphProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getPathComputationAlgorithm
(ConnectedGraph runningGraph, AlgorithmType algorithmType) Return Path Computation Algorithm object that corresponds to the requested type.com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetConstrainedPathOutput>>
invoke
(GetConstrainedPathInput input) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.path.computation.rev220324.GetConstrainedPath
implementedInterface
-
Constructor Details
-
PathComputationServer
@Inject public PathComputationServer(org.opendaylight.mdsal.binding.api.RpcProviderService rpcService, ConnectedGraphProvider graphProvider)
-
-
Method Details
-
invoke
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetConstrainedPathOutput>> invoke(GetConstrainedPathInput input) - Specified by:
invoke
in interfaceGetConstrainedPath
- Specified by:
invoke
in interfaceorg.opendaylight.yangtools.yang.binding.Rpc<GetConstrainedPathInput,
GetConstrainedPathOutput>
-
close
@PreDestroy public void close()- Specified by:
close
in interfaceAutoCloseable
-
getPathComputationAlgorithm
public PathComputationAlgorithm getPathComputationAlgorithm(ConnectedGraph runningGraph, AlgorithmType algorithmType) Description copied from interface:PathComputationProvider
Return Path Computation Algorithm object that corresponds to the requested type.- Specified by:
getPathComputationAlgorithm
in interfacePathComputationProvider
- Parameters:
runningGraph
- Connected Graph on which path computation will runalgorithmType
- Algorithm supported types are: 'SPF', 'CSPF' and 'SAMCRA'- Returns:
- PathComputationAlgorithm
-