Package org.jgroups.protocols.relay
Class Bridge
- java.lang.Object
-
- org.jgroups.protocols.relay.Bridge
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Bridge(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 boolean
contains(java.util.List<Route> routes, Address addr)
void
receive(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 void
start()
protected void
stop()
java.lang.String
toString()
void
viewAccepted(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:Receiver
Called 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:
viewAccepted
in interfaceReceiver
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-