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

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

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

origin: wildfly/wildfly

@ManagedOperation(description="Sends a STABLE message; when every member has received a STABLE message " +
 "from everybody else, a STABILITY message will be sent")
public void gc() {
  sendStableMessage(false);
}
origin: wildfly/wildfly

public void run() {
  if(suspended) {
    log.trace("%s: stable task will not run as suspended=true", local_addr);
    return;
  }
  sendStableMessage(false);
}
origin: wildfly/wildfly

protected void handleRegularMessage(Message msg) {
  // only if bytes counting is enabled, and only for multicast messages (http://jira.jboss.com/jira/browse/JGRP-233)
  if(max_bytes <= 0)
    return;
  if(msg.getDest() == null) {
    boolean send_stable_msg=false;
    received.lock();
    try {
      num_bytes_received+=msg.getLength();
      if(num_bytes_received >= max_bytes) {
        log.trace("max_bytes has been reached (%s, bytes received=%s): triggers stable msg",
             max_bytes, num_bytes_received);
        num_bytes_received=0;
        send_stable_msg=true;
      }
    }
    finally {
      received.unlock();
    }
    if(send_stable_msg)
      sendStableMessage(true);
  }
}
origin: wildfly/wildfly

public void up(MessageBatch batch) {
  StableHeader hdr;
  for(Message msg: batch) { // remove and handle messages with flow control headers (STABLE_GOSSIP, STABILITY)
    if((hdr=msg.getHeader(id)) != null) {
      batch.remove(msg);
      handleUpEvent(hdr, batch.sender(), readDigest(msg.getRawBuffer(), msg.getOffset(), msg.getLength()));
    }
  }
  // only if message counting is on, and only for multicast messages (http://jira.jboss.com/jira/browse/JGRP-233)
  if(max_bytes > 0 && batch.dest() == null && !batch.isEmpty()) {
    boolean send_stable_msg=false;
    received.lock();
    try {
      num_bytes_received+=batch.length();
      if(num_bytes_received >= max_bytes) {
        log.trace("max_bytes has been reached (%s, bytes received=%s): triggers stable msg",
             max_bytes, num_bytes_received);
        num_bytes_received=0;
        send_stable_msg=true;
      }
    }
    finally {
      received.unlock();
    }
    if(send_stable_msg)
      sendStableMessage(true);
  }
  if(!batch.isEmpty())
    up_prot.up(batch);
}
origin: org.jgroups/com.springsource.org.jgroups

public void runMessageGarbageCollection() {
  Digest copy=getDigest();
  sendStableMessage(copy);
}
origin: org.jboss.eap/wildfly-client-all

public void run() {
  if(suspended) {
    log.trace("%s: stable task will not run as suspended=true", local_addr);
    return;
  }
  sendStableMessage(false);
}
origin: org.jboss.eap/wildfly-client-all

@ManagedOperation(description="Sends a STABLE message; when every member has received a STABLE message " +
 "from everybody else, a STABILITY message will be sent")
public void gc() {
  sendStableMessage(false);
}
origin: org.jgroups/com.springsource.org.jgroups

sendStableMessage(my_digest);
origin: org.jboss.eap/wildfly-client-all

protected void handleRegularMessage(Message msg) {
  // only if bytes counting is enabled, and only for multicast messages (http://jira.jboss.com/jira/browse/JGRP-233)
  if(max_bytes <= 0)
    return;
  if(msg.getDest() == null) {
    boolean send_stable_msg=false;
    received.lock();
    try {
      num_bytes_received+=msg.getLength();
      if(num_bytes_received >= max_bytes) {
        log.trace("max_bytes has been reached (%s, bytes received=%s): triggers stable msg",
             max_bytes, num_bytes_received);
        num_bytes_received=0;
        send_stable_msg=true;
      }
    }
    finally {
      received.unlock();
    }
    if(send_stable_msg)
      sendStableMessage(true);
  }
}
origin: org.jboss.eap/wildfly-client-all

public void up(MessageBatch batch) {
  StableHeader hdr;
  for(Message msg: batch) { // remove and handle messages with flow control headers (STABLE_GOSSIP, STABILITY)
    if((hdr=msg.getHeader(id)) != null) {
      batch.remove(msg);
      handleUpEvent(hdr, batch.sender(), readDigest(msg.getRawBuffer(), msg.getOffset(), msg.getLength()));
    }
  }
  // only if message counting is on, and only for multicast messages (http://jira.jboss.com/jira/browse/JGRP-233)
  if(max_bytes > 0 && batch.dest() == null && !batch.isEmpty()) {
    boolean send_stable_msg=false;
    received.lock();
    try {
      num_bytes_received+=batch.length();
      if(num_bytes_received >= max_bytes) {
        log.trace("max_bytes has been reached (%s, bytes received=%s): triggers stable msg",
             max_bytes, num_bytes_received);
        num_bytes_received=0;
        send_stable_msg=true;
      }
    }
    finally {
      received.unlock();
    }
    if(send_stable_msg)
      sendStableMessage(true);
  }
  if(!batch.isEmpty())
    up_prot.up(batch);
}
org.jgroups.protocols.pbcastSTABLEsendStableMessage

Javadoc

Bcasts a STABLE message of the current digest to all members. Message contains highest seqnos of all members seen by this member. Highest seqnos are retrieved from the NAKACK layer below.

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_
  • startResumeTask
  • startStabilityTask
  • startResumeTask,
  • startStabilityTask,
  • startStableTask,
  • stopResumeTask,
  • stopStabilityTask,
  • stopStableTask,
  • suspend,
  • updateLocalDigest,
  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • JTable (javax.swing)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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