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

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BoxLayout (javax.swing)
  • JLabel (javax.swing)
  • JOptionPane (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Github Copilot alternatives
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