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 com.google.common.collect.Sets;
13 import org.opendaylight.controller.config.yang.netconf.mdsal.monitoring.GetSchema;
14 import org.opendaylight.netconf.api.monitoring.NetconfMonitoringService;
15 import org.opendaylight.netconf.mapping.api.NetconfOperation;
16 import org.opendaylight.netconf.mapping.api.NetconfOperationService;
18 public class NetconfMonitoringOperationService implements NetconfOperationService {
20 private static final String TESTTOOL_SESSION = "testtool-session";
22 private final NetconfMonitoringService monitor;
24 public NetconfMonitoringOperationService(final NetconfMonitoringService monitor) {
25 this.monitor = monitor;
29 public Set<NetconfOperation> getNetconfOperations() {
30 return Sets.newHashSet(new Get(monitor), new GetSchema(TESTTOOL_SESSION, monitor));