Class Relayer2.Bridge

java.lang.Object
org.jgroups.protocols.relay.Relayer2.Bridge
All Implemented Interfaces:
Receiver
Enclosing class:
Relayer2

protected class Relayer2.Bridge extends Object implements Receiver
  • Field Details

    • channel

      protected JChannel channel
    • cluster_name

      protected final String cluster_name
    • view

      protected View view
  • Constructor Details

  • Method Details

    • start

      protected void start() throws Exception
      Throws:
      Exception
    • stop

      protected void stop()
    • receive

      public void receive(Message msg)
      Description copied from interface: Receiver
      Called when a message is received.
      Specified by:
      receive in interface Receiver
      Parameters:
      msg - The message
    • viewAccepted

      public void viewAccepted(View new_view)
      The view contains a list of SiteUUIDs. Adjust the routing table based on the SiteUUIDs UUID and site
      Specified by:
      viewAccepted in interface Receiver
    • contains

      protected boolean contains(List<Route> routes, Address addr)
    • extract

      protected Map<String,List<Address>> extract(View view)
      Returns a map containing the site keys and addresses as values