|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.web.element.SnmpIfAdmin
public class SnmpIfAdmin
| Field Summary | |
|---|---|
static int |
DOWN
|
static int |
NULL
|
static int |
TESTING
|
static int |
UP
|
| Constructor Summary | |
|---|---|
SnmpIfAdmin(int nodeid,
InetAddress inetAddress,
String community)
Construct a SnmpIfAdmin object from inetaddress object |
|
SnmpIfAdmin(int nodeid,
org.opennms.netmgt.snmp.SnmpAgentConfig agent)
Construct a SnmpIfAdmin object from a SnmpPeer object |
|
| Method Summary | |
|---|---|
int |
getIfAdminStatus(int ifindex)
Get desired admin interface status. |
static String |
getReadableAdminStatus(int value)
Get status in readable human format. |
boolean |
isIfAdminStatusDown()
|
boolean |
isIfAdminStatusUp()
|
static boolean |
isValidState(int status)
|
boolean |
setIfAdmin(int ifindex,
int value)
Set admin interface status to value. |
boolean |
setIfAdminDown(int ifindex)
|
boolean |
setIfAdminUp(int ifindex)
Set admin interface status to "up". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NULL
public static final int UP
public static final int DOWN
public static final int TESTING
| Constructor Detail |
|---|
public SnmpIfAdmin(int nodeid,
org.opennms.netmgt.snmp.SnmpAgentConfig agent)
throws SocketException
snmpPeer - conn -
SocketException
Exception
public SnmpIfAdmin(int nodeid,
InetAddress inetAddress,
String community)
throws SocketException,
Exception
inetAddress - conn - community -
SocketException
Exception| Method Detail |
|---|
public boolean setIfAdminUp(int ifindex)
throws SQLException
Set admin interface status to "up".
ifindex - interface index to set
SnmpBadConversionException - Throw if returned code is not an integer
SQLException
public boolean setIfAdminDown(int ifindex)
throws SQLException
SQLExceptionpublic boolean isIfAdminStatusUp()
public boolean isIfAdminStatusDown()
public int getIfAdminStatus(int ifindex)
Get desired admin interface status.
ifindex - interface index to get
SnmpBadConversionException - Throw if returned code is not an integerpublic static String getReadableAdminStatus(int value)
Get status in readable human format.
ifindex - interface index to get
public boolean setIfAdmin(int ifindex,
int value)
throws SQLException
Set admin interface status to value.
ifindex - interface index to setvalue - desired interface status value
SnmpBadConversionException - Throw if returned code is not an integer
SQLExceptionpublic static boolean isValidState(int status)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||