|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.blocks.PullPushAdapter urv.machannel.MChannelImpl
public class MChannelImpl
This class provides an implementation of the MChannel interface in order to group communication with topology awareness.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jgroups.blocks.PullPushAdapter |
---|
org.jgroups.blocks.PullPushAdapter.PullHeader |
Field Summary |
---|
Fields inherited from class org.jgroups.blocks.PullPushAdapter |
---|
listener, listeners, log, membership_listeners, receiver_thread, transport |
Constructor Summary | |
---|---|
MChannelImpl(org.jgroups.Transport channel,
MulticastAddress mcastAddr,
java.lang.String channelName,
EmulationController controller)
|
Method Summary | |
---|---|
void |
close()
Stops the channel |
java.lang.String |
getChannelName()
This method retrieves the name of the channel |
java.util.List<java.net.InetAddress> |
getInetAddressesOfGroupMebers()
Return the InetAddresses of the group members |
org.jgroups.Address |
getLocalAddress()
Returns the Address of the Local Node |
NetworkGraph<OLSRNode,Weight> |
getNetworkGraph()
Retrieves the NetworkGraph with the topology below us |
org.jgroups.View |
getView()
Returns a view with the members of the current group |
protected void |
notifyViewChange(org.jgroups.View topologyEvent)
|
void |
registerListener(java.io.Serializable identifier,
org.jgroups.MessageListener l)
Removes a Message listener from the transport layer |
void |
run()
Reentrant run(): message reception is serialized, then the listener is notified of the message reception |
void |
send(org.jgroups.Address dst,
org.jgroups.Address src,
java.io.Serializable content)
Sends a message to a selected peer |
void |
send(org.jgroups.Message msg)
Sends a message to all peers in a group |
void |
sendToNeighbors(java.io.Serializable content)
Sends a message to all the neighbors of the localNode in this group |
void |
unregisterListener(java.io.Serializable identifier)
Add a Message listener in the transport layer |
Methods inherited from class org.jgroups.blocks.PullPushAdapter |
---|
addMembershipListener, channelClosed, channelConnected, channelDisconnected, channelReconnected, channelShunned, getListener, getTransport, handleMessage, notifyBlock, notifySuspect, notifyUnblock, removeMembershipListener, send, setListener, setMembershipListener, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MChannelImpl(org.jgroups.Transport channel, MulticastAddress mcastAddr, java.lang.String channelName, EmulationController controller)
Method Detail |
---|
public org.jgroups.Address getLocalAddress()
MChannel
getLocalAddress
in interface MChannel
public NetworkGraph<OLSRNode,Weight> getNetworkGraph()
MChannel
getNetworkGraph
in interface MChannel
public org.jgroups.View getView()
MChannel
getView
in interface MChannel
View
public java.lang.String getChannelName()
MChannel
getChannelName
in interface MChannel
public void run()
run
in interface java.lang.Runnable
run
in class org.jgroups.blocks.PullPushAdapter
public void send(org.jgroups.Message msg)
send
in interface MChannel
send
in class org.jgroups.blocks.PullPushAdapter
public void send(org.jgroups.Address dst, org.jgroups.Address src, java.io.Serializable content)
send
in interface MChannel
public void sendToNeighbors(java.io.Serializable content)
sendToNeighbors
in interface MChannel
public java.util.List<java.net.InetAddress> getInetAddressesOfGroupMebers()
MChannel
getInetAddressesOfGroupMebers
in interface MChannel
public void close()
MChannel
close
in interface MChannel
protected void notifyViewChange(org.jgroups.View topologyEvent)
notifyViewChange
in class org.jgroups.blocks.PullPushAdapter
public void registerListener(java.io.Serializable identifier, org.jgroups.MessageListener l)
MChannel
registerListener
in interface MChannel
registerListener
in class org.jgroups.blocks.PullPushAdapter
PullPushAdapter
public void unregisterListener(java.io.Serializable identifier)
MChannel
unregisterListener
in interface MChannel
unregisterListener
in class org.jgroups.blocks.PullPushAdapter
PullPushAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |