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
  • Field Details

  • Constructor Details

    • Relayer2

      public Relayer2(RELAY2 relay, Log log)
  • Method Details

    • start

      public void start(List<RelayConfig.BridgeConfig> bridge_configs, String bridge_name, String my_site_id) throws Throwable
      Creates all bridges from site_config and connects them (joining the bridge clusters)
      Parameters:
      bridge_configs - A list of bridge configurations
      bridge_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
      Specified by:
      stop in class Relayer
    • getBridgeView

      protected View getBridgeView(String cluster_name)
      Specified by:
      getBridgeView in class Relayer