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

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Path (java.nio.file)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now