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.demos.wb A distributed whiteboard applet implemented using JGroups.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.protocols.rules org.jgroups.protocols.tom 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
Channel. getView()
Deprecated.Gets the current view.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
MembershipListener. viewAccepted(View new_view)
Called when a change in membership has occurred.void
ReceiverAdapter. viewAccepted(View view)
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
PartitionedHashMap.ConsistentHashFunction. viewAccepted(View new_view)
void
PartitionedHashMap. viewAccepted(View new_view)
void
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 protected static java.lang.String
RelayDemo. print(View view)
void
Chat. viewAccepted(View new_view)
void
Draw. viewAccepted(View v)
void
QuoteClient. viewAccepted(View new_view)
void
QuoteServer. viewAccepted(View new_view)
void
RelayDemo. viewAccepted(View new_view)
void
RelayDemoRpc. viewAccepted(View new_view)
void
ViewDemo. 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.demos.wb
Methods in org.jgroups.demos.wb with parameters of type View Modifier and Type Method Description void
Whiteboard. viewAccepted(View v)
-
Uses of View in org.jgroups.protocols
Fields in org.jgroups.protocols declared as View Modifier and Type Field Description protected View
RELAY. bridge_view
Deprecated.The view of the bridge cluster, usually consists of max 2 nodesprotected View
SHARED_LOOPBACK. curr_view
protected View
RELAY. global_view
Deprecated.The combined view of local and remote clusterprotected View
RELAY.ViewData. global_view
protected View
RELAY. local_view
Deprecated.The view of the local clusterprotected View
RELAY. remote_view
Deprecated.The view of the remote clusterprotected View
RELAY.ViewData. remote_view
protected View
COUNTER. view
protected View
Discovery. view
protected View
Encrypt. view
protected View
Executing. view
protected View
Locking. view
protected View
MERGE3. view
protected View
NAMING. 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 protected View
RELAY. generateGlobalView(View local_view, View remote_view)
Deprecated.protected View
RELAY. generateGlobalView(View local_view, View remote_view, boolean merge)
Deprecated.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 static RELAY.ViewData
RELAY.ViewData. create(View remote_view, View global_view)
protected View
RELAY. generateGlobalView(View local_view, View remote_view)
Deprecated.protected View
RELAY. generateGlobalView(View local_view, View remote_view, boolean merge)
Deprecated.protected void
ASYM_ENCRYPT. handleView(View v)
void
CENTRAL_EXECUTOR. handleView(View view)
void
CENTRAL_LOCK. handleView(View view)
void
CENTRAL_LOCK2. handleView(View v)
protected void
COUNTER. handleView(View view)
protected void
DAISYCHAIN. handleView(View view)
protected void
Encrypt. handleView(View view)
protected void
Executing. handleView(View view)
protected void
FD_HOST. handleView(View view)
protected void
FILE_PING. handleView(View new_view, View old_view, boolean coord_changed)
protected void
KeyExchange. handleView(View view)
protected void
Locking. handleView(View view)
protected void
RELAY. handleView(View view)
Deprecated.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
FORWARD_TO_COORD. handleViewChange(View view)
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)
static Buffer
MERGE3. marshal(View view)
protected void
RELAY. sendViewOnLocalCluster(View remote_view, View global_view, boolean use_seperate_thread, java.util.List<Address> new_mbrs)
Deprecated.void
RELAY.Receiver. viewAccepted(View view)
void
BaseBundler. viewChange(View view)
default void
Bundler. 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 protected boolean
GMS. _startFlush(View new_view, int maxAttempts, boolean resumeIfFailed, long randomFloor, long randomCeiling)
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 Buffer
GMS. marshal(View view, Digest digest)
protected static Digest
FLUSH. maxSeqnos(View view, java.util.List<Digest> digests)
Returns a digest which contains, for all members of view, the highest delivered and received seqno of all digestsprotected 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://jira.jboss.org/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)
Request(int type, Address mbr, java.util.Map<Address,View> views, boolean useFlushPresent)
-
Uses of View in org.jgroups.protocols.relay
Fields in org.jgroups.protocols.relay declared as View Modifier and Type Field Description protected View
Relayer.Bridge. view
Methods in org.jgroups.protocols.relay that return View Modifier and Type Method Description View
RELAY2. getBridgeView(java.lang.String cluster_name)
protected View
Relayer. getBridgeView(java.lang.String cluster_name)
Methods in org.jgroups.protocols.relay with parameters of type View Modifier and Type Method Description protected java.util.List<Address>
RELAY2. 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>>
Relayer.Bridge. extract(View view)
Returns a map containing the site keys and addresses as valuesvoid
RELAY2. handleView(View view)
void
Relayer.Bridge. viewAccepted(View new_view)
The view contains a list of SiteUUIDs. -
Uses of View in org.jgroups.protocols.rules
Fields in org.jgroups.protocols.rules declared as View Modifier and Type Field Description protected View
SUPERVISOR. view
Deprecated.Methods in org.jgroups.protocols.rules that return View Modifier and Type Method Description View
SUPERVISOR. getView()
Deprecated.Methods in org.jgroups.protocols.rules with parameters of type View Modifier and Type Method Description protected void
SUPERVISOR. handleView(View view)
Deprecated. -
Uses of View in org.jgroups.protocols.tom
Methods in org.jgroups.protocols.tom with parameters of type View Modifier and Type Method Description java.util.Collection<Address>
DeliveryManagerImpl. handleView(View newView)
Updates the current view in use and returns aCollection
with the members that left the cluster. -
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 that return types with arguments of type View Modifier and Type Method Description static java.util.List<View>
Util. detectDifferentViews(java.util.Map<Address,View> map)
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 boolean
Util. isCoordinator(View view, Address local_addr)
static int
Util. size(View 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.List<View>
Util. detectDifferentViews(java.util.Map<Address,View> map)
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.
-