当前位置: 首页>>代码示例>>Java>>正文


Java MountPointService类代码示例

本文整理汇总了Java中org.opendaylight.controller.md.sal.binding.api.MountPointService的典型用法代码示例。如果您正苦于以下问题:Java MountPointService类的具体用法?Java MountPointService怎么用?Java MountPointService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


MountPointService类属于org.opendaylight.controller.md.sal.binding.api包,在下文中一共展示了MountPointService类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createInstance

import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的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: start

import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的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

示例3: startBindingBroker

import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的package包/类
public void startBindingBroker() {
    checkState(this.executor != null, "Executor needs to be set");
    checkState(this.baNotifyImpl != null, "Notification Service must be started");

    this.baConsumerRpc = new BindingDOMRpcServiceAdapter(getDomRpcInvoker(), this.codec);
    this.baProviderRpc = new BindingDOMRpcProviderServiceAdapter(getDomRpcRegistry(), this.codec);

    this.baBrokerImpl = new RootBindingAwareBroker("test");

    final MountPointService mountService = new BindingDOMMountPointServiceAdapter(this.biMountImpl, this.codec);
    this.baBrokerImpl.setMountService(mountService);
    this.baBrokerImpl.setRpcBroker(new HeliumRpcProviderRegistry(this.baConsumerRpc, this.baProviderRpc));
    this.baBrokerImpl.setNotificationBroker(this.baNotifyImpl);
    this.baBrokerImpl.start();
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:16,代码来源:BindingTestContext.java

示例4: createMountPointAdapter

import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的package包/类
private MountPointService createMountPointAdapter(final BindingToNormalizedNodeCodec codec, final ProviderSession session) {
    final DOMMountPointService domService = session.getService(DOMMountPointService.class);
    if(domService != null) {
        return new BindingDOMMountPointServiceAdapter(domService, codec);
    }
    return null;
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:8,代码来源:BindingBrokerImplModule.java

示例5: onSessionInitiated

import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的package包/类
@Override
public void onSessionInitiated(ProviderContext session) {
	// Get the mount service provider
       this.mountService = session.getSALService(MountPointService.class);
}
 
开发者ID:sdnhub,项目名称:SDNHub_Opendaylight_Tutorial,代码行数:6,代码来源:MyRouterOrchestrator.java

示例6: getMountService

import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的package包/类
public MountPointService getMountService() {
    return mountService;
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:4,代码来源:RootBindingAwareBroker.java

示例7: setMountService

import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的package包/类
public void setMountService(final MountPointService mount) {
    this.mountService = mount;
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:4,代码来源:RootBindingAwareBroker.java

示例8: getBindingMountPointService

import org.opendaylight.controller.md.sal.binding.api.MountPointService; //导入依赖的package包/类
public MountPointService getBindingMountPointService() {
    return this.baBrokerImpl.getMountService();
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:4,代码来源:BindingTestContext.java


注:本文中的org.opendaylight.controller.md.sal.binding.api.MountPointService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。