Codota Logo
STABLE.marshal
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
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
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Collectors (java.util.stream)
  • Notification (javax.management)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now