Class PollableSnmpInterface.SnmpMinimalPollInterface
- java.lang.Object
-
- org.opennms.netmgt.snmpinterfacepoller.pollable.PollableSnmpInterface.SnmpMinimalPollInterface
-
- Enclosing class:
- PollableSnmpInterface
public static class PollableSnmpInterface.SnmpMinimalPollInterface extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SnmpMinimalPollInterface(int ifindex, SnmpInterfaceStatus adminstatus, SnmpInterfaceStatus operstatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PollStatus
getAdminPollStatus()
SnmpInterfaceStatus
getAdminstatus()
int
getIfindex()
PollStatus
getOperPollStatus()
SnmpInterfaceStatus
getOperstatus()
PollStatus
getStatus()
void
setAdminPollStatus(PollStatus adminPollStatus)
void
setAdminstatus(SnmpInterfaceStatus adminstatus)
void
setIfindex(int ifindex)
void
setOperPollStatus(PollStatus operPollStatus)
void
setOperstatus(SnmpInterfaceStatus operstatus)
void
setStatus(PollStatus status)
-
-
-
Constructor Detail
-
SnmpMinimalPollInterface
public SnmpMinimalPollInterface(int ifindex, SnmpInterfaceStatus adminstatus, SnmpInterfaceStatus operstatus)
-
-
Method Detail
-
getIfindex
public int getIfindex()
-
setIfindex
public void setIfindex(int ifindex)
-
getAdminstatus
public SnmpInterfaceStatus getAdminstatus()
-
setAdminstatus
public void setAdminstatus(SnmpInterfaceStatus adminstatus)
- Parameters:
adminstatus
- valid values are up(1), down(2), testing(3) according to RFC 2863. Value will be set to invalid(0) in the case where an improper value is attempted to be set.
-
getOperstatus
public SnmpInterfaceStatus getOperstatus()
-
setOperstatus
public void setOperstatus(SnmpInterfaceStatus operstatus)
- Parameters:
operstatus
- valid values are up(1), down(2), testing(3), unknown(4), dormant(5), notPresent(6), lowerLayerDown(7) according to RFC 2863
-
getStatus
public PollStatus getStatus()
- Returns:
- PollStatus indicating whether getting ifAdminStatus and ifOperStatus succeeded
-
setStatus
public void setStatus(PollStatus status)
-
getOperPollStatus
public PollStatus getOperPollStatus()
- Returns:
- PollStatus indicating the status based on config and values of ifOperStatus and ifAdminStatus
-
setOperPollStatus
public void setOperPollStatus(PollStatus operPollStatus)
-
getAdminPollStatus
public PollStatus getAdminPollStatus()
- Returns:
- PollStatus indicating current admin status based on config and values retrieved
-
setAdminPollStatus
public void setAdminPollStatus(PollStatus adminPollStatus)
-
-