Package org.jgroups.protocols.relay
Class Route
java.lang.Object
org.jgroups.protocols.relay.Route
- All Implemented Interfaces:
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbridge()intprotected MessagecreateMessage(Address target, Address final_destination, Address original_sender, Message msg, Collection<String> visited_sites) booleaninthashCode()voidvoidsend(Address final_destination, Address original_sender, Message msg, Collection<String> visited_sites) booleanstats()stats(boolean f) toString()
-
Field Details
-
site_master
SiteUUID: address of the site master -
bridge
-
relay
-
log
-
stats
protected boolean stats -
relay3
protected final boolean relay3
-
-
Constructor Details
-
Route
-
-
Method Details
-
bridge
-
siteMaster
-
stats
public boolean stats() -
stats
-
send
-
send
public void send(Address final_destination, Address original_sender, Message msg, Collection<String> visited_sites) -
compareTo
- Specified by:
compareToin interfaceComparable<Route>
-
equals
-
hashCode
public int hashCode() -
toString
-
createMessage
protected Message createMessage(Address target, Address final_destination, Address original_sender, Message msg, Collection<String> visited_sites) throws IOException - Throws:
IOException
-