9ae4df429ce2af0377618d49715054ee49f302e7
[controller.git] / opendaylight / netconf / mdsal-netconf-monitoring / src / main / java / org / opendaylight / controller / netconf / monitoring / NetconfMonitoringOperationService.java
1 /*
2 * Copyright (c) 2013 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 package org.opendaylight.controller.netconf.monitoring;
9
10 import com.google.common.collect.Sets;
11 import java.util.Set;
12 import org.opendaylight.controller.netconf.api.monitoring.NetconfMonitoringService;
13 import org.opendaylight.controller.netconf.mapping.api.NetconfOperation;
14 import org.opendaylight.controller.netconf.mapping.api.NetconfOperationService;
15 import org.opendaylight.controller.netconf.monitoring.Get;
16 import org.opendaylight.controller.netconf.monitoring.GetSchema;
17
18 public class NetconfMonitoringOperationService implements NetconfOperationService {
19
20     private final NetconfMonitoringService monitor;
21
22     public NetconfMonitoringOperationService(final NetconfMonitoringService monitor) {
23         this.monitor = monitor;
24     }
25
26     @Override
27     public Set<NetconfOperation> getNetconfOperations() {
28         return Sets.<NetconfOperation>newHashSet(new Get(monitor), new GetSchema(monitor));
29     }
30
31     @Override
32     public void close() {
33     }
34
35 }