Package org.jgroups.protocols.relay
Class Bridge
java.lang.Object
org.jgroups.protocols.relay.Bridge
- All Implemented Interfaces:
Receiver
Class which joins the bridge cluster and send and receives messages to/from other sites. Also generates
sitesUp()/sitesDown() notifications from view changes
- Since:
- 5.2.17
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleanvoidCalled when a message is received.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()toString()voidviewAccepted(View new_view) The view contains a list of SiteUUIDs.
-
Field Details
-
channel
-
rel
-
relay
-
log
-
cluster_name
-
view
-
join_timeout
protected final long join_timeout
-
-
Constructor Details
-
Method Details
-
start
- Throws:
Exception
-
stop
protected void stop() -
receive
Description copied from interface:ReceiverCalled when a message is received. -
viewAccepted
The view contains a list of SiteUUIDs. Adjust the routing table based on the SiteUUIDs and site- Specified by:
viewAcceptedin interfaceReceiver
-
toString
-
contains
-
removedRoutes
Returns a list of routes that were in old_view, but are no longer in new_view
-