public final class DbIpInterfaceEntry extends Object
Once loaded or create, the class tracks any changes and will write those
changes to the database whenever the store
method is invoked.
If a database connection is not passed to the store method, then a temporary
one is allocated to write the results.
NOTE: if the connection is passed in and is not in auto commit mode, then the
caller must call commit
to inform the database that the
transaction is complete.
Modifier and Type | Field and Description |
---|---|
static char |
SNMP_NOT_ELIGIBLE
Constant
SNMP_NOT_ELIGIBLE='N' |
static char |
SNMP_PRIMARY
Constant
SNMP_PRIMARY='P' |
static char |
SNMP_SECONDARY
Constant
SNMP_SECONDARY='S' |
static char |
SNMP_UNKNOWN
Constant
SNMP_UNKNOWN=' ' |
static char |
STATE_ALIAS
Constant
STATE_ALIAS='A' |
static char |
STATE_DELETED
Constant
STATE_DELETED='D' |
static char |
STATE_FORCED
Constant
STATE_FORCED='F' |
static char |
STATE_MANAGED
Constant
STATE_MANAGED='M' |
static char |
STATE_NOT_POLLED
Constant
STATE_NOT_POLLED='N' |
static char |
STATE_REMOTE
Constant
STATE_REMOTE='X' |
static char |
STATE_UNKNOWN
Constant
STATE_UNKNOWN=' ' |
static char |
STATE_UNMANAGED
Constant
STATE_UNMANAGED='U' |
Modifier and Type | Method and Description |
---|---|
static DbIpInterfaceEntry |
get(Connection db,
long nid,
InetAddress addr)
Retrieves a current record from the database based upon the key fields of
nodeID and ipAddr.
|
int |
getIfIndex()
Returns the current ifIndex
|
static void |
main(String[] args)
For debugging only
|
String |
toString()
Creates a string that displays the internal contents of the record.
|
public static final char SNMP_PRIMARY
SNMP_PRIMARY='P'
public static final char SNMP_SECONDARY
SNMP_SECONDARY='S'
public static final char SNMP_NOT_ELIGIBLE
SNMP_NOT_ELIGIBLE='N'
public static final char SNMP_UNKNOWN
SNMP_UNKNOWN=' '
public static final char STATE_MANAGED
STATE_MANAGED='M'
public static final char STATE_UNMANAGED
STATE_UNMANAGED='U'
public static final char STATE_ALIAS
STATE_ALIAS='A'
public static final char STATE_DELETED
STATE_DELETED='D'
public static final char STATE_FORCED
STATE_FORCED='F'
public static final char STATE_NOT_POLLED
STATE_NOT_POLLED='N'
public static final char STATE_REMOTE
STATE_REMOTE='X'
public static final char STATE_UNKNOWN
STATE_UNKNOWN=' '
public int getIfIndex()
public static DbIpInterfaceEntry get(Connection db, long nid, InetAddress addr) throws SQLException
db
- The databse connection used to load the entry.nid
- The node id keyaddr
- The internet address.SQLException
public String toString()
Copyright © 2015. All Rights Reserved.