SSF.OS.BGP4.Timing
Class EventTimer

java.lang.Object
  |
  +--com.renesys.raceway.SSF.Entity
        |
        +--SSF.OS.Timer
              |
              +--SSF.OS.BGP4.Timing.Timer
                    |
                    +--SSF.OS.BGP4.Timing.EventTimer

public class EventTimer
extends Timer

Used to represent most of BGP's timers, with the exception of the Minimum Route Advertisement Interval Timer, which has its own class (MRAITimer).


Field Summary
 int event_type
          The type of event associated with this timer.
 PeerEntry peer
          The entry of the peer to whom this timer applies.
 
Fields inherited from class SSF.OS.BGP4.Timing.Timer
CONNRETRY, HOLD, is_expired, KEEPALIVE, MASO, MRAI
 
Constructor Summary
EventTimer(BGPSession b, int dt, int tt, PeerEntry pe)
          A basic constructor to initialize member data.
EventTimer(BGPSession b, long dt, int et, PeerEntry pe)
          A basic constructor to initialize member data.
 
Method Summary
 void callback()
          Sends a timeout message to the owning BGPSession when the timer expires.
 
Methods inherited from class SSF.OS.BGP4.Timing.Timer
canc, is_expired, set_at, set_expiry, when_set
 
Methods inherited from class SSF.OS.Timer
cancel, isCancelled, set, set
 
Methods inherited from class com.renesys.raceway.SSF.Entity
alignment, alignTo, coalignedEntities, inChannels, init, joinAll, makeIndependent, now, outChannels, pauseAll, playRole, processes, resetSimulation, resumeAll, startAll, startAll, startClient, startClient, startServer, Vx, Yx
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

event_type

public int event_type
The type of event associated with this timer. Possible types are listed in class BGPSession.


peer

public PeerEntry peer
The entry of the peer to whom this timer applies.

Constructor Detail

EventTimer

public EventTimer(BGPSession b,
                  long dt,
                  int et,
                  PeerEntry pe)
A basic constructor to initialize member data.

Parameters:
b - The BGPSession with which this timer is associated.
dt - The length of time (in ticks) for which the timer is set.
pe - The entry of the peer to whom this timer applies.

EventTimer

public EventTimer(BGPSession b,
                  int dt,
                  int tt,
                  PeerEntry pe)
A basic constructor to initialize member data. For convenience, it takes an integer instead of a long.

Parameters:
b - The BGPSession with which this timer is associated.
dt - The length of time (in ticks) for which the timer is set.
tt - The type of timeout associated with this timer.
pe - The entry of the peer to whom this timer applies.
See Also:
EventTimer(BGPSession,long,int,PeerEntry)
Method Detail

callback

public void callback()
Sends a timeout message to the owning BGPSession when the timer expires.

Specified by:
callback in class Timer