|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--SSF.OS.ProtocolSession
|
+--SSF.OS.OSPFv2.test.Reset
Implements a pseudo-protocol, which restarts an OSPF router at given times. The protocol can be configured as follows:
ProtocolSession[ name reset use SSF.OS.OSPF.test.Reset
stop 10.0
start 20.0
stop 30.0
start 40.0
...
]
| Inner Class Summary | |
(package private) class |
Reset.ResetTimer
Stops and starts an OSPF session. |
(package private) class |
Reset.TimerConfiguration
Holds the configuration of a single timer. |
| Field Summary | |
private Logger |
log
Logger for this class. |
private SSF.OS.ProtocolSession |
ospfSession
Reference to the associated OSPF Session. |
private static int |
START
Indicates, that the OSPF session should be started. |
private static int |
STOP
Indicates, that the OSPF session should be stopped. |
private java.util.Vector |
timerConfig
Stores the timer events from the configuration for later initialization of timers. |
private java.util.Vector |
timers
Stores all the timers used for starting and stopping OSPF. |
| Fields inherited from class SSF.OS.ProtocolSession |
inGraph, name, use |
| Constructor Summary | |
Reset()
Standard constructor. |
|
| Method Summary | |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Configure this protocol session. |
void |
init()
Initialize this protocol session. |
boolean |
push(SSF.OS.ProtocolMessage message,
SSF.OS.ProtocolSession fromSession)
Is called by other protocols for the exchange of protocol messages. |
| Methods inherited from class SSF.OS.ProtocolSession |
close, closed, debugIdentifier, inGraph, open, opened, pushAfterDelay, pushAfterDelayFailed, setGraph, version |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private SSF.OS.ProtocolSession ospfSession
init() method.private java.util.Vector timers
private java.util.Vector timerConfig
private Logger log
private static final int STOP
private static final int START
| Constructor Detail |
public Reset()
| Method Detail |
public void config(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
config in class SSF.OS.ProtocolSessioncfg - DML configuration for this protocol session.com.renesys.raceway.DML.configException -
public void init()
throws SSF.OS.ProtocolException
init in class SSF.OS.ProtocolSessionSSF.OS.ProtocolException -
public boolean push(SSF.OS.ProtocolMessage message,
SSF.OS.ProtocolSession fromSession)
throws SSF.OS.ProtocolException
push in class SSF.OS.ProtocolSessionSSF.OS.ProtocolException -
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||