Tabnine Logo
STABLE.startStabilityTask
Code IndexAdd Tabnine to your IDE (free)

How to use
startStabilityTask
method
in
org.jgroups.protocols.pbcast.STABLE

Best Java code snippets using org.jgroups.protocols.pbcast.STABLE.startStabilityTask (Showing top 3 results out of 315)

origin: wildfly/wildfly

/**
 Schedules a stability message to be mcast after a random number of milliseconds (range [1-stability_delay] secs).
 The reason for waiting a random amount of time is that, in the worst case, all members receive a
 STABLE_GOSSIP message from the last outstanding member at the same time and would therefore mcast the
 STABILITY message at the same time too. To avoid this, each member waits random N msecs. If, before N
 elapses, some other member sent the STABILITY message, we just cancel our own message. If, during
 waiting for N msecs to send STABILITY message S1, another STABILITY message S2 is to be sent, we just discard S2.
 @param tmp A copy of the stability digest, so we don't need to copy it again
 */
protected void sendStabilityMessage(Digest tmp, final ViewId view_id) {
  if(send_stable_msgs_to_coord_only || stability_delay <= 1)
    _sendStabilityMessage(tmp, view_id);
  else {
    // give other members a chance to mcast STABILITY message. if we receive STABILITY by the end of our random
    // sleep, we will not send the STABILITY msg. this prevents that all mbrs mcast a STABILITY msg at the same time
    startStabilityTask(tmp, view_id, Util.random(stability_delay));
  }
}
origin: org.jgroups/com.springsource.org.jgroups

/**
 Schedules a stability message to be mcast after a random number of milliseconds (range 1-5 secs).
 The reason for waiting a random amount of time is that, in the worst case, all members receive a
 STABLE_GOSSIP message from the last outstanding member at the same time and would therefore mcast the
 STABILITY message at the same time too. To avoid this, each member waits random N msecs. If, before N
 elapses, some other member sent the STABILITY message, we just cancel our own message. If, during
 waiting for N msecs to send STABILITY message S1, another STABILITY message S2 is to be sent, we just
 discard S2.
 @param tmp A copy of te stability digest, so we don't need to copy it again
 */
private void sendStabilityMessage(Digest tmp) {
  long delay;
  if(suspended) {
    if(log.isTraceEnabled())
      log.trace("STABILITY message will not be sent as I'm suspended");
    return;
  }
  // give other members a chance to mcast STABILITY message. if we receive STABILITY by the end of
  // our random sleep, we will not send the STABILITY msg. this prevents that all mbrs mcast a
  // STABILITY msg at the same time
  delay=Util.random(stability_delay);
  if(log.isTraceEnabled()) log.trace("sending stability msg (in " + delay + " ms) " + tmp.printHighestDeliveredSeqnos() +
  " (copy=" + tmp.hashCode() + ")");
  startStabilityTask(tmp, delay);
}
origin: org.jboss.eap/wildfly-client-all

/**
 Schedules a stability message to be mcast after a random number of milliseconds (range [1-stability_delay] secs).
 The reason for waiting a random amount of time is that, in the worst case, all members receive a
 STABLE_GOSSIP message from the last outstanding member at the same time and would therefore mcast the
 STABILITY message at the same time too. To avoid this, each member waits random N msecs. If, before N
 elapses, some other member sent the STABILITY message, we just cancel our own message. If, during
 waiting for N msecs to send STABILITY message S1, another STABILITY message S2 is to be sent, we just discard S2.
 @param tmp A copy of the stability digest, so we don't need to copy it again
 */
protected void sendStabilityMessage(Digest tmp, final ViewId view_id) {
  if(send_stable_msgs_to_coord_only || stability_delay <= 1)
    _sendStabilityMessage(tmp, view_id);
  else {
    // give other members a chance to mcast STABILITY message. if we receive STABILITY by the end of our random
    // sleep, we will not send the STABILITY msg. this prevents that all mbrs mcast a STABILITY msg at the same time
    startStabilityTask(tmp, view_id, Util.random(stability_delay));
  }
}
org.jgroups.protocols.pbcastSTABLEstartStabilityTask

Popular methods of STABLE

  • addVote
    Adds mbr to votes and returns true if we have all the votes, otherwise false.
  • allVotesReceived
    Votes is already locked and guaranteed to be non-null
  • getDigest
  • handleRegularMessage
  • handleStabilityMessage
  • handleStableMessage
    Digest d contains (a) the highest seqnos deliverable for each sender and (b) the highest seqnosseen
  • handleViewChange
  • resetDigest
  • resume
  • sendStabilityMessage
    Schedules a stability message to be mcast after a random number of milliseconds (range [1-stability_
  • sendStableMessage
    Broadcasts a STABLE message of the current digest to all members (or the coordinator only). The mess
  • startResumeTask
  • sendStableMessage,
  • startResumeTask,
  • startStableTask,
  • stopResumeTask,
  • stopStabilityTask,
  • stopStableTask,
  • suspend,
  • updateLocalDigest,
  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top plugins for WebStorm
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