org.opennms.netmgt.capsd
Class DbIpInterfaceEntry

java.lang.Object
  extended by org.opennms.netmgt.capsd.DbIpInterfaceEntry

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.

Author:
James Zuo , Weave

Field Summary
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'
 
Method Summary
static void main(String[] args)
          For debugging only
 String toString()
          Creates a string that displays the internal contents of the record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SNMP_PRIMARY

public static final char SNMP_PRIMARY
Constant SNMP_PRIMARY='P'

See Also:
Constant Field Values

SNMP_SECONDARY

public static final char SNMP_SECONDARY
Constant SNMP_SECONDARY='S'

See Also:
Constant Field Values

SNMP_NOT_ELIGIBLE

public static final char SNMP_NOT_ELIGIBLE
Constant SNMP_NOT_ELIGIBLE='N'

See Also:
Constant Field Values

SNMP_UNKNOWN

public static final char SNMP_UNKNOWN
Constant SNMP_UNKNOWN=' '

See Also:
Constant Field Values

STATE_MANAGED

public static final char STATE_MANAGED
Constant STATE_MANAGED='M'

See Also:
Constant Field Values

STATE_UNMANAGED

public static final char STATE_UNMANAGED
Constant STATE_UNMANAGED='U'

See Also:
Constant Field Values

STATE_ALIAS

public static final char STATE_ALIAS
Constant STATE_ALIAS='A'

See Also:
Constant Field Values

STATE_DELETED

public static final char STATE_DELETED
Constant STATE_DELETED='D'

See Also:
Constant Field Values

STATE_FORCED

public static final char STATE_FORCED
Constant STATE_FORCED='F'

See Also:
Constant Field Values

STATE_NOT_POLLED

public static final char STATE_NOT_POLLED
Constant STATE_NOT_POLLED='N'

See Also:
Constant Field Values

STATE_REMOTE

public static final char STATE_REMOTE
Constant STATE_REMOTE='X'

See Also:
Constant Field Values

STATE_UNKNOWN

public static final char STATE_UNKNOWN
Constant STATE_UNKNOWN=' '

See Also:
Constant Field Values
Method Detail

toString

public String toString()
Creates a string that displays the internal contents of the record. This is mainly just used for debug output since the format is ad-hoc.

Overrides:
toString in class Object
Returns:
a String object.

main

public static void main(String[] args)
For debugging only

Parameters:
args - an array of String objects.


Copyright © 2011. All Rights Reserved.