Tabnine Logo
STATE_TRANSFER.closeBarrierAndSuspendStable
Code IndexAdd Tabnine to your IDE (free)

How to use
closeBarrierAndSuspendStable
method
in
org.jgroups.protocols.pbcast.STATE_TRANSFER

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

origin: wildfly/wildfly

/** Set the digest and the send the state up to the application */
protected void handleStateRsp(final Digest digest, Address sender, byte[] state) {
  try {
    if(isDigestNeeded()) {
      punchHoleFor(sender);
      closeBarrierAndSuspendStable(); // fix for https://jira.jboss.org/jira/browse/JGRP-1013
      if(digest != null)
        down_prot.down(new Event(Event.OVERWRITE_DIGEST, digest)); // set the digest (e.g. in NAKACK)
    }
    waiting_for_state_response=false;
    stop=System.currentTimeMillis();
    log.debug("%s: received state, size=%s, time=%d milliseconds", local_addr,
         (state == null? "0" : Util.printBytes(state.length)), stop - start);
    StateTransferResult result=new StateTransferResult(state);
    up_prot.up(new Event(Event.GET_STATE_OK, result));
    down_prot.down(new Event(Event.GET_VIEW_FROM_COORD)); // https://issues.jboss.org/browse/JGRP-1751
  }
  catch(Throwable t) {
    handleException(t);
  }
  finally {
    if(isDigestNeeded()) {
      closeHoleFor(sender);
      openBarrierAndResumeStable();
    }
  }
}
origin: wildfly/wildfly

try {
  punchHoleFor(requester);
  closeBarrierAndSuspendStable();
  digest=(Digest)down_prot.down(Event.GET_DIGEST_EVT);
origin: org.jboss.eap/wildfly-client-all

/** Set the digest and the send the state up to the application */
protected void handleStateRsp(final Digest digest, Address sender, byte[] state) {
  try {
    if(isDigestNeeded()) {
      punchHoleFor(sender);
      closeBarrierAndSuspendStable(); // fix for https://jira.jboss.org/jira/browse/JGRP-1013
      if(digest != null)
        down_prot.down(new Event(Event.OVERWRITE_DIGEST, digest)); // set the digest (e.g. in NAKACK)
    }
    waiting_for_state_response=false;
    stop=System.currentTimeMillis();
    log.debug("%s: received state, size=%s, time=%d milliseconds", local_addr,
         (state == null? "0" : Util.printBytes(state.length)), stop - start);
    StateTransferResult result=new StateTransferResult(state);
    up_prot.up(new Event(Event.GET_STATE_OK, result));
    down_prot.down(new Event(Event.GET_VIEW_FROM_COORD)); // https://issues.jboss.org/browse/JGRP-1751
  }
  catch(Throwable t) {
    handleException(t);
  }
  finally {
    if(isDigestNeeded()) {
      closeHoleFor(sender);
      openBarrierAndResumeStable();
    }
  }
}
origin: org.jboss.eap/wildfly-client-all

try {
  punchHoleFor(requester);
  closeBarrierAndSuspendStable();
  digest=(Digest)down_prot.down(Event.GET_DIGEST_EVT);
org.jgroups.protocols.pbcastSTATE_TRANSFERcloseBarrierAndSuspendStable

Popular methods of STATE_TRANSFER

  • determineCoordinator
    Return the first element of members which is not me. Otherwise return null.
  • handleStateReq
    If a state transfer is in progress, we don't need to send a GET_APPLSTATE event to the application,
  • handleStateRsp
    Set the digest and the send the state up to the application
  • handleViewChange
  • isDigestNeeded
    When FLUSH is used we do not need to pass digests between members see JGroups/doc/design/PartialStat
  • closeHoleFor
  • down
  • getId
  • getStateFromApplication
  • handleException
  • openBarrier
  • openBarrierAndResumeStable
  • openBarrier,
  • openBarrierAndResumeStable,
  • punchHoleFor,
  • resumeStable,
  • sendException,
  • getAverageStateSize,
  • getNumberOfStateBytesSent,
  • getNumberOfStateRequests,
  • requestApplicationStates

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ImageIO (javax.imageio)
  • Sublime Text for Python
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