本文整理汇总了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);
}
示例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
}
示例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);
}
示例4: delegate
import org.opendaylight.controller.md.sal.dom.api.DOMNotificationService; //导入依赖的package包/类
@Override
protected abstract DOMNotificationService delegate();
示例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;
}
示例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);
}
示例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);
}
示例8: getDomService
import org.opendaylight.controller.md.sal.dom.api.DOMNotificationService; //导入依赖的package包/类
public DOMNotificationService getDomService() {
return domNotifService;
}
示例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;
}