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
 
 @Singleton public final class PathComputationServer extends Object implements AutoCloseable, PathComputationService, PathComputationProvider Path Computation Algorithms provider.- Author:
- Olivier Dugeon
 
- 
- 
Constructor SummaryConstructors Constructor Description PathComputationServer(org.opendaylight.mdsal.binding.api.RpcProviderService rpcService, ConnectedGraphProvider graphProvider)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetConstrainedPathOutput>>getConstrainedPath(GetConstrainedPathInput input)Invokeget-constrained-pathRPC.PathComputationAlgorithmgetPathComputationAlgorithm(ConnectedGraph runningGraph, AlgorithmType algorithmType)Return Path Computation Algorithm object that corresponds to the requested type.
 
- 
- 
- 
Constructor Detail- 
PathComputationServer@Inject public PathComputationServer(org.opendaylight.mdsal.binding.api.RpcProviderService rpcService, ConnectedGraphProvider graphProvider)
 
- 
 - 
Method Detail- 
getConstrainedPathpublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetConstrainedPathOutput>> getConstrainedPath(GetConstrainedPathInput input) Description copied from interface:PathComputationServiceInvokeget-constrained-pathRPC.- Specified by:
- getConstrainedPathin interface- PathComputationService
- Parameters:
- input- of- get-constrained-path
- Returns:
- output of get-constrained-path
 
 - 
close@PreDestroy public void close() - Specified by:
- closein interface- AutoCloseable
 
 - 
getPathComputationAlgorithmpublic PathComputationAlgorithm getPathComputationAlgorithm(ConnectedGraph runningGraph, AlgorithmType algorithmType) Description copied from interface:PathComputationProviderReturn Path Computation Algorithm object that corresponds to the requested type.- Specified by:
- getPathComputationAlgorithmin interface- PathComputationProvider
- Parameters:
- runningGraph- Connected Graph on which path computation will run
- algorithmType- Algorithm supported types are: 'SPF', 'CSPF' and 'SAMCRA'
- Returns:
- PathComputationAlgorithm
 
 
- 
 
-