Package org.jgroups.protocols.relay
Class Relayer3
java.lang.Object
org.jgroups.protocols.relay.Relayer
org.jgroups.protocols.relay.Relayer3
Maintains bridges and routing table. Does the routing of outgoing messages and dispatches incoming messages to
the right members.
A Relayer cannot be reused once it is stopped, but a new Relayer instance must be created.
- Since:
- 3.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Collection<Bridge> The bridges which are used to connect to different sites -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ViewgetBridgeView(String cluster_name) start(RelayConfig.SiteConfig site_cfg, String bridge_name, String my_site_id) Creates all bridges from site_config and connects them (joining the bridge clusters)voidstop()Disconnects and destroys all bridgesMethods inherited from class org.jgroups.protocols.relay.Relayer
addRoutes, done, getForwardingRouteMatching, getNumRoutes, getRoute, getRoute, getRoutes, getRoutes, getSiteNames, hasRouteTo, isExcluded, log, printRoutes, relay, removeRoute, toString
-
Field Details
-
bridges
The bridges which are used to connect to different sites
-
-
Constructor Details
-
Relayer3
-
-
Method Details
-
start
public CompletableFuture<Relayer> start(RelayConfig.SiteConfig site_cfg, String bridge_name, String my_site_id) throws Throwable Creates all bridges from site_config and connects them (joining the bridge clusters)- Parameters:
site_cfg- The SiteConfigurationbridge_name- The name of the local bridge channel, prefixed with '_'.my_site_id- The ID of this site- Throws:
Throwable
-
stop
public void stop()Disconnects and destroys all bridges -
getBridgeView
- Specified by:
getBridgeViewin classRelayer
-