Package org.jgroups.protocols.relay
Class Relayer2.Bridge
- java.lang.Object
-
- org.jgroups.protocols.relay.Relayer2.Bridge
-
-
Field Summary
Fields Modifier and Type Field Description protected JChannelchannelprotected java.lang.Stringcluster_nameprotected Viewview
-
Constructor Summary
Constructors Modifier Constructor Description protectedBridge(JChannel ch, java.lang.String cluster, java.lang.String name, AddressGenerator gen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancontains(java.util.List<Route> routes, Address addr)protected java.util.Map<java.lang.String,java.util.List<Address>>extract(View view)Returns a map containing the site keys and addresses as valuesvoidreceive(Message msg)Called when a message is received.protected voidstart()protected voidstop()voidviewAccepted(View new_view)The view contains a list of SiteUUIDs.
-
-
-
Constructor Detail
-
Bridge
protected Bridge(JChannel ch, java.lang.String cluster, java.lang.String name, AddressGenerator gen) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
start
protected void start() throws java.lang.Exception- Throws:
java.lang.Exception
-
stop
protected void stop()
-
receive
public void receive(Message msg)
Description copied from interface:ReceiverCalled when a message is received.
-
viewAccepted
public void viewAccepted(View new_view)
The view contains a list of SiteUUIDs. Adjust the routing table based on the SiteUUIDs UUID and site- Specified by:
viewAcceptedin interfaceReceiver
-
-