Class DefaultPceServerProvider
- java.lang.Object
-
- org.opendaylight.bgpcep.pcep.server.provider.DefaultPceServerProvider
-
- All Implemented Interfaces:
AutoCloseable
,PceServerProvider
@Singleton public final class DefaultPceServerProvider extends Object implements PceServerProvider, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description DefaultPceServerProvider(ConnectedGraphProvider graphProvider, PathComputationProvider pathComputationProvider, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.RpcConsumerRegistry rpcConsumerRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
@Nullable PathComputation
getPathComputation()
Return the instance of the Path Computation server.ConnectedGraph
getTedGraph()
void
registerPcepTopology(org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology,org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.TopologyKey> topology, GraphKey key)
Register PCEP Topology into PCE Server to manage LSP.void
unRegisterPcepTopology(org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology,org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.TopologyKey> topology)
Un Register current PCEP Topology into PCE Server.
-
-
-
Constructor Detail
-
DefaultPceServerProvider
@Inject public DefaultPceServerProvider(ConnectedGraphProvider graphProvider, PathComputationProvider pathComputationProvider, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.RpcConsumerRegistry rpcConsumerRegistry)
-
-
Method Detail
-
close
@PreDestroy public void close()
- Specified by:
close
in interfaceAutoCloseable
-
getPathComputation
public @Nullable PathComputation getPathComputation()
Description copied from interface:PceServerProvider
Return the instance of the Path Computation server.- Specified by:
getPathComputation
in interfacePceServerProvider
- Returns:
- Path Computation Object
-
getTedGraph
public ConnectedGraph getTedGraph()
-
registerPcepTopology
public void registerPcepTopology(org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology,org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.TopologyKey> topology, GraphKey key)
Description copied from interface:PceServerProvider
Register PCEP Topology into PCE Server to manage LSP.- Specified by:
registerPcepTopology
in interfacePceServerProvider
- Parameters:
topology
- Configured PCEP Topologykey
- Configured Connected Graph Topology as GraphKey
-
unRegisterPcepTopology
public void unRegisterPcepTopology(org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology,org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.TopologyKey> topology)
Description copied from interface:PceServerProvider
Un Register current PCEP Topology into PCE Server.- Specified by:
unRegisterPcepTopology
in interfacePceServerProvider
- Parameters:
topology
- Configured PCEP Topology
-
-