本文整理匯總了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;
}