Uses of Class
org.jgroups.View
-
Packages that use View Package Description org.jgroups Provides top-level public JGroups classes such as Channel, Message, etc.org.jgroups.blocks Provides building blocks that are layered on top of channels.org.jgroups.demos Provides demonstrations of JGroups functionality.org.jgroups.protocols Provides implementations of transport protocols which are responsible for sending and receiving messages to/from the network.org.jgroups.protocols.pbcast org.jgroups.protocols.relay org.jgroups.util Provides useful functionality which cannot be assigned to any particular other package. -
-
Uses of View in org.jgroups
Subclasses of View in org.jgroups Modifier and Type Class Description class
MergeView
A view that is sent as a result of a cluster merge.Fields in org.jgroups declared as View Modifier and Type Field Description protected View[]
MergeView. subgroups
protected View
JChannel. view
Methods in org.jgroups that return View Modifier and Type Method Description static View
View. create(Address coord, long id, java.util.Collection<Address> members)
static View
View. create(Address coord, long id, Address... members)
View
JChannel. getView()
protected static View[]
MergeView. listToArray(java.util.List<View> list)
View
JChannel. view()
Methods in org.jgroups that return types with arguments of type View Modifier and Type Method Description java.util.function.Supplier<? extends View>
View. create()
java.util.List<View>
MergeView. getSubgroups()
Methods in org.jgroups with parameters of type View Modifier and Type Method Description int
View. compareTo(View o)
boolean
MergeView. deepEquals(View other)
boolean
View. deepEquals(View other)
static Address[][]
View. diff(View from, View to)
Returns the difference between 2 views from and to.static java.util.List<Address>
View. leftMembers(View one, View two)
Returns a list of members which left from view one to twostatic java.util.List<Address>
View. newMembers(View old, View new_view)
static boolean
View. sameMembers(View v1, View v2)
Checks if two views have the same members regardless of order.static boolean
View. sameMembersOrdered(View v1, View v2)
Checks if two views have the same members observing order.static boolean
View. sameViews(View... views)
Returns true if all views are the same.default void
Receiver. viewAccepted(View new_view)
Called when a change in membership has occurred.Method parameters in org.jgroups with type arguments of type View Modifier and Type Method Description protected static View[]
MergeView. listToArray(java.util.List<View> list)
static boolean
View. sameViews(java.util.Collection<View> views)
Constructor parameters in org.jgroups with type arguments of type View Constructor Description MergeView(ViewId view_id, Address[] members, java.util.List<View> subgroups)
-
Uses of View in org.jgroups.blocks
Fields in org.jgroups.blocks declared as View Modifier and Type Field Description protected View
RequestCorrelator. view
Methods in org.jgroups.blocks with parameters of type View Modifier and Type Method Description void
RequestCorrelator. receiveView(View new_view)
View received: mark all responses from members that are not in new_view as suspectedvoid
ReplCache. viewAccepted(View new_view)
void
ReplicatedHashMap. viewAccepted(View new_view)
void
ReplicatedTree. viewAccepted(View new_view)
void
GroupRequest. viewChange(View view, boolean handle_previous_subgroups)
Any member of 'membership' that is not in the new view is flagged as SUSPECTED.void
ReplicatedHashMap.Notification. viewChange(View view, java.util.List<Address> mbrs_joined, java.util.List<Address> mbrs_left)
void
ReplicatedTree.ReplicatedTreeListener. viewChange(View new_view)
abstract void
Request. viewChange(View new_view, boolean handle_previous_subgroups)
void
UnicastRequest. viewChange(View view, boolean handle_previous_subgroups)
If the target address is not a member of the new view, we'll mark the response as suspected and unblock the caller of execute() -
Uses of View in org.jgroups.demos
Fields in org.jgroups.demos declared as View Modifier and Type Field Description protected View
RelayDemoRpc. view
Methods in org.jgroups.demos with parameters of type View Modifier and Type Method Description void
Chat. viewAccepted(View new_view)
void
Draw. viewAccepted(View v)
void
RelayDemo. viewAccepted(View new_view)
void
RelayDemoRpc. viewAccepted(View new_view)
void
ReplicatedHashMapDemo. viewChange(View view, java.util.List<Address> new_mbrs, java.util.List<Address> old_mbrs)
-
Uses of View in org.jgroups.protocols
Fields in org.jgroups.protocols declared as View Modifier and Type Field Description protected View
SHARED_LOOPBACK. curr_view
protected View
COUNTER. view
protected View
DAISYCHAIN. view
protected View
Discovery. view
protected View
Encrypt. view
protected View
MERGE3. view
protected View
ReliableMulticast. view
protected View
SEQUENCER. view
protected View
SEQUENCER2. view
protected View
SSL_KEY_EXCHANGE. view
protected View
STOMP. view
protected View
TP. view
Fields in org.jgroups.protocols with type parameters of type View Modifier and Type Field Description protected ResponseCollector<View>
MERGE3. view_rsps
Methods in org.jgroups.protocols that return View Modifier and Type Method Description View
SHARED_LOOPBACK. getView()
protected View
MERGE3. readView(byte[] buffer, int offset, int length)
View
TP. view()
Methods in org.jgroups.protocols that return types with arguments of type View Modifier and Type Method Description static java.util.List<View>
MERGE3. detectDifferentViews(java.util.Map<Address,View> map)
Methods in org.jgroups.protocols with parameters of type View Modifier and Type Method Description protected void
ASYM_ENCRYPT. handleView(View v)
protected void
COUNTER. handleView(View view)
protected void
DAISYCHAIN. handleView(View view)
protected void
Encrypt. handleView(View view)
protected void
FD_HOST. handleView(View view)
protected void
FD_SOCK2. handleView(View v)
protected void
FILE_PING. handleView(View new_view, View old_view, boolean coord_changed)
protected void
KeyExchange. handleView(View view)
protected void
RSVP. handleView(View view)
protected void
SSL_KEY_EXCHANGE. handleView(View view)
protected void
STOMP. handleView(View view)
protected void
FailureDetection. handleViewChange(View v)
protected void
FRAG2. handleViewChange(View view)
protected void
FRAG3. handleViewChange(View view)
protected void
SEQUENCER. handleViewChange(View v)
protected void
SEQUENCER2. handleViewChange(View v)
protected void
SHARED_LOOPBACK. handleViewChange(View v)
protected void
STATS. handleViewChange(View view)
static ByteArray
MERGE3. marshal(View view)
void
BaseBundler. viewChange(View view)
void
BatchBundler. viewChange(View view)
default void
Bundler. viewChange(View view)
LocalTransport
LocalTransport. viewChange(View v)
void
PerDestinationBundler. viewChange(View view)
Method parameters in org.jgroups.protocols with type arguments of type View Modifier and Type Method Description static java.util.List<View>
MERGE3. detectDifferentViews(java.util.Map<Address,View> map)
-
Uses of View in org.jgroups.protocols.pbcast
Subclasses of View in org.jgroups.protocols.pbcast Modifier and Type Class Description class
DeltaView
Subclass ofView
with a null members field.Fields in org.jgroups.protocols.pbcast declared as View Modifier and Type Field Description protected View
GMS. view
protected View
JoinRsp. view
protected View
MergeData. view
protected View
NAKACK2. view
protected View
STABLE. view
protected View
STATE_TRANSFER. view
Fields in org.jgroups.protocols.pbcast with type parameters of type View Modifier and Type Field Description protected java.util.Set<View>
Merger.MergeTask. subviews
protected java.util.Map<Address,View>
GmsImpl.Request. views
Methods in org.jgroups.protocols.pbcast that return View Modifier and Type Method Description protected static View
GMS. createDeltaView(View current_view, View next_view)
protected View
GMS. createViewFromDeltaView(View current_view, DeltaView delta_view)
View
GMS. getNextView(java.util.Collection<Address> joiners, java.util.Collection<Address> leavers, java.util.Collection<Address> suspected_mbrs)
Computes the next view.View
JoinRsp. getView()
View
MergeData. getView()
View
GMS. view()
Methods in org.jgroups.protocols.pbcast that return types with arguments of type View Modifier and Type Method Description static Tuple<View,Digest>
GMS. _readViewAndDigest(byte[] buffer, int offset, int length)
Tuple<View,Digest>
GMS. getViewAndDigest()
Returns the current view and digest.protected Tuple<View,Digest>
GMS. readViewAndDigest(byte[] buffer, int offset, int length)
Methods in org.jgroups.protocols.pbcast with parameters of type View Modifier and Type Method Description void
GMS. castViewChangeAndSendJoinRsps(View new_view, Digest digest, java.util.Collection<Address> expected_acks, java.util.Collection<Address> joiners, JoinRsp jr)
Broadcasts the new view and digest as VIEW messages, possibly sends JOIN-RSP messages to joiners and then waits for acks from expected_acksprotected MutableDigest
Merger.MergeTask. consolidateDigests(View new_view, java.util.List<MergeData> merge_rsps)
Merge all digests into one.protected static View
GMS. createDeltaView(View current_view, View next_view)
protected View
GMS. createViewFromDeltaView(View current_view, DeltaView delta_view)
protected static short
GMS. determineFlags(View view, Digest digest)
protected Digest
Merger. fetchDigestsFromAllMembersInSubPartition(View view, MergeId merge_id)
Multicasts a GET_DIGEST_REQ to all members of this sub partition and waits for all responses (GET_DIGEST_RSP) or N ms.protected static int
STABLE. getRank(Address member, View v)
void
GmsImpl. handleViewChange(View new_view, Digest digest)
void
ParticipantGmsImpl. handleViewChange(View view, Digest digest)
void
ServerGmsImpl. handleViewChange(View view, Digest digest)
Called by the GMS when a VIEW is received.protected void
STABLE. handleViewChange(View v)
protected void
STATE_SOCK. handleViewChange(View v)
protected void
STATE_TRANSFER. handleViewChange(View v)
protected void
STATE. handleViewChange(View v)
protected void
StreamingStateTransfer. handleViewChange(View v)
void
GMS. installView(View new_view)
void
GMS. installView(View new_view, Digest digest)
Sets the new view and sends a VIEW_CHANGE event up and down the stack.protected static ByteArray
GMS. marshal(View view, Digest digest)
protected void
Merger. sendMergeResponse(Address sender, View view, Digest digest, MergeId merge_id)
Send back a response containing view and digest to senderprotected static boolean
GMS. writeAddresses(View view, Digest digest)
Method parameters in org.jgroups.protocols.pbcast with type arguments of type View Modifier and Type Method Description protected static java.util.Map<Address,java.util.Collection<Address>>
Merger. determineMergeCoords(java.util.Map<Address,View> views)
Needs to return a map of all subview coordinators and their views (as a collection of members).protected Address
Merger. determineMergeLeader(java.util.Map<Address,View> views)
Returns the address of the merge leadervoid
GmsImpl. merge(java.util.Map<Address,View> views)
void
Merger. merge(java.util.Map<Address,View> views)
Invoked upon receiving a MERGE event from the MERGE layer.void
ServerGmsImpl. merge(java.util.Map<Address,View> views)
Invoked upon receiving a MERGE event from the MERGE layer.static void
Merger. sanitizeViews(java.util.Map<Address,View> map)
Removes all members from a given view which don't have us in their view (https://issues.redhat.com/browse/JGRP-1061).void
Merger.MergeTask. start(java.util.Map<Address,View> views)
Constructors in org.jgroups.protocols.pbcast with parameters of type View Constructor Description JoinRsp(View v, Digest d)
MergeData(Address sender, View view, Digest digest)
MergeData(Address sender, View view, Digest digest, boolean merge_rejected)
Constructor parameters in org.jgroups.protocols.pbcast with type arguments of type View Constructor Description Request(int type, Address mbr, java.util.Map<Address,View> views)
-
Uses of View in org.jgroups.protocols.relay
Fields in org.jgroups.protocols.relay declared as View Modifier and Type Field Description protected View
Bridge. view
protected View
RELAY. view
protected View
Relayer2.Bridge. view
Fields in org.jgroups.protocols.relay with type parameters of type View Modifier and Type Field Description protected java.util.Map<java.lang.String,View>
Topology. cache
protected java.util.function.BiConsumer<java.lang.String,View>
Topology. view_handler
Methods in org.jgroups.protocols.relay that return View Modifier and Type Method Description View
RELAY. getBridgeView(java.lang.String cluster_name)
protected abstract View
Relayer. getBridgeView(java.lang.String cluster_name)
protected View
Relayer2. getBridgeView(java.lang.String cluster_name)
protected View
Relayer3. getBridgeView(java.lang.String cluster_name)
View
RELAY. view()
Methods in org.jgroups.protocols.relay that return types with arguments of type View Modifier and Type Method Description java.util.Map<java.lang.String,View>
Topology. cache()
Methods in org.jgroups.protocols.relay with parameters of type View Modifier and Type Method Description protected static java.util.List<Address>
RELAY. determineSiteMasters(View view, int max_num_site_masters)
Iterates over the list of members and adds every member if the member's rank is below max_site_masters.protected java.util.Map<java.lang.String,java.util.List<Address>>
Relayer2.Bridge. extract(View view)
Returns a map containing the site keys and addresses as valuesabstract void
RELAY. handleView(View v)
void
RELAY2. handleView(View view)
void
RELAY3. handleView(View view)
protected void
Topology. put(java.lang.String site, View v)
Called when a response has been received.protected static java.util.List<java.lang.String>
Bridge. removedRoutes(View old_view, View new_view)
Returns a list of routes that were in old_view, but are no longer in new_viewvoid
Bridge. viewAccepted(View new_view)
The view contains a list of SiteUUIDs.void
Relayer2.Bridge. viewAccepted(View new_view)
The view contains a list of SiteUUIDs.Method parameters in org.jgroups.protocols.relay with type arguments of type View Modifier and Type Method Description Topology
Topology. setViewHandler(java.util.function.BiConsumer<java.lang.String,View> c)
Sets a view handler -
Uses of View in org.jgroups.util
Methods in org.jgroups.util that return View Modifier and Type Method Description static View
Util. readView(java.io.DataInput in)
Methods in org.jgroups.util with parameters of type View Modifier and Type Method Description static int
Util. getRank(View view, Address addr)
Returns the rank of a member in a given viewstatic java.util.Map<java.lang.String,java.util.List<Address>>
Util. getSites(View bridge_view, java.lang.String excluding_site)
static boolean
Util. isCoordinator(View view, Address local_addr)
static java.util.Collection<java.lang.String>
Util. otherSites(View bridge_view, java.lang.String excluding_site)
Returns the sites of the view (all addresses are SiteUUIDs) minus the given site, Example: bridge_view=A:net1,B:net1,X:net2,Y:net2, excluding_site=net1 -> ["net2"]static int
Util. size(View view)
void
MyReceiver. viewAccepted(View new_view)
static void
Util. writeView(View view, java.io.DataOutput out)
Method parameters in org.jgroups.util with type arguments of type View Modifier and Type Method Description static boolean
Util. containsViewId(java.util.Collection<View> views, ViewId vid)
static java.util.Collection<Address>
Util. determineActualMergeCoords(java.util.Map<Address,View> map)
Similar toUtil.determineMergeCoords(java.util.Map)
but only actual coordinators are counted: an actual coord is when the sender of a view is the first member of that viewstatic java.util.Collection<Address>
Util. determineMergeCoords(java.util.Map<Address,View> map)
This is the same or a subset ofUtil.determineMergeParticipants(java.util.Map)
and contains only members which are currently sub-partition coordinators.static java.util.Collection<Address>
Util. determineMergeParticipants(java.util.Map<Address,View> map)
Determines the members which take part in a merge.
-