org.opennms.netmgt.linkd
Class DbIpRouteInterfaceEntry

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

public final class DbIpRouteInterfaceEntry
extends Object

Author:
Antonio Russo

Field Summary
static int ROUTE_TYPE_DIRECT
           
static int ROUTE_TYPE_INDIRECT
           
static int ROUTE_TYPE_INVALID
           
static int ROUTE_TYPE_OTHER
          Integer representing route 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.
 
Method Summary
protected  int get_ifindex()
          get_ifindex
protected  Timestamp get_lastpolltime()
           
protected  int get_nodeId()
           
protected  String get_routedest()
           
protected  String get_routemask()
           
protected  int get_routemetric1()
          get_routemetric1
protected  int get_routemetric2()
          get_routemetric2
protected  int get_routemetric3()
          get_routemetric3
protected  int get_routemetric4()
          get_routemetric4
protected  int get_routemetric5()
          get_routemetric5
protected  String get_routenexthop()
          get_routenexthop
protected  int get_routeproto()
          get_routeproto
protected  int get_routetype()
          get_routetype
protected  char get_status()
           
protected  boolean hasIfIndexChanged()
           
protected  boolean hasRouteMaskChanged()
           
protected  boolean hasRouteMetric1Changed()
           
protected  boolean hasRouteMetric2Changed()
           
protected  boolean hasRouteMetric3Changed()
           
protected  boolean hasRouteMetric4Changed()
           
protected  boolean hasRouteMetric5Changed()
           
protected  boolean hasRouteNextHopChanged()
           
protected  boolean hasRouteProtoChanged()
           
protected  boolean hasRouteTypeChanged()
           
protected  boolean hasStatusChanged()
           
protected  void set_ifindex(int ifindex)
           
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_routemask(String routemask)
           
protected  void set_routemetric1(int routemetric)
           
protected  void set_routemetric2(int routemetric)
           
protected  void set_routemetric3(int routemetric)
           
protected  void set_routemetric4(int routemetric)
           
protected  void set_routemetric5(int routemetric)
           
protected  void set_routenexthop(String routenexthop)
           
protected  void set_routeproto(int routeproto)
           
protected  void set_routetype(int routetype)
           
protected  void set_status(char status)
           
 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

ROUTE_TYPE_OTHER

public static final int ROUTE_TYPE_OTHER
Integer representing route type

See Also:
Constant Field Values

ROUTE_TYPE_INVALID

public static final int ROUTE_TYPE_INVALID
See Also:
Constant Field Values

ROUTE_TYPE_DIRECT

public static final int ROUTE_TYPE_DIRECT
See Also:
Constant Field Values

ROUTE_TYPE_INDIRECT

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

get_nodeId

protected int get_nodeId()
Returns:

get_routedest

protected String get_routedest()
Returns:

get_routemask

protected String get_routemask()
Returns:

set_routemask

protected void set_routemask(String routemask)

hasRouteMaskChanged

protected boolean hasRouteMaskChanged()

get_routenexthop

protected String get_routenexthop()

get_routenexthop

Returns:
a String object.

set_routenexthop

protected void set_routenexthop(String routenexthop)

hasRouteNextHopChanged

protected boolean hasRouteNextHopChanged()

get_ifindex

protected int get_ifindex()

get_ifindex

Returns:
a int.

set_ifindex

protected void set_ifindex(int ifindex)

hasIfIndexChanged

protected boolean hasIfIndexChanged()

get_routemetric1

protected int get_routemetric1()

get_routemetric1

Returns:
a int.

set_routemetric1

protected void set_routemetric1(int routemetric)

hasRouteMetric1Changed

protected boolean hasRouteMetric1Changed()

get_routemetric2

protected int get_routemetric2()

get_routemetric2

Returns:
a int.

set_routemetric2

protected void set_routemetric2(int routemetric)

hasRouteMetric2Changed

protected boolean hasRouteMetric2Changed()

get_routemetric3

protected int get_routemetric3()

get_routemetric3

Returns:
a int.

set_routemetric3

protected void set_routemetric3(int routemetric)

hasRouteMetric3Changed

protected boolean hasRouteMetric3Changed()

get_routemetric4

protected int get_routemetric4()

get_routemetric4

Returns:
a int.

set_routemetric4

protected void set_routemetric4(int routemetric)

hasRouteMetric4Changed

protected boolean hasRouteMetric4Changed()

get_routemetric5

protected int get_routemetric5()

get_routemetric5

Returns:
a int.

set_routemetric5

protected void set_routemetric5(int routemetric)

hasRouteMetric5Changed

protected boolean hasRouteMetric5Changed()

get_routetype

protected int get_routetype()

get_routetype

Returns:
a int.

set_routetype

protected void set_routetype(int routetype)

hasRouteTypeChanged

protected boolean hasRouteTypeChanged()

get_routeproto

protected int get_routeproto()

get_routeproto

Returns:
a int.

set_routeproto

protected void set_routeproto(int routeproto)

hasRouteProtoChanged

protected boolean hasRouteProtoChanged()

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.