Tabnine Logo
STABLE.marshal
Code IndexAdd Tabnine to your IDE (free)

How to use
marshal
method
in
org.jgroups.protocols.pbcast.STABLE

Best Java code snippets using org.jgroups.protocols.pbcast.STABLE.marshal (Showing top 4 results out of 315)

origin: wildfly/wildfly

protected void _sendStabilityMessage(Digest stability_digest, final ViewId view_id) {
  if(suspended) {
    log.debug("STABILITY message will not be sent as suspended=%b", suspended);
    return;
  }
  // https://issues.jboss.org/browse/JGRP-1638: we reverted to sending the STABILITY message *unreliably*,
  // but clear votes *before* sending it
  try {
    Message msg=new Message().setFlag(Message.Flag.OOB, Message.Flag.INTERNAL, Message.Flag.NO_RELIABILITY)
     .putHeader(id, new StableHeader(StableHeader.STABILITY, view_id))
     .setBuffer(marshal(stability_digest));
    log.trace("%s: sending stability msg %s", local_addr, printDigest(stability_digest));
    num_stability_msgs_sent++;
    down_prot.down(msg);
  }
  catch(Exception e) {
    log.warn("failed sending STABILITY message", e);
  }
}
origin: wildfly/wildfly

 .setFlag(Message.Flag.OOB,Message.Flag.INTERNAL,Message.Flag.NO_RELIABILITY)
 .putHeader(this.id, new StableHeader(StableHeader.STABLE_GOSSIP, current_view.getViewId()))
 .setBuffer(marshal(d));
try {
  if(!send_in_background) {
origin: org.jboss.eap/wildfly-client-all

protected void _sendStabilityMessage(Digest stability_digest, final ViewId view_id) {
  if(suspended) {
    log.debug("STABILITY message will not be sent as suspended=%b", suspended);
    return;
  }
  // https://issues.jboss.org/browse/JGRP-1638: we reverted to sending the STABILITY message *unreliably*,
  // but clear votes *before* sending it
  try {
    Message msg=new Message().setFlag(Message.Flag.OOB, Message.Flag.INTERNAL, Message.Flag.NO_RELIABILITY)
     .putHeader(id, new StableHeader(StableHeader.STABILITY, view_id))
     .setBuffer(marshal(stability_digest));
    log.trace("%s: sending stability msg %s", local_addr, printDigest(stability_digest));
    num_stability_msgs_sent++;
    down_prot.down(msg);
  }
  catch(Exception e) {
    log.warn("failed sending STABILITY message", e);
  }
}
origin: org.jboss.eap/wildfly-client-all

 .setFlag(Message.Flag.OOB,Message.Flag.INTERNAL,Message.Flag.NO_RELIABILITY)
 .putHeader(this.id, new StableHeader(StableHeader.STABLE_GOSSIP, current_view.getViewId()))
 .setBuffer(marshal(d));
try {
  if(!send_in_background) {
org.jgroups.protocols.pbcastSTABLEmarshal

Popular methods of STABLE

  • addVote
    Adds mbr to votes and returns true if we have all the votes, otherwise false.
  • allVotesReceived
    Votes is already locked and guaranteed to be non-null
  • getDigest
  • handleRegularMessage
  • handleStabilityMessage
  • handleStableMessage
    Digest d contains (a) the highest seqnos deliverable for each sender and (b) the highest seqnosseen
  • handleViewChange
  • resetDigest
  • resume
  • sendStabilityMessage
    Schedules a stability message to be mcast after a random number of milliseconds (range [1-stability_
  • sendStableMessage
    Broadcasts a STABLE message of the current digest to all members (or the coordinator only). The mess
  • startResumeTask
  • sendStableMessage,
  • startResumeTask,
  • startStabilityTask,
  • startStableTask,
  • stopResumeTask,
  • stopStabilityTask,
  • stopStableTask,
  • suspend,
  • updateLocalDigest,
  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • getSystemService (Context)
  • findViewById (Activity)
  • Kernel (java.awt.image)
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
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