org.opennms.netmgt.linkd
Class DbStpInterfaceEntry

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

public class DbStpInterfaceEntry
extends Object

DbStpInterfaceEntry class.

Version:
$Id: $
Author:
Antonio Russo

Field Summary
static char STATUS_ACTIVE
          The character returned if the entry is active
static char STATUS_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 or unknown.
static int STP_PORT_BLOCKING
           
static int STP_PORT_BROKEN
           
static int STP_PORT_DISABLED
          the STP Bridge Port States
static int STP_PORT_FORWARDING
           
static int STP_PORT_LEARNING
           
static int STP_PORT_LISTENING
           
 
Method Summary
protected  int get_bridgeport()
          get_bridgeport
protected  int get_ifindex()
          get_ifindex
protected  Timestamp get_lastpolltime()
           
protected  int get_nodeId()
          get_nodeId
protected  char get_status()
           
protected  String get_stpdesignatedport()
          get_stpdesignatedport
protected  String get_stpportdesignatedbridge()
          get_stpportdesignatedbridge
protected  int get_stpportdesignatedcost()
          get_stpportdesignatedcost
protected  String get_stpportdesignatedroot()
          get_stpportdesignatedroot
protected  int get_stpportpathcost()
          get_stpportpathcost
protected  int get_stpportstate()
          get_stpportstate
protected  int get_stpvlan()
          get_stpvlan
protected  boolean hasIfIndexChanged()
           
protected  boolean hasStatusChanged()
           
protected  boolean hasStpPortDesgnatedCostChanged()
           
protected  boolean hasStpPortDesignatedBridgeChanged()
           
protected  boolean hasStpPortDesignatedPortChanged()
           
protected  boolean hasStpPortDesignatedRootChanged()
           
protected  boolean hasStpPortPathCostChanged()
           
protected  boolean hasStpPortStateChanged()
           
protected  void set_ifindex(int index)
           
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_stpportdesignatedbridge(String stpportdesignatedbridge)
           
protected  void set_stpportdesignatedcost(int stpportdesignatedcost)
           
protected  void set_stpportdesignatedport(String stpportdesignatedport)
           
protected  void set_stpportdesignatedroot(String stpportdesignatedroot)
           
protected  void set_stpportpathcost(int stpportpathcost)
           
protected  void set_stpportstate(int stpportstate)
           
 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
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 or unknown.

See Also:
Constant Field Values

STP_PORT_DISABLED

public static final int STP_PORT_DISABLED
the STP Bridge Port States

See Also:
Constant Field Values

STP_PORT_BLOCKING

public static final int STP_PORT_BLOCKING
See Also:
Constant Field Values

STP_PORT_LISTENING

public static final int STP_PORT_LISTENING
See Also:
Constant Field Values

STP_PORT_LEARNING

public static final int STP_PORT_LEARNING
See Also:
Constant Field Values

STP_PORT_FORWARDING

public static final int STP_PORT_FORWARDING
See Also:
Constant Field Values

STP_PORT_BROKEN

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

get_nodeId

protected int get_nodeId()

get_nodeId

Returns:
a int.

get_bridgeport

protected int get_bridgeport()

get_bridgeport

Returns:
a int.

get_stpvlan

protected int get_stpvlan()

get_stpvlan

Returns:
a int.

get_ifindex

protected int get_ifindex()

get_ifindex

Returns:
a int.

set_ifindex

protected void set_ifindex(int index)

hasIfIndexChanged

protected boolean hasIfIndexChanged()

get_stpportstate

protected int get_stpportstate()

get_stpportstate

Returns:
a int.

set_stpportstate

protected void set_stpportstate(int stpportstate)

hasStpPortStateChanged

protected boolean hasStpPortStateChanged()

get_stpportpathcost

protected int get_stpportpathcost()

get_stpportpathcost

Returns:
a int.

set_stpportpathcost

protected void set_stpportpathcost(int stpportpathcost)

hasStpPortPathCostChanged

protected boolean hasStpPortPathCostChanged()

get_stpportdesignatedroot

protected String get_stpportdesignatedroot()

get_stpportdesignatedroot

Returns:
a String object.

set_stpportdesignatedroot

protected void set_stpportdesignatedroot(String stpportdesignatedroot)

hasStpPortDesignatedRootChanged

protected boolean hasStpPortDesignatedRootChanged()

get_stpportdesignatedcost

protected int get_stpportdesignatedcost()

get_stpportdesignatedcost

Returns:
a int.

set_stpportdesignatedcost

protected void set_stpportdesignatedcost(int stpportdesignatedcost)

hasStpPortDesgnatedCostChanged

protected boolean hasStpPortDesgnatedCostChanged()

get_stpportdesignatedbridge

protected String get_stpportdesignatedbridge()

get_stpportdesignatedbridge

Returns:
a String object.

set_stpportdesignatedbridge

protected void set_stpportdesignatedbridge(String stpportdesignatedbridge)

hasStpPortDesignatedBridgeChanged

protected boolean hasStpPortDesignatedBridgeChanged()

get_stpdesignatedport

protected String get_stpdesignatedport()

get_stpdesignatedport

Returns:
a String object.

set_stpportdesignatedport

protected void set_stpportdesignatedport(String stpportdesignatedport)

hasStpPortDesignatedPortChanged

protected boolean hasStpPortDesignatedPortChanged()

get_status

protected char get_status()
Returns:

set_status

protected void set_status(char status)

hasStatusChanged

protected boolean hasStatusChanged()

get_lastpolltime

protected Timestamp get_lastpolltime()
Returns:

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.