2 * Copyright (c) 2015 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.controller.netconf.monitoring;
11 import com.google.common.collect.Sets;
13 import org.opendaylight.controller.netconf.api.monitoring.NetconfMonitoringService;
14 import org.opendaylight.controller.netconf.mapping.api.NetconfOperation;
15 import org.opendaylight.controller.netconf.mapping.api.NetconfOperationService;
16 import org.opendaylight.controller.netconf.monitoring.Get;
17 import org.opendaylight.controller.netconf.monitoring.GetSchema;
19 public class NetconfMonitoringOperationService implements NetconfOperationService {
21 private final NetconfMonitoringService monitor;
23 public NetconfMonitoringOperationService(final NetconfMonitoringService monitor) {
24 this.monitor = monitor;
28 public Set<NetconfOperation> getNetconfOperations() {
29 return Sets.<NetconfOperation>newHashSet(new Get(monitor), new GetSchema(monitor));