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

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

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

origin: wildfly/wildfly

public void openBarrier() {
  if(!isDigestNeeded())
    return;
  log.trace("%s: sending down OPEN_BARRIER", local_addr);
  down_prot.down(new Event(Event.OPEN_BARRIER));
}
origin: wildfly/wildfly

protected void handleException(Throwable exception) {
  if(isDigestNeeded())
    openBarrierAndResumeStable();
  up_prot.up(new Event(Event.GET_STATE_OK, new StateTransferResult(exception)));
}
origin: wildfly/wildfly

@ManagedOperation(description="Opens BARRIER and resumes STABLE")
public void openBarrierAndResumeStable() {
  if(!isDigestNeeded())
    return;
  log.trace("%s: sending down OPEN_BARRIER and RESUME_STABLE", local_addr);
  down_prot.down(new Event(Event.OPEN_BARRIER));
  down_prot.down(new Event(Event.RESUME_STABLE));
}
origin: wildfly/wildfly

@ManagedOperation(description="Closes BARRIER and suspends STABLE")
public void closeBarrierAndSuspendStable() {
  if(!isDigestNeeded())
    return;
  log.trace("%s: sending down CLOSE_BARRIER and SUSPEND_STABLE", local_addr);
  down_prot.down(new Event(Event.CLOSE_BARRIER));
  down_prot.down(new Event(Event.SUSPEND_STABLE));
}
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

if(isDigestNeeded()) {
  try {
    punchHoleFor(requester);
  if(isDigestNeeded()) {
    closeHoleFor(requester);
    resumeStable();
origin: org.jboss.eap/wildfly-client-all

public void openBarrier() {
  if(!isDigestNeeded())
    return;
  log.trace("%s: sending down OPEN_BARRIER", local_addr);
  down_prot.down(new Event(Event.OPEN_BARRIER));
}
origin: org.jgroups/com.springsource.org.jgroups

if(isDigestNeeded()){
  if(tmp_digest == null) {
    if(log.isWarnEnabled())
origin: org.jgroups/com.springsource.org.jgroups

if(!isDigestNeeded()) { // state transfer is in progress, digest was already requested
  requestApplicationStates(sender, false);
origin: org.jboss.eap/wildfly-client-all

protected void handleException(Throwable exception) {
  if(isDigestNeeded())
    openBarrierAndResumeStable();
  up_prot.up(new Event(Event.GET_STATE_OK, new StateTransferResult(exception)));
}
origin: org.jboss.eap/wildfly-client-all

@ManagedOperation(description="Closes BARRIER and suspends STABLE")
public void closeBarrierAndSuspendStable() {
  if(!isDigestNeeded())
    return;
  log.trace("%s: sending down CLOSE_BARRIER and SUSPEND_STABLE", local_addr);
  down_prot.down(new Event(Event.CLOSE_BARRIER));
  down_prot.down(new Event(Event.SUSPEND_STABLE));
}
origin: org.jboss.eap/wildfly-client-all

@ManagedOperation(description="Opens BARRIER and resumes STABLE")
public void openBarrierAndResumeStable() {
  if(!isDigestNeeded())
    return;
  log.trace("%s: sending down OPEN_BARRIER and RESUME_STABLE", local_addr);
  down_prot.down(new Event(Event.OPEN_BARRIER));
  down_prot.down(new Event(Event.RESUME_STABLE));
}
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

if(isDigestNeeded()) {
  try {
    punchHoleFor(requester);
  if(isDigestNeeded()) {
    closeHoleFor(requester);
    resumeStable();
org.jgroups.protocols.pbcastSTATE_TRANSFERisDigestNeeded

Javadoc

When FLUSH is used we do not need to pass digests between members see JGroups/doc/design/PartialStateTransfer.txt see JGroups/doc/design/FLUSH.txt

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
  • closeBarrierAndSuspendStable
  • closeHoleFor
  • down
  • getId
  • getStateFromApplication
  • handleException
  • openBarrier
  • openBarrierAndResumeStable
  • openBarrier,
  • openBarrierAndResumeStable,
  • punchHoleFor,
  • resumeStable,
  • sendException,
  • getAverageStateSize,
  • getNumberOfStateBytesSent,
  • getNumberOfStateRequests,
  • requestApplicationStates

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • JTable (javax.swing)
  • Top 17 Plugins for Android Studio
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