Package org.jgroups.protocols.relay
Class Bridge
- java.lang.Object
-
- org.jgroups.protocols.relay.Bridge
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBridge(JChannel ch, Relayer3 r, java.lang.String cluster_name, java.lang.String channel_name, AddressGenerator addr_generator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static booleancontains(java.util.List<Route> routes, Address addr)voidreceive(Message msg)Called when a message is received.protected static java.util.List<java.lang.String>removedRoutes(View old_view, View new_view)Returns a list of routes that were in old_view, but are no longer in new_viewprotected voidstart()protected voidstop()java.lang.StringtoString()voidviewAccepted(View new_view)The view contains a list of SiteUUIDs.
-
-
-
Constructor Detail
-
Bridge
protected Bridge(JChannel ch, Relayer3 r, java.lang.String cluster_name, java.lang.String channel_name, AddressGenerator addr_generator) 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 and site- Specified by:
viewAcceptedin interfaceReceiver
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-