congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MessageID.getAddress
Code IndexAdd Tabnine to your IDE (free)

How to use
getAddress
method
in
org.jgroups.protocols.tom.MessageID

Best Java code snippets using org.jgroups.protocols.tom.MessageID.getAddress (Showing top 6 results out of 315)

origin: wildfly/wildfly

/**
 * Add a new message sent
 * @param messageID             the message ID
 * @param destinations          the destination set
 * @param initialSequenceNumber the initial sequence number
 * @param deliverToMyself       true if *this* member is in destination sent, false otherwise
 */
public void addNewMessageToSend(MessageID messageID, Collection<Address> destinations, long initialSequenceNumber,
                boolean deliverToMyself) {
  MessageInfo messageInfo = new MessageInfo(destinations, initialSequenceNumber, deliverToMyself);
  if (deliverToMyself) {
    messageInfo.setProposeReceived(messageID.getAddress());
  }
  sentMessages.put(messageID, messageInfo);
}
origin: wildfly/wildfly

MessageInfo(MessageID messageID, Message message, long sequenceNumber) {
  if (messageID == null) {
    throw new NullPointerException("Message ID can't be null");
  }
  this.messageID = messageID;
  this.message = message.copy(true, true);
  this.sequenceNumber = sequenceNumber;
  this.readyToDeliver = false;
  this.message.setSrc(messageID.getAddress());
}
origin: wildfly/wildfly

private void handleDataMessage(Message message, ToaHeader header) {
  final long startTime = statsCollector.now();
  try {
    final MessageID messageID = header.getMessageID();
    //create the sequence number and put it in deliver manager
    long myProposeSequenceNumber = deliverManager.addRemoteMessageToDeliver(messageID, message,
        header.getSequencerNumber(), header.getViewId());
    if (log.isTraceEnabled()) {
      log.trace("Received the message with %s. The proposed sequence number is %d",
           header, myProposeSequenceNumber);
    }
    if (myProposeSequenceNumber == -1) {
      //message discarded. not sending ack back.
      return;
    }
    //create a new message and send it back
    ToaHeader newHeader = ToaHeader.newProposeMessageHeader(messageID, myProposeSequenceNumber);
    Message proposeMessage = new Message().src(localAddress).dest(messageID.getAddress())
        .putHeader(this.id, newHeader).setFlag(Message.Flag.OOB, Message.Flag.INTERNAL, Message.Flag.DONT_BUNDLE);
    //multicastSenderThread.addUnicastMessage(proposeMessage);
    down_prot.down(proposeMessage);
  } catch (Exception e) {
    logException("Exception caught while processing the data message " + header.getMessageID(), e);
  } finally {
    statsCollector.addDataMessageDuration(statsCollector.now() - startTime);
  }
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Add a new message sent
 * @param messageID             the message ID
 * @param destinations          the destination set
 * @param initialSequenceNumber the initial sequence number
 * @param deliverToMyself       true if *this* member is in destination sent, false otherwise
 */
public void addNewMessageToSend(MessageID messageID, Collection<Address> destinations, long initialSequenceNumber,
                boolean deliverToMyself) {
  MessageInfo messageInfo = new MessageInfo(destinations, initialSequenceNumber, deliverToMyself);
  if (deliverToMyself) {
    messageInfo.setProposeReceived(messageID.getAddress());
  }
  sentMessages.put(messageID, messageInfo);
}
origin: org.jboss.eap/wildfly-client-all

MessageInfo(MessageID messageID, Message message, long sequenceNumber) {
  if (messageID == null) {
    throw new NullPointerException("Message ID can't be null");
  }
  this.messageID = messageID;
  this.message = message.copy(true, true);
  this.sequenceNumber = sequenceNumber;
  this.readyToDeliver = false;
  this.message.setSrc(messageID.getAddress());
}
origin: org.jboss.eap/wildfly-client-all

private void handleDataMessage(Message message, ToaHeader header) {
  final long startTime = statsCollector.now();
  try {
    final MessageID messageID = header.getMessageID();
    //create the sequence number and put it in deliver manager
    long myProposeSequenceNumber = deliverManager.addRemoteMessageToDeliver(messageID, message,
        header.getSequencerNumber(), header.getViewId());
    if (log.isTraceEnabled()) {
      log.trace("Received the message with %s. The proposed sequence number is %d",
           header, myProposeSequenceNumber);
    }
    if (myProposeSequenceNumber == -1) {
      //message discarded. not sending ack back.
      return;
    }
    //create a new message and send it back
    ToaHeader newHeader = ToaHeader.newProposeMessageHeader(messageID, myProposeSequenceNumber);
    Message proposeMessage = new Message().src(localAddress).dest(messageID.getAddress())
        .putHeader(this.id, newHeader).setFlag(Message.Flag.OOB, Message.Flag.INTERNAL, Message.Flag.DONT_BUNDLE);
    //multicastSenderThread.addUnicastMessage(proposeMessage);
    down_prot.down(proposeMessage);
  } catch (Exception e) {
    logException("Exception caught while processing the data message " + header.getMessageID(), e);
  } finally {
    statsCollector.addDataMessageDuration(statsCollector.now() - startTime);
  }
}
org.jgroups.protocols.tomMessageIDgetAddress

Popular methods of MessageID

  • <init>
  • compareTo
  • equals
  • hashCode
  • readFrom
  • serializedSize
  • writeTo

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
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • JButton (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Best IntelliJ plugins
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