Merge "Migrate NetconfHelloMessage's use of Optional"
[netconf.git] / netconf / netconf-monitoring / src / main / java / org / opendaylight / netconf / monitoring / osgi / 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.netconf.monitoring.osgi;
9
10 import com.google.common.collect.ImmutableSet;
11 import java.util.Set;
12 import org.opendaylight.netconf.api.monitoring.NetconfMonitoringService;
13 import org.opendaylight.netconf.mapping.api.NetconfOperation;
14 import org.opendaylight.netconf.mapping.api.NetconfOperationService;
15 import org.opendaylight.netconf.monitoring.Get;
16 import org.opendaylight.netconf.monitoring.GetSchema;
17
18 public class NetconfMonitoringOperationService implements NetconfOperationService {
19
20     private final ImmutableSet<NetconfOperation> netconfOperations;
21
22     public NetconfMonitoringOperationService(final NetconfMonitoringService monitor) {
23         netconfOperations = ImmutableSet.of(new Get(monitor), new GetSchema(monitor));
24     }
25
26     @Override
27     public Set<NetconfOperation> getNetconfOperations() {
28         return netconfOperations;
29     }
30
31     @Override
32     public void close() {
33     }
34
35 }