SSF.OS.BGP4
Class DampInfo

java.lang.Object
  |
  +--SSF.OS.BGP4.DampInfo

public class DampInfo
extends java.lang.Object

Contains route flap damping information about a particular route.


Field Summary
 long lastUpdateTime
           
 IPaddress nlri
           
 java.lang.String peerNh
           
 double penalty
           
 int prevUpdate
           
 RouteInfo routeInfo
           
 boolean suppressed
           
 
Constructor Summary
DampInfo(RouteInfo routeInfo, BGPSession bgp)
          Constructs damping information about a route.
 
Method Summary
 double getPenalty()
          Returns the current penalty value of a route.
 boolean suppressed()
          Returns whether or not the route is suppressed.
 void update(boolean withdraw, RouteInfo routeInfo)
          Updates damping information.
 void updatePenalty(boolean withdraw)
          Updates the penalty value of a route.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

routeInfo

public RouteInfo routeInfo

penalty

public double penalty

lastUpdateTime

public long lastUpdateTime

suppressed

public boolean suppressed

prevUpdate

public int prevUpdate

peerNh

public java.lang.String peerNh

nlri

public IPaddress nlri
Constructor Detail

DampInfo

public DampInfo(RouteInfo routeInfo,
                BGPSession bgp)
Constructs damping information about a route.

Method Detail

suppressed

public boolean suppressed()
Returns whether or not the route is suppressed.


getPenalty

public double getPenalty()
Returns the current penalty value of a route.


updatePenalty

public void updatePenalty(boolean withdraw)
Updates the penalty value of a route.


update

public void update(boolean withdraw,
                   RouteInfo routeInfo)
Updates damping information.