Tabnine Logo
Table.getMissing
Code IndexAdd Tabnine to your IDE (free)

How to use
getMissing
method
in
org.jgroups.util.Table

Best Java code snippets using org.jgroups.util.Table.getMissing (Showing top 6 results out of 315)

origin: wildfly/wildfly

/**
 * Returns a list of missing (= null) elements
 * @return A SeqnoList of missing messages, or null if no messages are missing
 */
public SeqnoList getMissing() {
  return getMissing(0);
}
origin: wildfly/wildfly

@ManagedOperation(description="Triggers the retransmission task, asking all senders for missing messages")
public void triggerXmit() {
  SeqnoList missing;
  for(Map.Entry<Address,Table<Message>> entry: xmit_table.entrySet()) {
    Address target=entry.getKey(); // target to send retransmit requests to
    Table<Message> buf=entry.getValue();
    if(buf != null && buf.getNumMissing() > 0 && (missing=buf.getMissing(max_xmit_req_size)) != null) { // getNumMissing() is fast
      long highest=missing.getLast();
      Long prev_seqno=xmit_task_map.get(target);
      if(prev_seqno == null) {
        xmit_task_map.put(target, highest); // no retransmission
      }
      else {
        missing.removeHigherThan(prev_seqno); // we only retransmit the 'previous batch'
        if(highest > prev_seqno)
          xmit_task_map.put(target, highest);
        if(!missing.isEmpty())
          retransmit(missing, target, false);
      }
    }
    else if(!xmit_task_map.isEmpty())
      xmit_task_map.remove(target); // no current gaps for target
  }
  if(resend_last_seqno && last_seqno_resender != null)
    last_seqno_resender.execute(seqno.get());
}
origin: wildfly/wildfly

if(win != null && win.getNumMissing() > 0 && (missing=win.getMissing(max_xmit_req_size)) != null) {
  long highest=missing.getLast();
  Long prev_seqno=xmit_task_map.get(target);
origin: org.jboss.eap/wildfly-client-all

/**
 * Returns a list of missing (= null) elements
 * @return A SeqnoList of missing messages, or null if no messages are missing
 */
public SeqnoList getMissing() {
  return getMissing(0);
}
origin: org.jboss.eap/wildfly-client-all

@ManagedOperation(description="Triggers the retransmission task, asking all senders for missing messages")
public void triggerXmit() {
  SeqnoList missing;
  for(Map.Entry<Address,Table<Message>> entry: xmit_table.entrySet()) {
    Address target=entry.getKey(); // target to send retransmit requests to
    Table<Message> buf=entry.getValue();
    if(buf != null && buf.getNumMissing() > 0 && (missing=buf.getMissing(max_xmit_req_size)) != null) { // getNumMissing() is fast
      long highest=missing.getLast();
      Long prev_seqno=xmit_task_map.get(target);
      if(prev_seqno == null) {
        xmit_task_map.put(target, highest); // no retransmission
      }
      else {
        missing.removeHigherThan(prev_seqno); // we only retransmit the 'previous batch'
        if(highest > prev_seqno)
          xmit_task_map.put(target, highest);
        if(!missing.isEmpty())
          retransmit(missing, target, false);
      }
    }
    else if(!xmit_task_map.isEmpty())
      xmit_task_map.remove(target); // no current gaps for target
  }
  if(resend_last_seqno && last_seqno_resender != null)
    last_seqno_resender.execute(seqno.get());
}
origin: org.jboss.eap/wildfly-client-all

if(win != null && win.getNumMissing() > 0 && (missing=win.getMissing(max_xmit_req_size)) != null) {
  long highest=missing.getLast();
  Long prev_seqno=xmit_task_map.get(target);
org.jgroups.utilTablegetMissing

Javadoc

Returns a list of missing (= null) elements

Popular methods of Table

  • add
    Adds elements from the list to the table
  • <init>
  • _add
  • _compact
    Moves the contents of matrix down by the number of purged rows and resizes the matrix accordingly. T
  • capacity
    Returns the total capacity in the matrix
  • compact
  • computeIndex
    Computes and returns the index within a row for seqno
  • computeRow
    Computes and returns the row index for seqno. The caller must hold the lock.
  • computeSize
    Iterate from low to hr and add up non-null values. Caller must hold the lock.
  • findHighestSeqno
  • forEach
    Iterates over the matrix with range [from .. to] (including from and to), and calls Visitor#visit(lo
  • get
    Returns an element at seqno
  • forEach,
  • get,
  • getAdders,
  • getDigest,
  • getHighestDeliverable,
  • getHighestDelivered,
  • getHighestReceived,
  • getLow,
  • getNumCompactions

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Join (org.hibernate.mapping)
  • 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