|
||||||||
| 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.Configurator
Implements a pseudo-protocol, which updates an OSPF session at times, configured in the DML file. The utility can be configured as follows:
ProtocolSession[ name configurator use SSF.OS.OSPF.test.Configurator
update [
time
| Inner Class Summary | |
class |
Configurator.UpdateEvent
Container class for a single update event |
| Field Summary | |
private java.lang.String[] |
area_values
the configuration keys for an OSPF area configuration |
private java.util.Vector |
configEvents
the configuration events |
private java.util.Enumeration |
EventQueue
the queue with pending events |
private java.lang.String[] |
if_values
the configuration keys for an OSPF interface configuration |
private SSF.OS.ProtocolSession |
ospfSession
reference to the associated ospf-session |
private Configurator.UpdateEvent |
pendingEvent
the event, which is coming up next |
private SSF.OS.Timer |
timer
the event timer |
| Fields inherited from class SSF.OS.ProtocolSession |
inGraph, name, use |
| Constructor Summary | |
Configurator()
Constructor |
|
| Method Summary | |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Configures this ProtocolSession according to the DML config |
private Configurator.UpdateEvent |
getNextEvent()
Receives the next event from the event queue |
void |
init()
Initializes the Configurator and starts all timers |
boolean |
push(SSF.OS.ProtocolMessage message,
SSF.OS.ProtocolSession fromSession)
push method - must be implemented, since this is a ProtocolSession. |
private void |
sendMessage(com.renesys.raceway.DML.Configuration cfgUpdate)
Sends a configuration update to OSPF |
private void |
timerEvent()
The callback method of the timer |
| 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
private java.util.Vector configEvents
private java.util.Enumeration EventQueue
private Configurator.UpdateEvent pendingEvent
private SSF.OS.Timer timer
private java.lang.String[] area_values
private java.lang.String[] if_values
| Constructor Detail |
public Configurator()
| Method Detail |
public void config(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
config in class SSF.OS.ProtocolSession
public void init()
throws SSF.OS.ProtocolException
init in class SSF.OS.ProtocolSessionprivate Configurator.UpdateEvent getNextEvent()
private void timerEvent()
private void sendMessage(com.renesys.raceway.DML.Configuration cfgUpdate)
throws SSF.OS.ProtocolException
public boolean push(SSF.OS.ProtocolMessage message,
SSF.OS.ProtocolSession fromSession)
throws SSF.OS.ProtocolException
push in class SSF.OS.ProtocolSession
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||