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

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

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

origin: wildfly/wildfly

protected void handleXmitRequest(Address sender, SeqnoList missing) {
  if(is_trace)
    log.trace("%s <-- XMIT(%s: #%s)", local_addr, sender, missing);
  SenderEntry entry=send_table.get(sender);
  xmit_reqs_received.add(missing.size());
  Table<Message> win=entry != null? entry.msgs : null;
  if(win != null) {
    for(long seqno: missing) {
      Message msg=win.get(seqno);
      if(msg == null) {
        if(log.isWarnEnabled() && log_not_found_msgs && !local_addr.equals(sender) && seqno > win.getLow())
          log.warn(Util.getMessage("MessageNotFound"), local_addr, sender, seqno);
        continue;
      }
      down_prot.down(msg);
      xmit_rsps_sent.increment();
    }
  }
}
origin: wildfly/wildfly

/**
 * Retransmits messsages first_seqno to last_seqno from original_sender from xmit_table to xmit_requester,
 * called when XMIT_REQ is received.
 * @param xmit_requester The sender of the XMIT_REQ, we have to send the requested copy of the message to this address
 * @param missing_msgs A list of seqnos that have to be retransmitted
 * @param original_sender The member who originally sent the messsage. Guaranteed to be non-null
 */
protected void handleXmitReq(Address xmit_requester, SeqnoList missing_msgs, Address original_sender) {
  log.trace("%s: received xmit request from %s for %s%s", local_addr, xmit_requester, original_sender, missing_msgs);
  if(stats)
    xmit_reqs_received.add(missing_msgs.size());
  Table<Message> buf=xmit_table.get(original_sender);
  if(buf == null) {
    log.error(Util.getMessage("SenderNotFound"), local_addr, original_sender);
    return;
  }
  for(long i: missing_msgs) {
    Message msg=buf.get(i);
    if(msg == null) {
      if(log.isWarnEnabled() && log_not_found_msgs && !local_addr.equals(xmit_requester) && i > buf.getLow())
        log.warn(Util.getMessage("MessageNotFound"), local_addr, original_sender, i);
      continue;
    }
    if(is_trace)
      log.trace(local_addr + ": resending " + original_sender + "::" + i);
    sendXmitRsp(xmit_requester, msg);
  }
}
origin: wildfly/wildfly

/**
 * We need to resend the first message with our conn_id
 * @param sender
 */
protected void handleResendingOfFirstMessage(Address sender, int timestamp) {
  log.trace("%s <-- SEND_FIRST_SEQNO(%s)", local_addr, sender);
  SenderEntry entry=send_table.get(sender);
  Table<Message> win=entry != null? entry.msgs : null;
  if(win == null) {
    log.warn(Util.getMessage("SenderNotFound"), local_addr, sender);
    return;
  }
  if(!entry.updateLastTimestamp(timestamp))
    return;
  Message rsp=win.get(win.getLow() +1);
  if(rsp != null) {
    // We need to copy the UnicastHeader and put it back into the message because Message.copy() doesn't copy
    // the headers and therefore we'd modify the original message in the sender retransmission window
    // (https://jira.jboss.org/jira/browse/JGRP-965)
    Message copy=rsp.copy();
    UnicastHeader3 hdr=copy.getHeader(this.id);
    UnicastHeader3 newhdr=hdr.copy();
    newhdr.first=true;
    copy.putHeader(this.id, newhdr);
    down_prot.down(copy);
  }
}
origin: org.jboss.eap/wildfly-client-all

protected void handleXmitRequest(Address sender, SeqnoList missing) {
  if(is_trace)
    log.trace("%s <-- XMIT(%s: #%s)", local_addr, sender, missing);
  SenderEntry entry=send_table.get(sender);
  xmit_reqs_received.add(missing.size());
  Table<Message> win=entry != null? entry.msgs : null;
  if(win != null) {
    for(long seqno: missing) {
      Message msg=win.get(seqno);
      if(msg == null) {
        if(log.isWarnEnabled() && log_not_found_msgs && !local_addr.equals(sender) && seqno > win.getLow())
          log.warn(Util.getMessage("MessageNotFound"), local_addr, sender, seqno);
        continue;
      }
      down_prot.down(msg);
      xmit_rsps_sent.increment();
    }
  }
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Retransmits messsages first_seqno to last_seqno from original_sender from xmit_table to xmit_requester,
 * called when XMIT_REQ is received.
 * @param xmit_requester The sender of the XMIT_REQ, we have to send the requested copy of the message to this address
 * @param missing_msgs A list of seqnos that have to be retransmitted
 * @param original_sender The member who originally sent the messsage. Guaranteed to be non-null
 */
protected void handleXmitReq(Address xmit_requester, SeqnoList missing_msgs, Address original_sender) {
  log.trace("%s: received xmit request from %s for %s%s", local_addr, xmit_requester, original_sender, missing_msgs);
  if(stats)
    xmit_reqs_received.add(missing_msgs.size());
  Table<Message> buf=xmit_table.get(original_sender);
  if(buf == null) {
    log.error(Util.getMessage("SenderNotFound"), local_addr, original_sender);
    return;
  }
  for(long i: missing_msgs) {
    Message msg=buf.get(i);
    if(msg == null) {
      if(log.isWarnEnabled() && log_not_found_msgs && !local_addr.equals(xmit_requester) && i > buf.getLow())
        log.warn(Util.getMessage("MessageNotFound"), local_addr, original_sender, i);
      continue;
    }
    if(is_trace)
      log.trace(local_addr + ": resending " + original_sender + "::" + i);
    sendXmitRsp(xmit_requester, msg);
  }
}
origin: org.jboss.eap/wildfly-client-all

/**
 * We need to resend the first message with our conn_id
 * @param sender
 */
protected void handleResendingOfFirstMessage(Address sender, int timestamp) {
  log.trace("%s <-- SEND_FIRST_SEQNO(%s)", local_addr, sender);
  SenderEntry entry=send_table.get(sender);
  Table<Message> win=entry != null? entry.msgs : null;
  if(win == null) {
    log.warn(Util.getMessage("SenderNotFound"), local_addr, sender);
    return;
  }
  if(!entry.updateLastTimestamp(timestamp))
    return;
  Message rsp=win.get(win.getLow() +1);
  if(rsp != null) {
    // We need to copy the UnicastHeader and put it back into the message because Message.copy() doesn't copy
    // the headers and therefore we'd modify the original message in the sender retransmission window
    // (https://jira.jboss.org/jira/browse/JGRP-965)
    Message copy=rsp.copy();
    UnicastHeader3 hdr=copy.getHeader(this.id);
    UnicastHeader3 newhdr=hdr.copy();
    newhdr.first=true;
    copy.putHeader(this.id, newhdr);
    down_prot.down(copy);
  }
}
org.jgroups.utilTablegetLow

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

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Permission (java.security)
    Legacy security code; do not use.
  • JPanel (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Join (org.hibernate.mapping)
  • CodeWhisperer 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