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

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

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

origin: wildfly/wildfly

@ManagedAttribute(description="Total number of missing (= not received) messages in all retransmit buffers")
public int getXmitTableMissingMessages() {
  int num=0;
  for(Table<Message> buf: xmit_table.values())
    num+=buf.getNumMissing();
  return num;
}
origin: wildfly/wildfly

public String toString() {
  StringBuilder sb=new StringBuilder();
  sb.append("[" + low + " | " + hd + " | " + hr + "] (" + size() +
        " elements, " + getNumMissing() + " missing)");
  return sb.toString();
}
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

public String toString() {
  StringBuilder sb=new StringBuilder();
  sb.append("[" + low + " | " + hd + " | " + hr + "] (" + size() +
        " elements, " + getNumMissing() + " missing)");
  return sb.toString();
}
origin: org.jboss.eap/wildfly-client-all

@ManagedAttribute(description="Total number of missing (= not received) messages in all retransmit buffers")
public int getXmitTableMissingMessages() {
  int num=0;
  for(Table<Message> buf: xmit_table.values())
    num+=buf.getNumMissing();
  return num;
}
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.utilTablegetNumMissing

Javadoc

Returns the number of null elements in the range [hd+1 .. hr-1] excluding hd and hr

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,
  • getMissing,
  • getNumCompactions

Popular in Java

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JFrame (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • 21 Best Atom Packages for 2021
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