public class SnmpDevice extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
SnmpDevice(String snmpHost,
int snmpPort,
String community) |
| Modifier and Type | Method and Description |
|---|---|
String |
deviceInfo()
This would return host IP and host Port, used by this particular SNMP Device.
|
void |
disconnect()
This will terminate the device connection.
|
String |
getCommunity() |
DeviceState |
getDeviceState()
Retrieve current state of the device.
|
String |
getSnmpHost()
This will return the IP used connect ssh on the device.
|
int |
getSnmpPort()
This will return the SSH Port used connect the device.
|
void |
init()
This will try to connect to SNMP device.
|
boolean |
isActive()
Check whether the device is in Active state.
|
boolean |
isReachable()
This api is intended to know whether the device is connected or not.
|
void |
setDeviceState(DeviceState deviceState)
This is set the state information for the device.
|
public void init()
public String deviceInfo()
public void disconnect()
public boolean isReachable()
public String getSnmpHost()
public int getSnmpPort()
public String getCommunity()
public DeviceState getDeviceState()
public void setDeviceState(DeviceState deviceState)
deviceState - Next Device Statepublic boolean isActive()
Copyright © 2016. All rights reserved.