本文整理汇总了Java中org.opendaylight.controller.sal.binding.api.RpcProviderRegistry类的典型用法代码示例。如果您正苦于以下问题:Java RpcProviderRegistry类的具体用法?Java RpcProviderRegistry怎么用?Java RpcProviderRegistry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RpcProviderRegistry类属于org.opendaylight.controller.sal.binding.api包,在下文中一共展示了RpcProviderRegistry类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createInstance
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
@Override
public RootBindingAwareBroker createInstance() {
final Broker domBroker = getDomAsyncBrokerDependency();
final BindingToNormalizedNodeCodec codec = getBindingMappingServiceDependency();
final ProviderSession session = domBroker.registerProvider(new DummyDOMProvider());
final MountPointService mount = createMountPointAdapter(codec,session);
final BindingDOMRpcServiceAdapter rpcConsumer = createRpcConsumer(codec,session);
final BindingDOMRpcProviderServiceAdapter rpcProvider = createRpcProvider(codec,session);
final RootBindingAwareBroker broker = new RootBindingAwareBroker(getIdentifier().getInstanceName());
final RpcProviderRegistry heliumRpcBroker = new HeliumRpcProviderRegistry(rpcConsumer, rpcProvider);
broker.setNotificationBroker(getNotificationServiceDependency());
if (getNotificationPublishServiceDependency() != null) {
broker.setNotificationPublishService(getNotificationPublishServiceDependency());
}
broker.setRpcBroker(heliumRpcBroker);
broker.setDataBroker(getRootDataBrokerDependency());
broker.setMountService(mount);
broker.start();
return broker;
}
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:23,代码来源:BindingBrokerImplModule.java
示例2: instantiateServiceInstance
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
public void instantiateServiceInstance() throws ExecutionException, InterruptedException {
final RpcProviderRegistry rpcRegistry = this.dependenciesProvider.getRpcProviderRegistry();
this.element = requireNonNull(rpcRegistry
.addRoutedRpcImplementation(NetworkTopologyPcepService.class, new TopologyRPCs(this.manager)));
this.element.registerPath(NetworkTopologyContext.class, this.configDependencies.getTopology());
this.network = requireNonNull(rpcRegistry
.addRoutedRpcImplementation(NetworkTopologyPcepProgrammingService.class,
new TopologyProgramming(this.scheduler, this.manager)));
this.network.registerPath(NetworkTopologyContext.class, this.configDependencies.getTopology());
this.manager.instantiateServiceInstance();
final ChannelFuture channelFuture = this.dependenciesProvider.getPCEPDispatcher()
.createServer(this.manager.getPCEPDispatcherDependencies());
channelFuture.get();
this.channel = channelFuture.channel();
}
开发者ID:opendaylight,项目名称:bgpcep,代码行数:19,代码来源:PCEPTopologyProvider.java
示例3: PCEPTopologyProviderBean
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
public PCEPTopologyProviderBean(
final ClusterSingletonServiceProvider cssp,
final BundleContext bundleContext,
final DataBroker dataBroker,
final PCEPDispatcher pcepDispatcher,
final RpcProviderRegistry rpcProviderRegistry,
final TopologySessionListenerFactory sessionListenerFactory,
final TopologySessionStatsRegistry stateRegistry) {
this.cssp = requireNonNull(cssp);
this.bundleContext = requireNonNull(bundleContext);
this.pcepDispatcher = requireNonNull(pcepDispatcher);
this.dataBroker = requireNonNull(dataBroker);
this.sessionListenerFactory = requireNonNull(sessionListenerFactory);
this.rpcProviderRegistry = requireNonNull(rpcProviderRegistry);
this.stateRegistry = requireNonNull(stateRegistry);
final List<PCEPCapability> capabilities = this.pcepDispatcher.getPCEPSessionNegotiatorFactory()
.getPCEPSessionProposalFactory().getCapabilities();
final boolean statefulCapability = capabilities.stream().anyMatch(PCEPCapability::isStateful);
if (!statefulCapability) {
throw new IllegalStateException(STATEFUL_NOT_DEFINED);
}
}
开发者ID:opendaylight,项目名称:bgpcep,代码行数:23,代码来源:PCEPTopologyProviderBean.java
示例4: createInstance
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
@Override
public java.lang.AutoCloseable createInstance() {
BindingAwareBroker bindingAwareBroker = getBindingAwareBrokerDependency();
DataBroker dataBrokerService = getDataBrokerDependency();
RpcProviderRegistry rpcProviderRegistry = getRpcRegistryDependency();
NotificationProviderService notificationService = getNotificationServiceDependency();
Preconditions.checkNotNull(bindingAwareBroker);
Preconditions.checkNotNull(dataBrokerService);
Preconditions.checkNotNull(rpcProviderRegistry);
Preconditions.checkNotNull(notificationService);
MyRouterOrchestrator orchestrator = new MyRouterOrchestrator(bindingAwareBroker, dataBrokerService, notificationService, rpcProviderRegistry);
LOG.info("Tutorial NetconfExercise (instance {}) initialized.", orchestrator);
return orchestrator;
}
开发者ID:sdnhub,项目名称:SDNHub_Opendaylight_Tutorial,代码行数:17,代码来源:TutorialNetconfExerciseModule.java
示例5: onRpcRegistry
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
private void onRpcRegistry(final Object service) {
log.debug("{}: Retrieved RpcProviderRegistry {}", logName(), service);
rpcRegistry = (RpcProviderRegistry)service;
// Now acquire SchemaService...
retrieveService("SchemaService", DOMSchemaService.class, this::onSchemaService);
}
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:8,代码来源:AbstractInvokableServiceMetadata.java
示例6: EventSourceTopology
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
public EventSourceTopology(final DataBroker dataBroker, final RpcProviderRegistry rpcRegistry) {
this.dataBroker = dataBroker;
this.rpcRegistry = rpcRegistry;
aggregatorRpcReg = rpcRegistry.addRpcImplementation(EventAggregatorService.class, this);
eventSourceService = rpcRegistry.getRpcService(EventSourceService.class);
final TopologyEventSource topologySource = new TopologyEventSourceBuilder().build();
final TopologyTypes1 topologyTypeAugment = new TopologyTypes1Builder().setTopologyEventSource(topologySource).build();
putData(OPERATIONAL, TOPOLOGY_TYPE_PATH, topologyTypeAugment);
LOG.info("EventSourceRegistry has been initialized");
}
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:13,代码来源:EventSourceTopology.java
示例7: start
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
public void start() {
checkState(controllerRoot == null, "Binding Aware Broker was already started.");
LOG.info("Starting Binding Aware Broker: {}", identifier);
controllerRoot = new RootSalInstance(getRpcProviderRegistry(), getNotificationBroker());
final ImmutableClassToInstanceMap.Builder<BindingAwareService> consBuilder = ImmutableClassToInstanceMap
.builder();
consBuilder.put(NotificationService.class, getRoot());
consBuilder.put(RpcConsumerRegistry.class, getRoot());
if (dataBroker != null) {
consBuilder.put(DataBroker.class, dataBroker);
}
consBuilder.put(MountPointService.class, mountService);
supportedConsumerServices = consBuilder.build();
final ImmutableClassToInstanceMap.Builder<BindingAwareService> provBuilder = ImmutableClassToInstanceMap
.builder();
provBuilder.putAll(supportedConsumerServices).put(NotificationProviderService.class, getRoot())
.put(RpcProviderRegistry.class, getRoot());
if (notificationPublishService != null) {
provBuilder.put(NotificationPublishService.class, notificationPublishService);
}
supportedProviderServices = provBuilder.build();
}
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:28,代码来源:RootBindingAwareBroker.java
示例8: MdsalLowLevelTestProvider
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
public MdsalLowLevelTestProvider(final RpcProviderRegistry rpcRegistry,
final DOMRpcProviderService domRpcService,
final ClusterSingletonServiceProvider singletonService,
final SchemaService schemaService,
final BindingNormalizedNodeSerializer bindingNormalizedNodeSerializer,
final NotificationPublishService notificationPublishService,
final NotificationService notificationService,
final DOMDataBroker domDataBroker,
final DOMDataTreeService domDataTreeService,
final DistributedShardFactory distributedShardFactory,
final DistributedDataStoreInterface configDataStore,
final ActorSystemProvider actorSystemProvider) {
this.rpcRegistry = rpcRegistry;
this.domRpcService = domRpcService;
this.singletonService = singletonService;
this.schemaService = schemaService;
this.bindingNormalizedNodeSerializer = bindingNormalizedNodeSerializer;
this.notificationPublishService = notificationPublishService;
this.notificationService = notificationService;
this.domDataBroker = domDataBroker;
this.domDataTreeService = domDataTreeService;
this.distributedShardFactory = distributedShardFactory;
this.configDataStore = configDataStore;
this.actorSystem = actorSystemProvider.getActorSystem();
this.prefixLeaderHandler = new PrefixLeaderHandler(domDataTreeService, bindingNormalizedNodeSerializer);
domDataTreeChangeService =
(DOMDataTreeChangeService) domDataBroker.getSupportedExtensions().get(DOMDataTreeChangeService.class);
registration = rpcRegistry.addRpcImplementation(OdlMdsalLowlevelControlService.class, this);
prefixShardHandler = new PrefixShardHandler(distributedShardFactory, domDataTreeService,
bindingNormalizedNodeSerializer);
}
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:36,代码来源:MdsalLowLevelTestProvider.java
示例9: BasicRpcTestProvider
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
public BasicRpcTestProvider(final RpcProviderRegistry rpcProviderRegistry,
final ClusterSingletonServiceProvider singletonService) {
this.rpcProviderRegistry = rpcProviderRegistry;
this.singletonService = singletonService;
singletonService.registerClusterSingletonService(this);
}
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:8,代码来源:BasicRpcTestProvider.java
示例10: GeniusProvider
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
@Inject
public GeniusProvider(final DataBroker dataBroker, final RpcProviderRegistry rpcProviderRegistry,
final IInterfaceManager interfaceMgr) {
this.dataBroker = dataBroker;
this.interfaceMgr = interfaceMgr;
this.interfaceManagerRpcService = rpcProviderRegistry.getRpcService(OdlInterfaceRpcService.class);
}
开发者ID:opendaylight,项目名称:netvirt,代码行数:8,代码来源:GeniusProvider.java
示例11: StatisticsProvider
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
@Inject
public StatisticsProvider(final DataBroker dataBroker, final RpcProviderRegistry rpcProviderRegistry,
CounterRetriever counterRetriever, IInterfaceManager interfaceManager, IMdsalApiManager mdsalApiManager,
IdManagerService idManagerService) {
this.dataBroker = dataBroker;
this.interfaceManager = interfaceManager;
this.rpcProviderRegistry = rpcProviderRegistry;
this.mdsalApiManager = mdsalApiManager;
this.counterRetriever = counterRetriever;
this.idManagerService = idManagerService;
}
开发者ID:opendaylight,项目名称:netvirt,代码行数:12,代码来源:StatisticsProvider.java
示例12: createInstance
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
@Override
public java.lang.AutoCloseable createInstance() {
DataBroker dataBrokerService = getDataBrokerDependency();
RpcProviderRegistry rpcProviderRegistry = getRpcRegistryDependency();
NotificationProviderService notificationService = getNotificationServiceDependency();
NegotiatorProvider provider = new NegotiatorProvider(dataBrokerService, rpcProviderRegistry, notificationService);
notificationService.registerNotificationListener(new TopologyChangeListenerImpl());
return provider;
}
开发者ID:geopet85,项目名称:virtuwind-example,代码行数:10,代码来源:NegotiatorModule.java
示例13: NegotiatorProvider
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
public NegotiatorProvider(DataBroker dataBroker, RpcProviderRegistry rpcProviderRegistry,
NotificationProviderService notificationService) {
this.dataBroker = dataBroker;
this.salFlowService = rpcProviderRegistry.getRpcService(SalFlowService.class);
this.notificationService = notificationService;
this.negotiatorService = rpcProviderRegistry.addRpcImplementation(NegotiatorService.class,
new QoSNegotiatorImpl(salFlowService, dataBroker));
}
开发者ID:geopet85,项目名称:virtuwind-example,代码行数:10,代码来源:NegotiatorProvider.java
示例14: createInstance
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
@Override
public java.lang.AutoCloseable createInstance() {
DataBroker dataBrokerService = getDataBrokerDependency();
RpcProviderRegistry rpcProviderRegistry = getRpcRegistryDependency();
NotificationProviderService notificationService = getNotificationServiceDependency();
MonitoringProvider provider = new MonitoringProvider(dataBrokerService, rpcProviderRegistry, notificationService);
InstanceIdentifier<Link> linkInstance = InstanceIdentifier.builder(NetworkTopology.class)
.child(Topology.class, new TopologyKey(new TopologyId("flow:1"))).child(Link.class).build();
dataBrokerService.registerDataChangeListener(LogicalDatastoreType.OPERATIONAL, linkInstance,
new TopologyListener(dataBrokerService, notificationService),
AsyncDataBroker.DataChangeScope.BASE);
return provider;
}
开发者ID:geopet85,项目名称:virtuwind-example,代码行数:16,代码来源:MonitoringModule.java
示例15: ReferenceProvider
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
public ReferenceProvider(DataBroker dataBroker, RpcProviderRegistry rpcProviderRegistry) {
this.dataBroker = dataBroker;
this.salFlowService = rpcProviderRegistry.getRpcService(SalFlowService.class);
this.referenceService = rpcProviderRegistry.addRpcImplementation(ReferenceService.class,
new ReferenceMonitorImpl(dataBroker));
ApplicationRegistryUtils.getInstance().setDb(dataBroker);
ApplicationRegistryUtils.getInstance().initializeDataTree();
}
开发者ID:geopet85,项目名称:virtuwind-example,代码行数:10,代码来源:ReferenceProvider.java
示例16: createInstance
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
@Override
public java.lang.AutoCloseable createInstance() {
DataBroker dataBrokerService = getDataBrokerDependency();
RpcProviderRegistry rpcProviderRegistry = getRpcRegistryDependency();
ReferenceProvider provider = new ReferenceProvider(dataBrokerService, rpcProviderRegistry);
return provider;
}
开发者ID:geopet85,项目名称:virtuwind-example,代码行数:8,代码来源:ReferenceModule.java
示例17: createInstance
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
@Override
public java.lang.AutoCloseable createInstance() {
// DataBroker initialization
DataBroker dataService = getDataBrokerDependency();
RpcProviderRegistry rpcService = getRpcRegistryDependency();
// PacketProcessingService initialization for sending packet_outs
PacketProcessingService packetProcessingService = rpcService
.<PacketProcessingService> getRpcService(PacketProcessingService.class);
// FlowObjective Service
AtriumFlowObjectiveService flowObjectivesService = rpcService
.<AtriumFlowObjectiveService> getRpcService(AtriumFlowObjectiveService.class);
// RoutingConfigService initialization
RoutingConfigService routingConfigService = this.getRoutingconfigDependency();
RoutingService routingService = getRoutingserviceDependency();
TunnellingConnectivityManager connectivityManager = new TunnellingConnectivityManager(dataService,
routingConfigService, packetProcessingService, flowObjectivesService);
// BGPRouter instantiation
Bgprouter bgpRouter = new Bgprouter(connectivityManager, dataService, routingConfigService, routingService,
packetProcessingService, flowObjectivesService);
getNotificationServiceDependency().registerNotificationListener(connectivityManager);
getBrokerDependency().registerConsumer(bgpRouter);
// Start BGPRouter
bgpRouter.start();
return bgpRouter;
}
开发者ID:onfsdn,项目名称:atrium-odl,代码行数:36,代码来源:BgpRouterImplModule.java
示例18: EndPointManager
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
public EndPointManager(DataBroker databroker, RpcProviderRegistry rpcRegistry, FabricContext fabricCtx) {
this.databroker = databroker;
this.rpcRegistry = rpcRegistry;
this.fabricCtx = fabricCtx;
DataTreeIdentifier<Endpoint> dtid = new DataTreeIdentifier<>(LogicalDatastoreType.OPERATIONAL,
Constants.DOM_ENDPOINTS_PATH.child(Endpoint.class));
epListener = databroker.registerDataTreeChangeListener(dtid, this);
}
开发者ID:opendaylight,项目名称:faas,代码行数:11,代码来源:EndPointManager.java
示例19: DistributedFabricListener
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
public DistributedFabricListener(InstanceIdentifier<FabricNode> fabricIId,
final DataBroker dataProvider,
final RpcProviderRegistry rpcRegistry,
final FabricContext fabricCtx) {
this.fabricIId = fabricIId;
this.fabricid = new FabricId(fabricIId.firstKeyOf(Node.class).getNodeId());
this.dataBroker = dataProvider;
this.rpcRegistry = rpcRegistry;
executor = fabricCtx.executor;
this.fabricCtx = fabricCtx;
epMgr = new EndPointManager(dataProvider, rpcRegistry, fabricCtx);
}
开发者ID:opendaylight,项目名称:faas,代码行数:15,代码来源:DistributedFabricListener.java
示例20: VxlanFabricProvider
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; //导入依赖的package包/类
public VxlanFabricProvider(final DataBroker dataProvider,
final RpcProviderRegistry rpcRegistry,
final FabricRendererRegistry rendererRegistry,
final List<GatewayMac> availableMacs) {
this.dataBroker = dataProvider;
this.rpcRegistry = rpcRegistry;
this.rendererRegistry = rendererRegistry;
this.availableMacs = availableMacs;
}
开发者ID:opendaylight,项目名称:faas,代码行数:10,代码来源:VxlanFabricProvider.java
注:本文中的org.opendaylight.controller.sal.binding.api.RpcProviderRegistry类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论