## 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.debug | Provides debug support, including testing, profiling, and a graphical view of a protocol stack.
org.jgroups.demos | Provides demonstrations of JGroups functionality.
org.jgroups.demos.applets | Provides an applet that demonstrates JGroups functionality.
org.jgroups.demos.wb | A distributed whiteboard applet implemented using JGroups.
org.jgroups.mux |
org.jgroups.protocols | Provides implementations of transport protocols which are responsible for sending and receiving messages to/from the network.
org.jgroups.protocols.pbcast | Supports probabilistic broadcasts.
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 and Description
--- | ---
`class` | `MergeView` A view that is sent as a result of a merge.

Fields in org.jgroups with type parameters of type View
Modifier and Type | Field and Description
--- | ---
`protected java.util.Vector<View>` | MergeView.`subgroups`

Methods in org.jgroups that return View
Modifier and Type | Method and Description
--- | ---
`View` | View.`copy()`
`View` | MergeView.`copy()`
`abstract View` | Channel.`getView()` Gets the current view.
`View` | JChannel.`getView()` Returns the current view.

Methods in org.jgroups that return types with arguments of type View
Modifier and Type | Method and Description
--- | ---
`java.util.Vector<View>` | MergeView.`getSubgroups()`

Methods in org.jgroups with parameters of type View
Modifier and Type | Method and Description
--- | ---
`void` | ReceiverAdapter.`viewAccepted(View view)`
`void` | ExtendedReceiverAdapter.`viewAccepted(View new_view)`
`void` | MembershipListener.`viewAccepted(View new_view)` Called when a change in membership has occurred.

Constructor parameters in org.jgroups with type arguments of type View
Constructor and Description
`MergeView(Address creator, long id, java.util.Vector<Address> members, java.util.Vector<View> subgroups)` Creates a new view
`MergeView(ViewId vid, java.util.Vector<Address> members, java.util.Vector<View> subgroups)` Creates a new view

### Uses of View in org.jgroups.blocks

Methods in org.jgroups.blocks with parameters of type View
Modifier and Type | Method and Description
--- | ---
`protected void` | PullPushAdapter.`notifyViewChange(View v)` Deprecated.
`void` | RequestCorrelator.`receiveView(View new_view)` `Event.VIEW_CHANGE` event received from a layer below.
`void` | DistributedTree.`viewAccepted(View new_view)`
`void` | ReplCache.`viewAccepted(View new_view)`
`void` | MembershipListenerAdapter.`viewAccepted(View new_view)` Notify membership listener that new view was accepted.
`void` | DistributedLockManager.`viewAccepted(View new_view)` Deprecated. Remove all locks held by members who left the previous view
`void` | DistributedQueue.`viewAccepted(View new_view)`
`void` | PartitionedHashMap.`viewAccepted(View new_view)`
`void` | PartitionedHashMap.ConsistentHashFunction.`viewAccepted(View new_view)`
`void` | PartitionedHashMap.ArrayBasedConsistentHashFunction.`viewAccepted(View new_view)`
`void` | ReplicatedTree.`viewAccepted(View new_view)`
`void` | VotingAdapter.`viewAccepted(View newView)` Callback for notification about the new view of the group.
`void` | ReplicatedHashMap.`viewAccepted(View new_view)`
`void` | NotificationBus.`viewAccepted(View new_view)` Deprecated.
`void` | RspCollector.`viewChange(View new_view)`
`void` | GroupRequest.`viewChange(View new_view)` Any member of 'membership' that is not in the new view is flagged as SUSPECTED.
`abstract void` | Request.`viewChange(View new_view)`
`void` | MultiRequest.`viewChange(View new_view)` Any member of 'membership' that is not in the new view is flagged as SUSPECTED.
`void` | ReplicatedTree.ReplicatedTreeListener.`viewChange(View new_view)`
`void` | UnicastRequest.`viewChange(View new_view)` If the target address is not a member of the new view, we'll mark the response as not received and unblock the caller of execute()
`void` | ReplicatedHashMap.Notification.`viewChange(View view, java.util.Vector<Address> new_mbrs, java.util.Vector<Address> old_mbrs)`

### Uses of View in org.jgroups.debug

Methods in org.jgroups.debug with parameters of type View
Modifier and Type | Method and Description
--- | ---
`void` | Simulator.`setView(View v)`

