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


Java DOMNotificationService类代码示例

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


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

示例1: createInstance

import org.opendaylight.controller.md.sal.dom.api.DOMNotificationService; //导入依赖的package包/类
@Override
public java.lang.AutoCloseable createInstance() {
    final BindingToNormalizedNodeCodec codec = getBindingMappingServiceDependency();
    final Broker.ProviderSession session = getDomAsyncBrokerDependency().registerProvider(new DummyDOMProvider());
    final DOMNotificationService notifService = session.getService(DOMNotificationService.class);
    return new BindingDOMNotificationServiceAdapter(codec.getCodecRegistry(), notifService);
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:8,代码来源:BindingNotificationAdapterModule.java

示例2: AmqpUserAgentFactory

import org.opendaylight.controller.md.sal.dom.api.DOMNotificationService; //导入依赖的package包/类
public AmqpUserAgentFactory(final DOMDataBroker broker, final DOMNotificationService domNotification) {
    this.dataBroker = Preconditions.checkNotNull(broker, "broker");
    this.notificationService = Preconditions.checkNotNull(domNotification, "domNotification");

    if (LOG.isDebugEnabled()) {
        AmqpPublisher.publish("Messaging4Transport Initiation with External Broker Successful");
    }

    amqpAgentsConfigReg = null;
    //  broker.registerDataTreeChangeListener(AGENT_CONFIG_PATH, this);
    // todo - 1: registerDataChangeListener
}
 
开发者ID:opendaylight,项目名称:messaging4transport,代码行数:13,代码来源:AmqpUserAgentFactory.java

示例3: createInstance

import org.opendaylight.controller.md.sal.dom.api.DOMNotificationService; //导入依赖的package包/类
@Override
public java.lang.AutoCloseable createInstance() {
    final DOMDataBroker dataBroker = getDomBrokerDependency()
            .registerConsumer(new NoopDOMConsumer()).getService(DOMDataBroker.class);
    final DOMNotificationService notifyService = getDomBrokerDependency()
            .registerConsumer(new NoopDOMConsumer())
            .getService(DOMNotificationService.class);
    return new AmqpUserAgentFactory(dataBroker, notifyService);
}
 
开发者ID:opendaylight,项目名称:messaging4transport,代码行数:10,代码来源:Messaging4TransportModule.java

示例4: delegate

import org.opendaylight.controller.md.sal.dom.api.DOMNotificationService; //导入依赖的package包/类
@Override
protected abstract DOMNotificationService delegate();
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:3,代码来源:ForwardingDOMNotificationService.java

示例5: BindingDOMNotificationServiceAdapter

import org.opendaylight.controller.md.sal.dom.api.DOMNotificationService; //导入依赖的package包/类
public BindingDOMNotificationServiceAdapter(final BindingNormalizedNodeSerializer codec, final DOMNotificationService domNotifService) {
    this.codec = codec;
    this.domNotifService = domNotifService;
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:5,代码来源:BindingDOMNotificationServiceAdapter.java

示例6: createInstance

import org.opendaylight.controller.md.sal.dom.api.DOMNotificationService; //导入依赖的package包/类
@Override
protected NotificationService createInstance(final BindingToNormalizedNodeCodec codec,
        final ClassToInstanceMap<DOMService> delegates) {
    final DOMNotificationService domNotification = delegates.getInstance(DOMNotificationService.class);
    return new BindingDOMNotificationServiceAdapter(codec.getCodecRegistry(), domNotification);
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:7,代码来源:BindingDOMNotificationServiceAdapter.java

示例7: getRequiredDelegates

import org.opendaylight.controller.md.sal.dom.api.DOMNotificationService; //导入依赖的package包/类
@Override
public Set<? extends Class<? extends DOMService>> getRequiredDelegates() {
    return ImmutableSet.of(DOMNotificationService.class);
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:5,代码来源:BindingDOMNotificationServiceAdapter.java

示例8: getDomService

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

示例9: createInstance

import org.opendaylight.controller.md.sal.dom.api.DOMNotificationService; //导入依赖的package包/类
@Override
public java.lang.AutoCloseable createInstance() {
    // The services are provided via blueprint so retrieve then from the OSGi service registry for
    // backwards compatibility.

    final List<AutoCloseable> closeables = new ArrayList<>();
    DOMNotificationService domNotificationService = newTracker(
            DOMNotificationService.class, closeables).waitForService(WaitingServiceTracker.FIVE_MINUTES);

    DOMNotificationPublishService domNotificationPublishService = newTracker(
            DOMNotificationPublishService.class, closeables).waitForService(WaitingServiceTracker.FIVE_MINUTES);

    DOMRpcService domRpcService = newTracker(
            DOMRpcService.class, closeables).waitForService(WaitingServiceTracker.FIVE_MINUTES);

    DOMRpcProviderService domRpcProvider = newTracker(
            DOMRpcProviderService.class, closeables).waitForService(WaitingServiceTracker.FIVE_MINUTES);

    DOMMountPointService mountService = newTracker(DOMMountPointService.class, closeables).
            waitForService(WaitingServiceTracker.FIVE_MINUTES);

    SchemaService globalSchemaService = newTracker(SchemaService.class, closeables).
            waitForService(WaitingServiceTracker.FIVE_MINUTES);

    final DOMDataBroker dataBroker = getAsyncDataBrokerDependency();

    final ClassToInstanceMap<BrokerService> services = MutableClassToInstanceMap.create();

    services.putInstance(DOMNotificationService.class, domNotificationService);
    services.putInstance(DOMNotificationPublishService.class, domNotificationPublishService);

    final SchemaService schemaService = getSchemaServiceImpl(globalSchemaService);
    services.putInstance(SchemaService.class, schemaService);

    services.putInstance(DOMDataBroker.class, dataBroker);

    services.putInstance(DOMRpcService.class, domRpcService);
    services.putInstance(DOMRpcProviderService.class, domRpcProvider);

    services.putInstance(DOMMountPointService.class, mountService);

    BrokerImpl broker = new BrokerImpl(domRpcService, domRpcProvider, services);
    broker.setDeactivator(() -> {
        for (AutoCloseable ac : closeables) {
            try {
                ac.close();
            } catch (Exception e) {
                LOG.warn("Exception while closing {}", ac, e);
            }
        }
    });

    return broker;
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:55,代码来源:DomBrokerImplModule.java


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