2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.netconf.test.tool.monitoring;
11 import java.util.Collections;
13 import org.opendaylight.netconf.api.capability.Capability;
14 import org.opendaylight.netconf.api.monitoring.CapabilityListener;
15 import org.opendaylight.netconf.mapping.api.NetconfOperationService;
16 import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory;
18 public class NetconfMonitoringOperationServiceFactory implements NetconfOperationServiceFactory,
21 private final NetconfMonitoringOperationService operationService;
23 private static final AutoCloseable AUTO_CLOSEABLE = () -> {
27 public NetconfMonitoringOperationServiceFactory(final NetconfMonitoringOperationService operationService) {
28 this.operationService = operationService;
32 public NetconfOperationService createService(final String netconfSessionIdForReporting) {
33 return operationService;
37 public Set<Capability> getCapabilities() {
38 return Collections.emptySet();
42 public AutoCloseable registerCapabilityListener(final CapabilityListener listener) {
43 return AUTO_CLOSEABLE;