Codota Logo
STABLE.startStabilityTask
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
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

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • addToBackStack (FragmentTransaction)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now