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.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
JdbcCapsdDbSyncer.LightWeightIfEntry(int nodeId,
int ifIndex,
String address,
char managementState,
char snmpPrimaryState,
int ifType)
Constructs a new LightWeightIfEntry object.
|
Modifier and Type | Method and Description |
---|---|
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) |
protected static final int NULL_IFINDEX
protected static final int NULL_IFTYPE
protected static final int LOOPBACK_IFTYPE
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 SNMPpublic 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()
Copyright © 2015. All rights reserved.