### Uses of View in org.jgroups.demos

Fields in org.jgroups.demos declared as View
Modifier and Type | Field and Description
--- | ---
`protected View` | RelayDemoRpc.`view`

Methods in org.jgroups.demos with parameters of type View
Modifier and Type | Method and Description
--- | ---
`void` | QuoteClient.`viewAccepted(View new_view)`
`void` | ViewDemo.`viewAccepted(View new_view)`
`void` | RelayDemoRpc.`viewAccepted(View new_view)`
`void` | QuoteServer.`viewAccepted(View new_view)`
`void` | Draw.`viewAccepted(View v)`
`void` | Topology.`viewAccepted(View view)`
`void` | ReplicatedHashMapDemo.`viewChange(View view, java.util.Vector new_mbrs, java.util.Vector old_mbrs)`

### Uses of View in org.jgroups.demos.applets

Methods in org.jgroups.demos.applets with parameters of type View
Modifier and Type | Method and Description
--- | ---
`void` | DrawApplet.`viewAccepted(View v)`

### Uses of View in org.jgroups.demos.wb

Methods in org.jgroups.demos.wb with parameters of type View
Modifier and Type | Method and Description
--- | ---
`void` | Whiteboard.`viewAccepted(View v)`

### Uses of View in org.jgroups.mux

Methods in org.jgroups.mux that return View
Modifier and Type | Method and Description
--- | ---
`View` | MuxChannel.`getClusterView()` Deprecated. Returns the JGroups view of a cluster, e.g.
`View` | MuxChannel.`getView()` Deprecated. Returns the service view, ie.

### Uses of View in org.jgroups.protocols

Fields in org.jgroups.protocols declared as View
Modifier and Type | Field and Description
--- | ---
`protected View` | RELAY.`bridge_view` The view of the bridge cluster, usually consists of max 2 nodes
`protected View` | RELAY.`global_view` The combined view of local and remote cluster
`protected View` | RELAY.ViewData.`global_view`
`protected View` | RELAY.`local_view` The view of the local cluster
`protected View` | RELAY.`remote_view` The view of the remote cluster
`protected View` | RELAY.ViewData.`remote_view`
`protected View` | Discovery.`view`
`protected View` | Executing.`view`
`protected View` | STOMP.`view`
`protected View` | Locking.`view`

Methods in org.jgroups.protocols that return View
Modifier and Type | Method and Description
--- | ---
`protected View` | RELAY.`generateGlobalView(View local_view, View remote_view)`
`protected View` | RELAY.`generateGlobalView(View local_view, View remote_view, boolean merge)`
`View` | VIEW_SYNC.ViewSyncHeader.`getView()`
`View` | PingData.`getView()`
`protected View` | Discovery.`makeView(java.util.Vector<Address> mbrs)`

Methods in org.jgroups.protocols that return types with arguments of type View
Modifier and Type | Method and Description
--- | ---
`java.util.List<View>` | Discovery.`findAllViews(Promise<JoinRsp> promise)` Finds the views: sends a GET_MBRS_REQ to all members, waits 'timeout' ms or until 'num_initial_members' have been retrieved

Methods in org.jgroups.protocols with parameters of type View
Modifier and Type | Method and Description
--- | ---
`static RELAY.ViewData` | RELAY.ViewData.`create(View remote_view, View global_view)`
`protected View` | RELAY.`generateGlobalView(View local_view, View remote_view)`
`protected View` | RELAY.`generateGlobalView(View local_view, View remote_view, boolean merge)`
`protected void` | DAISYCHAIN.`handleView(View view)`
`protected void` | FILE_PING.`handleView(View view)`
`protected void` | RELAY.`handleView(View view)`
`void` | CENTRAL_LOCK.`handleView(View view)`
`protected void` | Executing.`handleView(View view)`
`protected void` | STOMP.`handleView(View view)`
`void` | PEER_LOCK.`handleView(View view)`
`protected void` | Locking.`handleView(View view)`
`void` | CENTRAL_EXECUTOR.`handleView(View view)`
`protected void` | MERGEFAST.`handleViewChange(View v)`
`protected void` | RELAY.`sendViewOnLocalCluster(Address dest, View remote_view, View global_view, boolean use_seperate_thread)`
`void` | PingData.`setView(View view)`
`void` | RELAY.Receiver.`viewAccepted(View view)`

