final StreamsConfiguration configuration) {
super(databindProvider, List.of(
streamSubscription,
- new RestconfDataServiceImpl(databindProvider, server, dataBroker, streamSubscription, actionService,
- listenersBroker, configuration),
+ new RestconfDataServiceImpl(databindProvider, server, dataBroker, streamSubscription, actionService),
new RestconfInvokeOperationsServiceImpl(databindProvider, server, mountPointService, listenersBroker,
configuration),
new RestconfOperationsServiceImpl(databindProvider, server),
import org.opendaylight.restconf.nb.rfc8040.legacy.NormalizedNodePayload;
import org.opendaylight.restconf.nb.rfc8040.rests.services.api.RestconfStreamsSubscriptionService;
import org.opendaylight.restconf.nb.rfc8040.rests.transactions.RestconfStrategy.CreateOrReplaceResult;
-import org.opendaylight.restconf.nb.rfc8040.streams.StreamsConfiguration;
-import org.opendaylight.restconf.nb.rfc8040.streams.listeners.ListenersBroker;
import org.opendaylight.restconf.nb.rfc8040.utils.parser.IdentifierCodec;
import org.opendaylight.yangtools.yang.common.Empty;
import org.opendaylight.yangtools.yang.common.ErrorTag;
private final RestconfStreamsSubscriptionService delegRestconfSubscrService;
private final DatabindProvider databindProvider;
- private final SubscribeToStreamUtil streamUtils;
private final DOMActionService actionService;
private final MdsalRestconfServer server;
@Deprecated(forRemoval = true)
private final DOMDataBroker dataBroker;
- private final ListenersBroker listenersBroker;
public RestconfDataServiceImpl(final DatabindProvider databindProvider, final MdsalRestconfServer server,
final DOMDataBroker dataBroker, final RestconfStreamsSubscriptionService delegRestconfSubscrService,
- final DOMActionService actionService, final ListenersBroker listenersBroker,
- final StreamsConfiguration configuration) {
+ final DOMActionService actionService) {
this.databindProvider = requireNonNull(databindProvider);
this.server = requireNonNull(server);
this.dataBroker = requireNonNull(dataBroker);
this.delegRestconfSubscrService = requireNonNull(delegRestconfSubscrService);
this.actionService = requireNonNull(actionService);
- this.listenersBroker = requireNonNull(listenersBroker);
- streamUtils = configuration.useSSE() ? SubscribeToStreamUtil.serverSentEvents(listenersBroker)
- : SubscribeToStreamUtil.webSockets(listenersBroker);
}
/**
import org.opendaylight.restconf.nb.rfc8040.AbstractInstanceIdentifierTest;
import org.opendaylight.restconf.nb.rfc8040.databind.DatabindContext;
import org.opendaylight.restconf.nb.rfc8040.rests.services.api.RestconfStreamsSubscriptionService;
-import org.opendaylight.restconf.nb.rfc8040.streams.StreamsConfiguration;
-import org.opendaylight.restconf.nb.rfc8040.streams.listeners.ListenersBroker;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
import org.opendaylight.yangtools.yang.data.impl.schema.Builders;
final var dataService = new RestconfDataServiceImpl(() -> DatabindContext.ofModel(IID_SCHEMA),
new MdsalRestconfServer(dataBroker, rpcService, mountPointService), dataBroker, restconfStreamSubService,
- actionService, new ListenersBroker(), new StreamsConfiguration(0, 1, 0, false));
+ actionService);
doReturn(true).when(asyncResponse).resume(captor.capture());
dataService.postDataJSON("instance-identifier-module:cont/cont1/reset",
import org.opendaylight.restconf.nb.rfc8040.databind.DatabindContext;
import org.opendaylight.restconf.nb.rfc8040.legacy.NormalizedNodePayload;
import org.opendaylight.restconf.nb.rfc8040.rests.services.api.RestconfStreamsSubscriptionService;
-import org.opendaylight.restconf.nb.rfc8040.streams.StreamsConfiguration;
-import org.opendaylight.restconf.nb.rfc8040.streams.listeners.ListenersBroker;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.patch.rev170222.yang.patch.yang.patch.Edit.Operation;
import org.opendaylight.yangtools.yang.common.ErrorTag;
import org.opendaylight.yangtools.yang.common.ErrorType;
dataService = new RestconfDataServiceImpl(() -> DatabindContext.ofModel(JUKEBOX_SCHEMA),
new MdsalRestconfServer(dataBroker, rpcService, mountPointService), dataBroker, delegRestconfSubscrService,
- actionService, new ListenersBroker(), new StreamsConfiguration(0, 1, 0, false));
+ actionService);
doReturn(Optional.of(mountPoint)).when(mountPointService)
.getMountPoint(any(YangInstanceIdentifier.class));
doReturn(Optional.of(FixedDOMSchemaService.of(JUKEBOX_SCHEMA))).when(mountPoint)