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