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 classMergeViewA 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. subgroupsprotected ViewJChannel. viewMethods in org.jgroups that return View Modifier and Type Method Description static ViewView. create(Address coord, long id, java.util.Collection<Address> members)static ViewView. create(Address coord, long id, Address... members)ViewJChannel. getView()protected static View[]MergeView. listToArray(java.util.List<View> list)ViewJChannel. 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 intView. compareTo(View o)booleanMergeView. deepEquals(View other)booleanView. 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 booleanView. sameMembers(View v1, View v2)Checks if two views have the same members regardless of order.static booleanView. sameMembersOrdered(View v1, View v2)Checks if two views have the same members observing order.static booleanView. sameViews(View... views)Returns true if all views are the same.default voidReceiver. 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 booleanView. 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 ViewRequestCorrelator. viewMethods in org.jgroups.blocks with parameters of type View Modifier and Type Method Description voidRequestCorrelator. receiveView(View new_view)View received: mark all responses from members that are not in new_view as suspectedvoidReplCache. viewAccepted(View new_view)voidReplicatedHashMap. viewAccepted(View new_view)voidReplicatedTree. viewAccepted(View new_view)voidGroupRequest. viewChange(View view, boolean handle_previous_subgroups)Any member of 'membership' that is not in the new view is flagged as SUSPECTED.voidReplicatedHashMap.Notification. viewChange(View view, java.util.List<Address> mbrs_joined, java.util.List<Address> mbrs_left)voidReplicatedTree.ReplicatedTreeListener. viewChange(View new_view)abstract voidRequest. viewChange(View new_view, boolean handle_previous_subgroups)voidUnicastRequest. 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 ViewRelayDemoRpc. viewMethods in org.jgroups.demos with parameters of type View Modifier and Type Method Description voidChat. viewAccepted(View new_view)voidDraw. viewAccepted(View v)voidRelayDemo. viewAccepted(View new_view)voidRelayDemoRpc. viewAccepted(View new_view)voidReplicatedHashMapDemo. 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 ViewSHARED_LOOPBACK. curr_viewprotected ViewCOUNTER. viewprotected ViewDAISYCHAIN. viewprotected ViewDiscovery. viewprotected ViewEncrypt. viewprotected ViewMERGE3. viewprotected ViewReliableMulticast. viewprotected ViewSEQUENCER. viewprotected ViewSEQUENCER2. viewprotected ViewSSL_KEY_EXCHANGE. viewprotected ViewSTOMP. viewprotected ViewTP. viewFields in org.jgroups.protocols with type parameters of type View Modifier and Type Field Description protected ResponseCollector<View>MERGE3. view_rspsMethods in org.jgroups.protocols that return View Modifier and Type Method Description ViewSHARED_LOOPBACK. getView()protected ViewMERGE3. readView(byte[] buffer, int offset, int length)ViewTP. 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 voidASYM_ENCRYPT. handleView(View v)protected voidCOUNTER. handleView(View view)protected voidDAISYCHAIN. handleView(View view)protected voidEncrypt. handleView(View view)protected voidFD_HOST. handleView(View view)protected voidFD_SOCK2. handleView(View v)protected voidFILE_PING. handleView(View new_view, View old_view, boolean coord_changed)protected voidKeyExchange. handleView(View view)protected voidRSVP. handleView(View view)protected voidSSL_KEY_EXCHANGE. handleView(View view)protected voidSTOMP. handleView(View view)protected voidFailureDetection. handleViewChange(View v)protected voidFRAG2. handleViewChange(View view)protected voidFRAG3. handleViewChange(View view)protected voidSEQUENCER. handleViewChange(View v)protected voidSEQUENCER2. handleViewChange(View v)protected voidSHARED_LOOPBACK. handleViewChange(View v)protected voidSTATS. handleViewChange(View view)static ByteArrayMERGE3. marshal(View view)voidBaseBundler. viewChange(View view)voidBatchBundler. viewChange(View view)default voidBundler. viewChange(View view)LocalTransportLocalTransport. viewChange(View v)voidPerDestinationBundler. 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 classDeltaViewSubclass ofViewwith a null members field.Fields in org.jgroups.protocols.pbcast declared as View Modifier and Type Field Description protected ViewGMS. viewprotected ViewJoinRsp. viewprotected ViewMergeData. viewprotected ViewNAKACK2. viewprotected ViewSTABLE. viewprotected ViewSTATE_TRANSFER. viewFields in org.jgroups.protocols.pbcast with type parameters of type View Modifier and Type Field Description protected java.util.Set<View>Merger.MergeTask. subviewsprotected java.util.Map<Address,View>GmsImpl.Request. viewsMethods in org.jgroups.protocols.pbcast that return View Modifier and Type Method Description protected static ViewGMS. createDeltaView(View current_view, View next_view)protected ViewGMS. createViewFromDeltaView(View current_view, DeltaView delta_view)ViewGMS. getNextView(java.util.Collection<Address> joiners, java.util.Collection<Address> leavers, java.util.Collection<Address> suspected_mbrs)Computes the next view.ViewJoinRsp. getView()ViewMergeData. getView()ViewGMS. 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 voidGMS. 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 MutableDigestMerger.MergeTask. consolidateDigests(View new_view, java.util.List<MergeData> merge_rsps)Merge all digests into one.protected static ViewGMS. createDeltaView(View current_view, View next_view)protected ViewGMS. createViewFromDeltaView(View current_view, DeltaView delta_view)protected static shortGMS. determineFlags(View view, Digest digest)protected DigestMerger. 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 intSTABLE. getRank(Address member, View v)voidGmsImpl. handleViewChange(View new_view, Digest digest)voidParticipantGmsImpl. handleViewChange(View view, Digest digest)voidServerGmsImpl. handleViewChange(View view, Digest digest)Called by the GMS when a VIEW is received.protected voidSTABLE. handleViewChange(View v)protected voidSTATE_SOCK. handleViewChange(View v)protected voidSTATE_TRANSFER. handleViewChange(View v)protected voidSTATE. handleViewChange(View v)protected voidStreamingStateTransfer. handleViewChange(View v)voidGMS. installView(View new_view)voidGMS. installView(View new_view, Digest digest)Sets the new view and sends a VIEW_CHANGE event up and down the stack.protected static ByteArrayGMS. marshal(View view, Digest digest)protected voidMerger. sendMergeResponse(Address sender, View view, Digest digest, MergeId merge_id)Send back a response containing view and digest to senderprotected static booleanGMS. 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 AddressMerger. determineMergeLeader(java.util.Map<Address,View> views)Returns the address of the merge leadervoidGmsImpl. merge(java.util.Map<Address,View> views)voidMerger. merge(java.util.Map<Address,View> views)Invoked upon receiving a MERGE event from the MERGE layer.voidServerGmsImpl. merge(java.util.Map<Address,View> views)Invoked upon receiving a MERGE event from the MERGE layer.static voidMerger. 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).voidMerger.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 ViewBridge. viewprotected ViewRELAY. viewprotected ViewRelayer2.Bridge. viewFields 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. cacheprotected java.util.function.BiConsumer<java.lang.String,View>Topology. view_handlerMethods in org.jgroups.protocols.relay that return View Modifier and Type Method Description ViewRELAY. getBridgeView(java.lang.String cluster_name)protected abstract ViewRelayer. getBridgeView(java.lang.String cluster_name)protected ViewRelayer2. getBridgeView(java.lang.String cluster_name)protected ViewRelayer3. getBridgeView(java.lang.String cluster_name)ViewRELAY. 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 voidRELAY. handleView(View v)voidRELAY2. handleView(View view)voidRELAY3. handleView(View view)protected voidTopology. 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_viewvoidBridge. viewAccepted(View new_view)The view contains a list of SiteUUIDs.voidRelayer2.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 TopologyTopology. setViewHandler(java.util.function.BiConsumer<java.lang.String,View> c)Sets a view handler -
Uses of View in org.jgroups.util
Fields in org.jgroups.util with type parameters of type View Modifier and Type Field Description protected java.util.List<View>MyReceiver. viewsMethods in org.jgroups.util that return View Modifier and Type Method Description static ViewUtil. readView(java.io.DataInput in)Methods in org.jgroups.util that return types with arguments of type View Modifier and Type Method Description java.util.List<View>MyReceiver. views()Methods in org.jgroups.util with parameters of type View Modifier and Type Method Description static intUtil. 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 booleanUtil. 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 intUtil. size(View view)voidMyReceiver. viewAccepted(View new_view)static voidUtil. 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 booleanUtil. 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.
-