Constructors in org.jgroups.protocols with parameters of type View
Constructor and Description
`MERGE3.CoordAnnouncement(View view)`
`MERGEFAST.MergefastHeader(View view)`
`PingData(Address own_addr, View view, boolean is_server)`
`PingData(Address own_addr, View view, boolean is_server, java.lang.String logical_name, java.util.Collection<PhysicalAddress> physical_addrs)`
`VIEW_SYNC.ViewSyncHeader(int type, View view)`

### Uses of View in org.jgroups.protocols.pbcast

Fields in org.jgroups.protocols.pbcast declared as View
Modifier and Type | Field and Description
--- | ---
`protected View` | GMS.`view`

Methods in org.jgroups.protocols.pbcast that return View
Modifier and Type | Method and Description
--- | ---
`View` | GMS.`getNextView(java.util.Collection<Address> new_mbrs, java.util.Collection<Address> old_mbrs, java.util.Collection<Address> suspected_mbrs)` Computes the next view.
`View` | MergeData.`getView()`
`View` | JoinRsp.`getView()`
`View` | GMS.`makeView(java.util.Vector<Address> mbrs)`
`static View` | GMS.`makeView(java.util.Vector<Address> mbrs, ViewId vid)`

Methods in org.jgroups.protocols.pbcast with parameters of type View
Modifier and Type | Method and Description
--- | ---
`protected boolean` | GMS.`_startFlush(View new_view, int maxAttempts, long randomFloor, long randomCeiling)`
`void` | GMS.`castViewChangeWithDest(View new_view, Digest digest, JoinRsp jr, java.util.Collection<Address> newMembers)` Broadcasts the new view and digest, and waits for acks from all members in the list given as argument.
`void` | CoordGmsImpl.`handleViewChange(View new_view, Digest digest)` Called by the GMS when a VIEW is received.
`void` | GmsImpl.`handleViewChange(View new_view, Digest digest)`
`void` | ParticipantGmsImpl.`handleViewChange(View new_view, Digest digest)` If we are leaving, we have to wait for the view change (last msg in the current view) that excludes us before we can leave.
`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.
`void` | MergeData.`setView(View v)`

Method parameters in org.jgroups.protocols.pbcast with type arguments of type View
Modifier and Type | Method and Description
--- | ---
`void` | CoordGmsImpl.`merge(java.util.Map<Address,View> views)` Invoked upon receiving a MERGE event from the MERGE layer.
`void` | Merger.`merge(java.util.Map<Address,View> views)` Invoked upon receiving a MERGE event from the MERGE layer.
`void` | GmsImpl.`merge(java.util.Map<Address,View> views)`
`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).

Constructors in org.jgroups.protocols.pbcast with parameters of type View
Constructor and Description
`GMS.GmsHeader(byte type, View view)` Used for VIEW header
`JoinRsp(View v, Digest d)`
`MergeData(Address sender, View view, Digest digest)`

### Uses of View in org.jgroups.util

Methods in org.jgroups.util that return View
Modifier and Type | Method and Description
--- | ---
`static View` | Util.`createView(Address coord, long id, Address... members)`
`static View` | Util.`readView(java.io.DataInputStream in)`

Methods in org.jgroups.util with parameters of type View
Modifier and Type | Method and Description
--- | ---
`static int` | Util.`getRank(View view, Address addr)`
`void` | AckCollector.`handleView(View v)`
`static boolean` | Util.`isCoordinator(View view, Address local_addr)`
`static java.util.List<Address>` | Util.`leftMembers(View one, View two)` Returns a list of members which left from view one to two
`static int` | Util.`size(View view)`
`void` | MyReceiver.`viewAccepted(View new_view)`
`static void` | Util.`writeView(View view, java.io.DataOutputStream out)`

Method parameters in org.jgroups.util with type arguments of type View
Modifier and Type | Method and Description
--- | ---
`static boolean` | Util.`containsViewId(java.util.Collection<View> views, ViewId vid)`
`static java.util.Collection<Address>` | Util.`determineMergeCoords(java.util.Map<Address,View> map)` This is the same or a subset of `Util.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.
`static java.lang.String` | Util.`printViews(java.util.Collection<View> views)`