|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.stack.Protocol org.jgroups.protocols.OLSR
public class OLSR
Field Summary |
---|
Fields inherited from class org.jgroups.stack.Protocol |
---|
down_prot, log, props, stack, stats, up_prot |
Constructor Summary | |
---|---|
OLSR()
|
Method Summary | |
---|---|
java.lang.Object |
down(org.jgroups.Event evt)
An event is to be sent down the stack. |
java.lang.String |
getName()
|
java.lang.Object |
passUpdateEvent(NetworkGraph<OLSRNode,Weight> networkGraph,
RoutingTable routingTable)
Passes an update (VIEW_CHANGE) event up to the stack |
java.lang.Object |
sendControlMessage(org.jgroups.Message msg)
Sends an OLSR control message. |
java.lang.Object |
sendDataMessage(org.jgroups.Message msg,
OLSRNode finalDest,
java.lang.String mcast_addr_name)
Sends an OLSR data message. |
java.lang.Object |
sendMessageUp(org.jgroups.Message msg)
Creates a new event with the message and sends a the message up in this protocol stack |
boolean |
setProperties(java.util.Properties props)
|
void |
start()
|
void |
stop()
|
java.lang.Object |
up(org.jgroups.Event evt)
An event was received from the layer below. |
Methods inherited from class org.jgroups.stack.Protocol |
---|
destroy, downThreadEnabled, dumpStats, enableStats, getDownProtocol, getProperties, getUpProtocol, init, printStats, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStats, setDownProtocol, setPropertiesInternal, setProtocolStack, setUpProtocol, statsEnabled, upThreadEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OLSR()
Method Detail |
---|
public java.lang.Object down(org.jgroups.Event evt)
down_prot.down()
. In case of a GET_ADDRESS event (which tries to
retrieve the stack's address from one of the bottom layers), the layer may need to send
a new response event back up the stack using up_prot.up()
.
down
in class org.jgroups.stack.Protocol
public java.lang.String getName()
getName
in class org.jgroups.stack.Protocol
public java.lang.Object passUpdateEvent(NetworkGraph<OLSRNode,Weight> networkGraph, RoutingTable routingTable)
passUpdateEvent
in interface OLSRMessageUpper
public java.lang.Object sendControlMessage(org.jgroups.Message msg)
OLSRMessageSender
sendControlMessage
in interface OLSRMessageSender
public java.lang.Object sendDataMessage(org.jgroups.Message msg, OLSRNode finalDest, java.lang.String mcast_addr_name)
OLSRMessageSender
sendDataMessage
in interface OLSRMessageSender
msg
- The message including the next hop address as the destination addressfinalDest
- The final destination of the messagepublic java.lang.Object sendMessageUp(org.jgroups.Message msg)
sendMessageUp
in interface OLSRMessageUpper
public boolean setProperties(java.util.Properties props)
setProperties
in class org.jgroups.stack.Protocol
public void start() throws java.lang.Exception
start
in class org.jgroups.stack.Protocol
java.lang.Exception
public void stop()
stop
in class org.jgroups.stack.Protocol
public java.lang.Object up(org.jgroups.Event evt)
down_prot.down()
or c) the event (or another event) is sent up
the stack using up_prot.up()
.
up
in class org.jgroups.stack.Protocol
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |