當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。