Tabnine Logo
Merger.sanitizeViews
Code IndexAdd Tabnine to your IDE (free)

How to use
sanitizeViews
method
in
org.jgroups.protocols.pbcast.Merger

Best Java code snippets using org.jgroups.protocols.pbcast.Merger.sanitizeViews (Showing top 2 results out of 315)

origin: wildfly/wildfly

/**
 * @param views Guaranteed to be non-null and to have >= 2 members, or else this thread would not be started
 */
public synchronized void start(Map<Address, View> views) {
  if(thread != null && thread.isAlive()) // the merge thread is already running
    return;
  this.coords.clear();
  this.subviews.clear();
  subviews.addAll(views.values());
  // now remove all members which don't have us in their view, so RPCs won't block (e.g. FLUSH)
  // https://jira.jboss.org/browse/JGRP-1061
  sanitizeViews(views);
  Map<Address,Collection<Address>> tmp_coords=determineMergeCoords(views);
  this.coords.putAll(tmp_coords);
  thread=gms.getThreadFactory().newThread(this, "MergeTask");
  thread.setDaemon(true);
  thread.start();
}
origin: org.jboss.eap/wildfly-client-all

/**
 * @param views Guaranteed to be non-null and to have >= 2 members, or else this thread would not be started
 */
public synchronized void start(Map<Address, View> views) {
  if(thread != null && thread.isAlive()) // the merge thread is already running
    return;
  this.coords.clear();
  this.subviews.clear();
  subviews.addAll(views.values());
  // now remove all members which don't have us in their view, so RPCs won't block (e.g. FLUSH)
  // https://jira.jboss.org/browse/JGRP-1061
  sanitizeViews(views);
  Map<Address,Collection<Address>> tmp_coords=determineMergeCoords(views);
  this.coords.putAll(tmp_coords);
  thread=gms.getThreadFactory().newThread(this, "MergeTask");
  thread.setDaemon(true);
  thread.start();
}
org.jgroups.protocols.pbcastMergersanitizeViews

Javadoc

Removes all members from a given view which don't have us in their view (https://jira.jboss.org/browse/JGRP-1061). Example:
 
A: AB 
B: AB 
C: ABC 
becomes
 
A: AB 
B: AB 
C: C // A and B don't have C in their views 

Popular methods of Merger

  • merge
    Invoked upon receiving a MERGE event from the MERGE layer. Starts the merge protocol. See descriptio
  • <init>
  • _handleMergeRequest
  • cancelMerge
  • determineMergeCoords
    Needs to return a map of all subview coordinators and their views (as a collection of members). The
  • determineMergeLeader
    Returns the address of the merge leader
  • fetchDigestsFromAllMembersInSubPartition
    Multicasts a GET_DIGEST_REQ to all members of this sub partition and waits for all responses (GET_DI
  • fixDigests
    Fetches the digests from all members and installs them again. Used only for diagnosis and support; d
  • forceCancelMerge
  • getMergeId
  • getMergeIdAsString
  • getMergeIdHistory
  • getMergeIdAsString,
  • getMergeIdHistory,
  • handleDigestResponse,
  • handleMergeCancelled,
  • handleMergeRequest,
  • handleMergeResponse,
  • handleMergeView,
  • isMergeInProgress,
  • isMergeKillerTaskRunning,
  • isMergeTaskRunning

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now