|
||||||||||
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.OMOLSR
public class OMOLSR
An Overlay Multicast protocol. Multicast messages are intercepted by this protocol and are sent by means of several unicast messages. This protocol constructs a multicast mesh in order to send multicast messages in a efficient manner.
Field Summary |
---|
Fields inherited from class org.jgroups.stack.Protocol |
---|
down_prot, log, props, stack, stats, up_prot |
Constructor Summary | |
---|---|
OMOLSR()
|
Method Summary | |
---|---|
java.lang.Object |
down(org.jgroups.Event evt)
An event is to be sent down the stack. |
java.lang.Object |
eventDown(org.jgroups.Event evt)
|
java.lang.Object |
eventUp(org.jgroups.Event evt)
|
java.lang.String |
getName()
|
void |
sendUnicastDataMessage(org.jgroups.Message msg)
|
boolean |
setProperties(java.util.Properties props)
sets the properties of the OMOLSR protocol. |
void |
setUnicastHandlerListener(UnicastHandlerListener listener)
|
void |
start()
Starts the protocol, sets the port where broadcast messages are received |
void |
stop()
Stops the protocol, by unregistering itself from the OMcastHandler |
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 OMOLSR()
Method Detail |
---|
public java.lang.Object down(org.jgroups.Event evt)
PassDown
. 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
passUp()
.
down
in class org.jgroups.stack.Protocol
public java.lang.Object eventDown(org.jgroups.Event evt)
public java.lang.Object eventUp(org.jgroups.Event evt)
public java.lang.String getName()
getName
in class org.jgroups.stack.Protocol
Protocol.getName()
public void sendUnicastDataMessage(org.jgroups.Message msg)
msg
- public boolean setProperties(java.util.Properties props)
setProperties
in class org.jgroups.stack.Protocol
props
- - a property set containing only OMOLSR properties
public void setUnicastHandlerListener(UnicastHandlerListener listener)
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)
PassDown
or c) the event (or another event) is sent up
the stack using PassUp
.
up
in class org.jgroups.stack.Protocol
evt
- - the event that has been sent from the layer below
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |