Package org.jgroups.protocols.relay
Class Relayer2
- java.lang.Object
-
- org.jgroups.protocols.relay.Relayer
-
- org.jgroups.protocols.relay.Relayer2
-
public class Relayer2 extends Relayer
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
- Author:
- Bela Ban
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
Relayer2.Bridge
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Collection<Relayer2.Bridge>
bridges
The bridges which are used to connect to different sites
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected View
getBridgeView(java.lang.String cluster_name)
void
start(java.util.List<RelayConfig.BridgeConfig> bridge_configs, java.lang.String bridge_name, java.lang.String my_site_id)
Creates all bridges from site_config and connects them (joining the bridge clusters)void
stop()
Disconnects and destroys all bridges-
Methods 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 Detail
-
bridges
protected final java.util.Collection<Relayer2.Bridge> bridges
The bridges which are used to connect to different sites
-
-
Method Detail
-
start
public void start(java.util.List<RelayConfig.BridgeConfig> bridge_configs, java.lang.String bridge_name, java.lang.String my_site_id) throws java.lang.Throwable
Creates all bridges from site_config and connects them (joining the bridge clusters)- Parameters:
bridge_configs
- A list of bridge configurationsbridge_name
- The name of the local bridge channel, prefixed with '_'.my_site_id
- The ID of this site- Throws:
java.lang.Throwable
-
getBridgeView
protected View getBridgeView(java.lang.String cluster_name)
- Specified by:
getBridgeView
in classRelayer
-
-