Tabnine Logo
FLUSH.readParticipantsAndDigest
Code IndexAdd Tabnine to your IDE (free)

How to use
readParticipantsAndDigest
method
in
org.jgroups.protocols.pbcast.FLUSH

Best Java code snippets using org.jgroups.protocols.pbcast.FLUSH.readParticipantsAndDigest (Showing top 10 results out of 315)

origin: wildfly/wildfly

boolean needsReconciliationPhase = false;
boolean collision = false;
final Tuple<Collection<? extends Address>,Digest> tuple=readParticipantsAndDigest(m.getRawBuffer(),
                                         m.getOffset(),m.getLength());
Digest digest = tuple.getVal2();
origin: wildfly/wildfly

Tuple<Collection<? extends Address>,Digest> tuple=readParticipantsAndDigest(msg.getRawBuffer(),
                                      msg.getOffset(),msg.getLength());
synchronized (sharedLock) {
origin: wildfly/wildfly

private void handleStartFlush(Message msg, FlushHeader fh) {
  Address flushRequester = msg.getSrc();
  boolean proceed = flushInProgress.compareAndSet(false, true);
  if (proceed) {
    synchronized (sharedLock) {
      flushCoordinator = flushRequester;
    }
    onStartFlush(flushRequester, msg, fh);
  } else {
    Tuple<Collection<? extends Address>,Digest> tuple=readParticipantsAndDigest(msg.getRawBuffer(),
                                          msg.getOffset(),msg.getLength());
    Collection<? extends Address> flushParticipants=tuple.getVal1();
    Message response = new Message(flushRequester)
     .putHeader(this.id,new FlushHeader(FlushHeader.FLUSH_NOT_COMPLETED,fh.viewID))
     .setBuffer(marshal(flushParticipants,null));
    down_prot.down(response);
    if (log.isDebugEnabled())
      log.debug(localAddress + ": received START_FLUSH, responded with FLUSH_NOT_COMPLETED to " + flushRequester);
  }
}
origin: wildfly/wildfly

final FlushHeader fh =msg.getHeader(this.id);
if (fh != null) {
  final Tuple<Collection<? extends Address>,Digest> tuple=readParticipantsAndDigest(msg.getRawBuffer(),
                                           msg.getOffset(),
                                           msg.getLength());
origin: wildfly/wildfly

private void handleFlushReconcile(Message msg) {
  Address requester = msg.getSrc();
  Tuple<Collection<? extends Address>,Digest> tuple=readParticipantsAndDigest(msg.getRawBuffer(),
                                        msg.getOffset(),msg.getLength());
  Digest reconcileDigest = tuple.getVal2();
  if (log.isDebugEnabled())
    log.debug(localAddress + ": received FLUSH_RECONCILE, passing digest to NAKACK "
        + reconcileDigest);
  // Let NAKACK reconcile missing messages
  down_prot.down(new Event(Event.REBROADCAST, reconcileDigest));
  if (log.isDebugEnabled())
    log.debug(localAddress + ": returned from FLUSH_RECONCILE, "
        + " sending RECONCILE_OK to " + requester);
  Message reconcileOk = new Message(requester).setFlag(Message.Flag.OOB, Message.Flag.INTERNAL)
   .putHeader(this.id,new FlushHeader(FlushHeader.FLUSH_RECONCILE_OK));
  down_prot.down(reconcileOk);
}
origin: org.jboss.eap/wildfly-client-all

boolean needsReconciliationPhase = false;
boolean collision = false;
final Tuple<Collection<? extends Address>,Digest> tuple=readParticipantsAndDigest(m.getRawBuffer(),
                                         m.getOffset(),m.getLength());
Digest digest = tuple.getVal2();
origin: org.jboss.eap/wildfly-client-all

Tuple<Collection<? extends Address>,Digest> tuple=readParticipantsAndDigest(msg.getRawBuffer(),
                                      msg.getOffset(),msg.getLength());
synchronized (sharedLock) {
origin: org.jboss.eap/wildfly-client-all

private void handleStartFlush(Message msg, FlushHeader fh) {
  Address flushRequester = msg.getSrc();
  boolean proceed = flushInProgress.compareAndSet(false, true);
  if (proceed) {
    synchronized (sharedLock) {
      flushCoordinator = flushRequester;
    }
    onStartFlush(flushRequester, msg, fh);
  } else {
    Tuple<Collection<? extends Address>,Digest> tuple=readParticipantsAndDigest(msg.getRawBuffer(),
                                          msg.getOffset(),msg.getLength());
    Collection<? extends Address> flushParticipants=tuple.getVal1();
    Message response = new Message(flushRequester)
     .putHeader(this.id,new FlushHeader(FlushHeader.FLUSH_NOT_COMPLETED,fh.viewID))
     .setBuffer(marshal(flushParticipants,null));
    down_prot.down(response);
    if (log.isDebugEnabled())
      log.debug(localAddress + ": received START_FLUSH, responded with FLUSH_NOT_COMPLETED to " + flushRequester);
  }
}
origin: org.jboss.eap/wildfly-client-all

final FlushHeader fh =msg.getHeader(this.id);
if (fh != null) {
  final Tuple<Collection<? extends Address>,Digest> tuple=readParticipantsAndDigest(msg.getRawBuffer(),
                                           msg.getOffset(),
                                           msg.getLength());
origin: org.jboss.eap/wildfly-client-all

private void handleFlushReconcile(Message msg) {
  Address requester = msg.getSrc();
  Tuple<Collection<? extends Address>,Digest> tuple=readParticipantsAndDigest(msg.getRawBuffer(),
                                        msg.getOffset(),msg.getLength());
  Digest reconcileDigest = tuple.getVal2();
  if (log.isDebugEnabled())
    log.debug(localAddress + ": received FLUSH_RECONCILE, passing digest to NAKACK "
        + reconcileDigest);
  // Let NAKACK reconcile missing messages
  down_prot.down(new Event(Event.REBROADCAST, reconcileDigest));
  if (log.isDebugEnabled())
    log.debug(localAddress + ": returned from FLUSH_RECONCILE, "
        + " sending RECONCILE_OK to " + requester);
  Message reconcileOk = new Message(requester).setFlag(Message.Flag.OOB, Message.Flag.INTERNAL)
   .putHeader(this.id,new FlushHeader(FlushHeader.FLUSH_RECONCILE_OK));
  down_prot.down(reconcileOk);
}
org.jgroups.protocols.pbcastFLUSHreadParticipantsAndDigest

Popular methods of FLUSH

  • blockMessageDuringFlush
  • currentViewId
  • down
  • findHighestSequences
  • handleFlushReconcile
  • handleStartFlush
  • hasVirtualSynchronyGaps
  • isCurrentFlushMessage
  • onFlushCompleted
  • onFlushReconcileOK
  • onResume
  • onStartFlush
  • onResume,
  • onStartFlush,
  • onStopFlush,
  • onSuspect,
  • onSuspend,
  • onViewChange,
  • rejectFlush,
  • sendBlockUpToChannel,
  • startFlush,
  • handleConnect

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top 12 Jupyter Notebook Extensions
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