Andrea Campanella | 58454b9 | 2016-04-01 15:19:00 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Laboratory |
Andrea Campanella | 58454b9 | 2016-04-01 15:19:00 -0700 | [diff] [blame] | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package org.onosproject.snmp.ctl; |
| 18 | |
| 19 | import com.btisystems.pronx.ems.core.model.DeviceEntityDescription; |
| 20 | import com.btisystems.pronx.ems.core.snmp.ISnmpSession; |
| 21 | import com.btisystems.pronx.ems.core.snmp.IVariableBindingHandler; |
| 22 | import com.btisystems.pronx.ems.core.snmp.SnmpIoException; |
| 23 | import com.btisystems.pronx.ems.core.snmp.WalkResponse; |
| 24 | import org.snmp4j.smi.OID; |
| 25 | import org.snmp4j.smi.VariableBinding; |
| 26 | |
| 27 | import java.io.IOException; |
| 28 | import java.net.InetAddress; |
| 29 | import java.util.List; |
| 30 | import java.util.Map; |
| 31 | |
| 32 | /** |
| 33 | * AdapterClass for ISnmpSession. |
| 34 | */ |
| 35 | public class ISnmpSessionAdapter implements ISnmpSession { |
| 36 | @Override |
| 37 | public String identifyDevice() { |
| 38 | return null; |
| 39 | } |
| 40 | |
| 41 | @Override |
| 42 | public String getVariable(String oid) { |
| 43 | return null; |
| 44 | } |
| 45 | |
| 46 | @Override |
| 47 | public Integer getVariableAsInt(String oid) { |
| 48 | return null; |
| 49 | } |
| 50 | |
| 51 | @Override |
| 52 | public WalkResponse walkDevice(IVariableBindingHandler networkDevice, List<OID> oids) |
| 53 | throws IOException { |
| 54 | return null; |
| 55 | } |
| 56 | |
| 57 | @Override |
Ray Milkey | 3b4ea05 | 2016-10-19 11:28:49 -0700 | [diff] [blame^] | 58 | public WalkResponse getTableRowsForColumns(IVariableBindingHandler iVariableBindingHandler, |
| 59 | Map<String, OID[]> map) { |
| 60 | return null; |
| 61 | } |
| 62 | |
| 63 | @Override |
Andrea Campanella | 58454b9 | 2016-04-01 15:19:00 -0700 | [diff] [blame] | 64 | public WalkResponse getTableRows(IVariableBindingHandler networkDevice, |
| 65 | Map<DeviceEntityDescription, List<OID>> tableIndexes) |
| 66 | throws IOException { |
| 67 | return null; |
| 68 | } |
| 69 | |
| 70 | @Override |
| 71 | public InetAddress getAddress() { |
| 72 | return null; |
| 73 | } |
| 74 | |
| 75 | @Override |
| 76 | public void close() throws IOException { |
| 77 | |
| 78 | } |
| 79 | |
| 80 | @Override |
| 81 | public void setVariables(VariableBinding[] bindings) { |
| 82 | |
| 83 | } |
| 84 | |
| 85 | @Override |
| 86 | public void checkErrorCodeAndDescription() throws SnmpIoException { |
| 87 | |
| 88 | } |
Ray Milkey | 3b4ea05 | 2016-10-19 11:28:49 -0700 | [diff] [blame^] | 89 | } |