congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Table.getDigest
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: wildfly/wildfly

/**
 * Returns a message digest: for each member P the highest delivered and received seqno is added
 */
public Digest getDigest() {
  final Map<Address,long[]> map=new HashMap<>();
  for(Map.Entry<Address,Table<Message>> entry: xmit_table.entrySet()) {
    Address sender=entry.getKey(); // guaranteed to be non-null (CCHM)
    Table<Message> buf=entry.getValue(); // guaranteed to be non-null (CCHM)
    long[] seqnos=buf.getDigest();
    map.put(sender, seqnos);
  }
  return new Digest(map);
}
origin: wildfly/wildfly

public Digest getDigest(Address mbr) {
  if(mbr == null)
    return getDigest();
  Table<Message> buf=xmit_table.get(mbr);
  if(buf == null)
    return null;
  long[] seqnos=buf.getDigest();
  return new Digest(mbr, seqnos[0], seqnos[1]);
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Returns a message digest: for each member P the highest delivered and received seqno is added
 */
public Digest getDigest() {
  final Map<Address,long[]> map=new HashMap<>();
  for(Map.Entry<Address,Table<Message>> entry: xmit_table.entrySet()) {
    Address sender=entry.getKey(); // guaranteed to be non-null (CCHM)
    Table<Message> buf=entry.getValue(); // guaranteed to be non-null (CCHM)
    long[] seqnos=buf.getDigest();
    map.put(sender, seqnos);
  }
  return new Digest(map);
}
origin: org.jboss.eap/wildfly-client-all

public Digest getDigest(Address mbr) {
  if(mbr == null)
    return getDigest();
  Table<Message> buf=xmit_table.get(mbr);
  if(buf == null)
    return null;
  long[] seqnos=buf.getDigest();
  return new Digest(mbr, seqnos[0], seqnos[1]);
}
org.jgroups.utilTablegetDigest

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,
  • getHighestDeliverable,
  • getHighestDelivered,
  • getHighestReceived,
  • getLow,
  • getMissing,
  • getNumCompactions

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • 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