org.opennms.netmgt.capsd
Class JdbcCapsdDbSyncer.LightWeightIfEntry

java.lang.Object
  extended by org.opennms.netmgt.capsd.JdbcCapsdDbSyncer.LightWeightIfEntry
Enclosing class:
JdbcCapsdDbSyncer

protected static final class JdbcCapsdDbSyncer.LightWeightIfEntry
extends Object

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

NULL_IFINDEX

protected static final int NULL_IFINDEX
Represents NULL value for 'ifIndex' field in the ipInterface table

See Also:
Constant Field Values

NULL_IFTYPE

protected static final int NULL_IFTYPE
See Also:
Constant Field Values

LOOPBACK_IFTYPE

protected static final int LOOPBACK_IFTYPE
See Also:
Constant Field Values
Constructor Detail

JdbcCapsdDbSyncer.LightWeightIfEntry

public JdbcCapsdDbSyncer.LightWeightIfEntry(int nodeId,
                                            int ifIndex,
                                            String address,
                                            char managementState,
                                            char snmpPrimaryState,
                                            int ifType)

Constructs a new LightWeightIfEntry object.

Parameters:
nodeId - Interface's parent node id
ifIndex - Interface's index
address - Interface's ip address
managementState - Interface's management state
snmpPrimaryState - Interface's primary snmp interface state
ifType - Interface's type as determined via SNMP
Method Detail

getAddress

public String getAddress()

Returns the IP address of the interface.


getNodeId

public int getNodeId()

Returns the parent node id of the interface.


getIfIndex

public int getIfIndex()

Returns the ifIndex of the interface.


getIfType

public int getIfType()

Returns the ifType of the interface.


getManagementState

public char getManagementState()

getSnmpPrimaryState

public char getSnmpPrimaryState()

setSnmpPrimaryState

public void setSnmpPrimaryState(char state)

hasSnmpPrimaryStateChanged

public boolean hasSnmpPrimaryStateChanged()


Copyright © 2009. All Rights Reserved.