Class Topology
java.lang.Object
org.jgroups.protocols.relay.Topology
Provides a cache of all sites and their members (addresses, IP addresses, site masters etc) in a network of
autonomous sites. The cache is an approximation, and is refreshed on reception of
Used as a component in
RelayHeader.SITES_UP
or RelayHeader.SITES_DOWN notifications. A refresh can also be triggered programmatically.
Used as a component in
RELAY2 and RELAY3.- Since:
- 5.2.15
- Author:
- Bela Ban
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final RELAYprotected BiConsumer<String, View> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncache()protected StringbooleanglobalViews(boolean b) print()Dumps the members for a given site, or all sitesprotected voidCalled when a response has been received.refresh()Refreshes the topology for a given site.removeAll(Collection<String> sites) Sets a view handlertoString()
-
Field Details
-
relay
-
cache
-
view_handler
-
global_views
protected boolean global_views
-
-
Constructor Details
-
Topology
-
-
Method Details
-
cache
-
globalViews
public boolean globalViews() -
globalViews
-
setViewHandler
Sets a view handler- Parameters:
c- The view handler. Arguments are the site and theViewof that site)
-
refresh
-
refresh
-
refresh
-
print
-
print
-
removeAll
-
toString
-
dumpSite
-
put
-