Remove netconf from commons/opendaylight pom
[controller.git] / opendaylight / netconf / mdsal-netconf-monitoring / src / main / java / org / opendaylight / controller / netconf / monitoring / NetconfMonitoringOperationService.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.netconf.monitoring;
10
11 import com.google.common.collect.Sets;
12 import java.util.Set;
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;
18
19 public class NetconfMonitoringOperationService implements NetconfOperationService {
20
21     private final NetconfMonitoringService monitor;
22
23     public NetconfMonitoringOperationService(final NetconfMonitoringService monitor) {
24         this.monitor = monitor;
25     }
26
27     @Override
28     public Set<NetconfOperation> getNetconfOperations() {
29         return Sets.<NetconfOperation>newHashSet(new Get(monitor), new GetSchema(monitor));
30     }
31
32     @Override
33     public void close() {
34     }
35
36 }