org.opennms.netmgt.linkd
Class DbVlanEntry

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

public class DbVlanEntry
extends Object

DbVlanEntry class.

Version:
$Id: $
Author:
Antonio Russo

Field Summary
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 VLAN_STATUS_MTU_TOO_BIG_FOR_DEVICE
           
static int VLAN_STATUS_MTU_TOO_BIG_FOR_TRUNK
           
static int VLAN_STATUS_OPERATIONAL
           
static int VLAN_STATUS_SUSPENDED
           
static int VLAN_STATUS_UNKNOWN
           
static int VLAN_TYPE_DEPRECATED
           
static int VLAN_TYPE_ETHERNET
           
static int VLAN_TYPE_FDDI
           
static int VLAN_TYPE_FDDINET
           
static int VLAN_TYPE_TOKEN_RING
           
static int VLAN_TYPE_TRNET
           
static int VLAN_TYPE_UNKNOWN
           
 
Method Summary
protected  Timestamp get_lastpolltime()
           
protected  int get_nodeId()
          get_nodeId
protected  char get_status()
           
protected  int getVlanId()
          getVlanId
protected  String getVlanName()
          getVlanName
protected  int getVlanStatus()
          getVlanStatus
protected  int getVlanType()
          getVlanType
protected  boolean hasBaseStatusChanged()
           
protected  boolean hasBaseTypeChanged()
           
protected  boolean hasBaseVlanNameChanged()
           
protected  boolean hasStatusChanged()
           
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 setVlanName(String vlanname)
           
protected  void setVlanStatus(int vlanstatus)
           
protected  void setVlanType(int vlantype)
           
 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

VLAN_TYPE_UNKNOWN

public static final int VLAN_TYPE_UNKNOWN
See Also:
Constant Field Values

VLAN_TYPE_ETHERNET

public static final int VLAN_TYPE_ETHERNET
See Also:
Constant Field Values

VLAN_TYPE_FDDI

public static final int VLAN_TYPE_FDDI
See Also:
Constant Field Values

VLAN_TYPE_TOKEN_RING

public static final int VLAN_TYPE_TOKEN_RING
See Also:
Constant Field Values

VLAN_TYPE_FDDINET

public static final int VLAN_TYPE_FDDINET
See Also:
Constant Field Values

VLAN_TYPE_TRNET

public static final int VLAN_TYPE_TRNET
See Also:
Constant Field Values

VLAN_TYPE_DEPRECATED

public static final int VLAN_TYPE_DEPRECATED
See Also:
Constant Field Values

VLAN_STATUS_UNKNOWN

public static final int VLAN_STATUS_UNKNOWN
See Also:
Constant Field Values

VLAN_STATUS_OPERATIONAL

public static final int VLAN_STATUS_OPERATIONAL
See Also:
Constant Field Values

VLAN_STATUS_SUSPENDED

public static final int VLAN_STATUS_SUSPENDED
See Also:
Constant Field Values

VLAN_STATUS_MTU_TOO_BIG_FOR_DEVICE

public static final int VLAN_STATUS_MTU_TOO_BIG_FOR_DEVICE
See Also:
Constant Field Values

VLAN_STATUS_MTU_TOO_BIG_FOR_TRUNK

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

get_nodeId

protected int get_nodeId()

get_nodeId

Returns:
a int.

getVlanId

protected int getVlanId()

getVlanId

Returns:
a int.

getVlanName

protected String getVlanName()

getVlanName

Returns:
a String object.

setVlanName

protected void setVlanName(String vlanname)

hasBaseVlanNameChanged

protected boolean hasBaseVlanNameChanged()

getVlanType

protected int getVlanType()

getVlanType

Returns:
a int.

setVlanType

protected void setVlanType(int vlantype)

hasBaseTypeChanged

protected boolean hasBaseTypeChanged()

getVlanStatus

protected int getVlanStatus()

getVlanStatus

Returns:
a int.

setVlanStatus

protected void setVlanStatus(int vlanstatus)

hasBaseStatusChanged

protected boolean hasBaseStatusChanged()

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.