Package org.opendaylight.algo.impl
Class PathComputationServer
- java.lang.Object
-
- org.opendaylight.algo.impl.PathComputationServer
-
- All Implemented Interfaces:
AutoCloseable
,PathComputationProvider
,PathComputationService
,org.opendaylight.yangtools.yang.binding.RpcService
public class PathComputationServer extends Object implements AutoCloseable, PathComputationService, PathComputationProvider
Path Computation Algorithms provider.- Author:
- Olivier Dugeon
-
-
Constructor Summary
Constructors Constructor Description PathComputationServer(org.opendaylight.mdsal.binding.api.RpcProviderService rpcService, ConnectedGraphProvider graphProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetConstrainedPathOutput>>
getConstrainedPath(GetConstrainedPathInput input)
PathComputationAlgorithm
getPathComputationAlgorithm(ConnectedGraph runningGraph, AlgorithmType algorithmType)
Return Path Computation Algorithm object that corresponds to the requested type.void
init()
-
-
-
Constructor Detail
-
PathComputationServer
public PathComputationServer(org.opendaylight.mdsal.binding.api.RpcProviderService rpcService, ConnectedGraphProvider graphProvider)
-
-
Method Detail
-
init
public void init()
-
getConstrainedPath
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetConstrainedPathOutput>> getConstrainedPath(GetConstrainedPathInput input)
- Specified by:
getConstrainedPath
in interfacePathComputationService
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
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
-
-