Class Route

  • All Implemented Interfaces:
    java.lang.Comparable<Route>

    public class Route
    extends java.lang.Object
    implements java.lang.Comparable<Route>
    Class which maintains the destination address for sending messages to a given site, and the bridge channel to do so.
    Since:
    3.x
    Author:
    Bela Ban
    • Field Detail

      • site_master

        protected final Address site_master
        SiteUUID: address of the site master
      • bridge

        protected final JChannel bridge
      • relay

        protected final RELAY relay
      • log

        protected final Log log
      • stats

        protected boolean stats
      • relay3

        protected final boolean relay3
    • Method Detail

      • siteMaster

        public Address siteMaster()
      • stats

        public boolean stats()
      • stats

        public Route stats​(boolean f)
      • send

        public void send​(Address final_destination,
                         Address original_sender,
                         Message msg,
                         java.util.Collection<java.lang.String> visited_sites)
      • compareTo

        public int compareTo​(Route o)
        Specified by:
        compareTo in interface java.lang.Comparable<Route>
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • createMessage

        protected Message createMessage​(Address target,
                                        Address final_destination,
                                        Address original_sender,
                                        Message msg,
                                        java.util.Collection<java.lang.String> visited_sites)
                                 throws java.io.IOException
        Throws:
        java.io.IOException