org.opennms.netmgt.linkd
Class DbStpNodeEntry

java.lang.Object
  extended by org.opennms.netmgt.linkd.DbStpNodeEntry

public class DbStpNodeEntry
extends Object

DbStpNodeEntry class.

Version:
$Id: $
Author:
Antonio Russo

Field Summary
static int BASE_TYPE_SOURCEROUTE_ONLY
           
static int BASE_TYPE_SRT
           
static int BASE_TYPE_TRANSPARENT_ONLY
           
static int BASE_TYPE_UNKNOWN
          the bridge type
static char STATUS_ACTIVE
          The character returned if the entry is active
static char STATUS_DELETED
          It stats that node is deleted The character returned if the node is deleted
static char STATUS_NOT_POLLED
          The character returned if the entry is not active means last polled
static char STATUS_UNKNOWN
          The character returned if the entry type is unset/unknown.
static int STP_DECLB100
           
static int STP_IEEE8011D
           
static int STP_UNKNOWN
          the STP Protocol Specification
 
Method Summary
 String get_basebridgeaddress()
          get_basebridgeaddress
 int get_basenumports()
          get_basenumports
 int get_basetype()
          get_basetype
 int get_basevlan()
          get_basevlan
 String get_basevlanname()
          get_basevlanname
 int get_nodeId()
          get_nodeId
 String get_stpdesignatedroot()
          get_stpdesignatedroot
 int get_stppriority()
          get_stppriority
 int get_stpprotocolspecification()
          get_stpprotocolspecification
 int get_stprootcost()
          get_stprootcost
 int get_stprootport()
          get_stprootport
protected  boolean hasBaseBridgeAddressChanged()
           
protected  boolean hasBaseNumPortsChanged()
           
protected  boolean hasBaseTypeChanged()
           
protected  boolean hasBaseVlanNameChanged()
           
protected  boolean hasStatusChanged()
           
protected  boolean hasStpDesignatedRootChanged()
           
protected  boolean hasStpPriorityChanged()
           
protected  boolean hasStpProtocolSpecificationChanged()
           
protected  boolean hasStpRootCostChanged()
           
protected  boolean hasStpRootPortChanged()
           
protected  void set_basebridgeaddress(String basebridgeaddress)
           
protected  void set_basenumports(int basenumports)
           
protected  void set_basetype(int basetype)
           
protected  void set_basevlanname(String basevlanname)
           
protected  void set_lastpolltime(Date time)
          Sets the last poll time.
protected  void set_lastpolltime(String time)
          Sets the last poll time.
protected  void set_lastpolltime(Timestamp time)
          Sets the last poll time.
protected  void set_status(char status)
           
protected  void set_stpdesignatedroot(String stpdesignatedroot)
           
protected  void set_stppriority(int stppriority)
           
protected  void set_stpprotocolspecification(int stpprotocolspecification)
           
protected  void set_stprootcost(int stprootcost)
           
protected  void set_stprootport(int stprootport)
           
 String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATUS_ACTIVE

public static final char STATUS_ACTIVE
The character returned if the entry is active

See Also:
Constant Field Values

STATUS_NOT_POLLED

public static final char STATUS_NOT_POLLED
The character returned if the entry is not active means last polled

See Also:
Constant Field Values

STATUS_DELETED

public static final char STATUS_DELETED
It stats that node is deleted The character returned if the node is deleted

See Also:
Constant Field Values

STATUS_UNKNOWN

public static final char STATUS_UNKNOWN
The character returned if the entry type is unset/unknown.

See Also:
Constant Field Values

BASE_TYPE_UNKNOWN

public static final int BASE_TYPE_UNKNOWN
the bridge type

See Also:
Constant Field Values

BASE_TYPE_TRANSPARENT_ONLY

public static final int BASE_TYPE_TRANSPARENT_ONLY
See Also:
Constant Field Values

BASE_TYPE_SOURCEROUTE_ONLY

public static final int BASE_TYPE_SOURCEROUTE_ONLY
See Also:
Constant Field Values

BASE_TYPE_SRT

public static final int BASE_TYPE_SRT
See Also:
Constant Field Values

STP_UNKNOWN

public static final int STP_UNKNOWN
the STP Protocol Specification

See Also:
Constant Field Values

STP_DECLB100

public static final int STP_DECLB100
See Also:
Constant Field Values

STP_IEEE8011D

public static final int STP_IEEE8011D
See Also:
Constant Field Values
Method Detail

get_nodeId

public int get_nodeId()

get_nodeId

Returns:
a int.

get_basevlan

public int get_basevlan()

get_basevlan

Returns:
a int.

get_basevlanname

public String get_basevlanname()

get_basevlanname

Returns:
a String object.

set_basevlanname

protected void set_basevlanname(String basevlanname)

hasBaseVlanNameChanged

protected boolean hasBaseVlanNameChanged()

get_basebridgeaddress

public String get_basebridgeaddress()

get_basebridgeaddress

Returns:
a String object.

set_basebridgeaddress

protected void set_basebridgeaddress(String basebridgeaddress)

hasBaseBridgeAddressChanged

protected boolean hasBaseBridgeAddressChanged()

get_basenumports

public int get_basenumports()

get_basenumports

Returns:
a int.

set_basenumports

protected void set_basenumports(int basenumports)

hasBaseNumPortsChanged

protected boolean hasBaseNumPortsChanged()

get_basetype

public int get_basetype()

get_basetype

Returns:
a int.

set_basetype

protected void set_basetype(int basetype)

hasBaseTypeChanged

protected boolean hasBaseTypeChanged()

get_stpdesignatedroot

public String get_stpdesignatedroot()

get_stpdesignatedroot

Returns:
a String object.

set_stpdesignatedroot

protected void set_stpdesignatedroot(String stpdesignatedroot)

hasStpDesignatedRootChanged

protected boolean hasStpDesignatedRootChanged()

get_stppriority

public int get_stppriority()

get_stppriority

Returns:
a int.

set_stppriority

protected void set_stppriority(int stppriority)

hasStpPriorityChanged

protected boolean hasStpPriorityChanged()

get_stpprotocolspecification

public int get_stpprotocolspecification()

get_stpprotocolspecification

Returns:
a int.

set_stpprotocolspecification

protected void set_stpprotocolspecification(int stpprotocolspecification)

hasStpProtocolSpecificationChanged

protected boolean hasStpProtocolSpecificationChanged()

get_stprootcost

public int get_stprootcost()

get_stprootcost

Returns:
a int.

set_stprootcost

protected void set_stprootcost(int stprootcost)

hasStpRootCostChanged

protected boolean hasStpRootCostChanged()

get_stprootport

public int get_stprootport()

get_stprootport

Returns:
a int.

set_stprootport

protected void set_stprootport(int stprootport)

hasStpRootPortChanged

protected boolean hasStpRootPortChanged()

set_status

protected void set_status(char status)

hasStatusChanged

protected boolean hasStatusChanged()

set_lastpolltime

protected void set_lastpolltime(String time)
                         throws ParseException
Sets the last poll time.

Parameters:
time - The last poll time.
Throws:
ParseException

set_lastpolltime

protected void set_lastpolltime(Date time)
Sets the last poll time.

Parameters:
time - The last poll time.

set_lastpolltime

protected void set_lastpolltime(Timestamp time)
Sets the last poll time.

Parameters:
time - The last poll time.

toString

public String toString()

toString

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


Copyright © 2011. All Rights Reserved.