Codota Logo
FLUSH.onStartFlush
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
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: org.jgroups/com.springsource.org.jgroups

if (oldPhase == FlushPhase.START_PHASE) {
  sendBlockUpToChannel();
  onStartFlush(msg.getSrc(), fh);
} else if (oldPhase == FlushPhase.FIRST_PHASE) {
  Address flushRequester = msg.getSrc();
          + ", proceeding with flush");
    onStartFlush(msg.getSrc(), fh);
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);
  }
}
org.jgroups.protocols.pbcastFLUSHonStartFlush

Popular methods of FLUSH

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

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Reference (javax.naming)
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