Package org.jgroups.protocols.relay
Class Relayer
java.lang.Object
org.jgroups.protocols.relay.Relayer
Base class for all relayers
- Since:
- 5.2.17
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleandone()protected abstract ViewgetBridgeView(String cluster_name) protected RoutegetForwardingRouteMatching(String site, Address sender) Returns a Route matching any of the ForwardingRoutes, or null if none matchesintprotected Routeprotected RouteGets routes for a given site.protected Collection<String> protected booleanhasRouteTo(String r) protected static booleanisExcluded(Route route, String... excluded_sites) log()protected Stringrelay()protected voidremoveRoute(String site) abstract voidstop()toString()
-
Field Details
-
relay
-
log
-
done
protected volatile boolean doneFlag set when stop() is called. Since a Relayer should not be used after stop() has been called, a new instance needs to be created -
stats
protected boolean stats -
routes
The routing table. Site IDs are the keys (e.g. "sfo", and list of routes are the values -
forward_routes
-
-
Constructor Details
-
Relayer
-
-
Method Details
-
stop
public abstract void stop() -
relay
-
log
-
done
public boolean done() -
getBridgeView
-
getRoute
-
toString
-
getNumRoutes
public int getNumRoutes() -
getRoute
-
getRoutes
-
addRoutes
-
hasRouteTo
-
removeRoute
-
getRoutes
Gets routes for a given site. The result is the real value, which can be modified, so make a copy! -
printRoutes
-
getForwardingRouteMatching
Returns a Route matching any of the ForwardingRoutes, or null if none matches -
getSiteNames
-
isExcluded
-