|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.capsd.JdbcCapsdDbSyncer.LightWeightIfEntry
protected static final class JdbcCapsdDbSyncer.LightWeightIfEntry
LightWeightIfEntry is designed to hold specific information about an IP interface in the database such as its IP address, its parent node id, and its managed status and represents a lighter weight version of the DbIpInterfaceEntry class.
| Field Summary | |
|---|---|
protected static int |
LOOPBACK_IFTYPE
|
protected static int |
NULL_IFINDEX
Represents NULL value for 'ifIndex' field in the ipInterface table |
protected static int |
NULL_IFTYPE
|
| Constructor Summary | |
|---|---|
JdbcCapsdDbSyncer.LightWeightIfEntry(int nodeId,
int ifIndex,
String address,
char managementState,
char snmpPrimaryState,
int ifType)
Constructs a new LightWeightIfEntry object. |
|
| Method Summary | |
|---|---|
String |
getAddress()
Returns the IP address of the interface. |
int |
getIfIndex()
Returns the ifIndex of the interface. |
int |
getIfType()
Returns the ifType of the interface. |
char |
getManagementState()
|
int |
getNodeId()
Returns the parent node id of the interface. |
char |
getSnmpPrimaryState()
|
boolean |
hasSnmpPrimaryStateChanged()
|
void |
setSnmpPrimaryState(char state)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int NULL_IFINDEX
protected static final int NULL_IFTYPE
protected static final int LOOPBACK_IFTYPE
| Constructor Detail |
|---|
public JdbcCapsdDbSyncer.LightWeightIfEntry(int nodeId,
int ifIndex,
String address,
char managementState,
char snmpPrimaryState,
int ifType)
Constructs a new LightWeightIfEntry object.
nodeId - Interface's parent node idifIndex - Interface's indexaddress - Interface's ip addressmanagementState - Interface's management statesnmpPrimaryState - Interface's primary snmp interface stateifType - Interface's type as determined via SNMP| Method Detail |
|---|
public String getAddress()
Returns the IP address of the interface.
public int getNodeId()
Returns the parent node id of the interface.
public int getIfIndex()
Returns the ifIndex of the interface.
public int getIfType()
Returns the ifType of the interface.
public char getManagementState()
public char getSnmpPrimaryState()
public void setSnmpPrimaryState(char state)
public boolean hasSnmpPrimaryStateChanged()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||