public class DefaultSnmpDevice extends Object implements SnmpDevice
| Constructor and Description |
|---|
DefaultSnmpDevice(String snmpHost,
int snmpPort,
String username,
String community) |
| Modifier and Type | Method and Description |
|---|---|
org.onosproject.net.DeviceId |
deviceId()
Return the SNMP device deviceID.
|
String |
deviceInfo()
Returns host IP and host Port, used by this particular SNMP Device.
|
void |
disconnect()
Terminates the device connection.
|
String |
getCommunity()
Retrieves the community (password) of the device.
|
String |
getSnmpHost()
Returns the IP used connect ssh on the device.
|
int |
getSnmpPort()
Returns the SSH Port used connect the device.
|
String |
getUsername()
Retrieves the username of the device.
|
boolean |
isReachable()
Retrieves the device state.
|
public String deviceInfo()
SnmpDevicedeviceInfo in interface SnmpDevicepublic void disconnect()
SnmpDevicedisconnect in interface SnmpDevicepublic boolean isReachable()
SnmpDeviceisReachable in interface SnmpDevicepublic String getSnmpHost()
SnmpDevicegetSnmpHost in interface SnmpDevicepublic int getSnmpPort()
SnmpDevicegetSnmpPort in interface SnmpDevicepublic String getUsername()
SnmpDevicegetUsername in interface SnmpDevicepublic String getCommunity()
SnmpDevicegetCommunity in interface SnmpDevicepublic org.onosproject.net.DeviceId deviceId()
SnmpDevicedeviceId in interface SnmpDevice