Tabnine Logo
VERIFY_SUSPECT.addSuspects
Code IndexAdd Tabnine to your IDE (free)

How to use
addSuspects
method
in
org.jgroups.protocols.VERIFY_SUSPECT

Best Java code snippets using org.jgroups.protocols.VERIFY_SUSPECT.addSuspects (Showing top 2 results out of 315)

origin: wildfly/wildfly

/**
 * Sends ARE_YOU_DEAD message to suspected_mbr, wait for return or timeout
 */
protected void verifySuspect(Collection<Address> mbrs) {
  if(mbrs == null || mbrs.isEmpty())
    return;
  if(addSuspects(mbrs)) {
    startTimer(); // start timer before we send out are you dead messages
    log.trace("verifying that %s %s dead", mbrs, mbrs.size() == 1? "is" : "are");
  }
  for(Address mbr: mbrs) {
    for(int i=0; i < num_msgs; i++) {
      Message msg=new Message(mbr).setFlag(Message.Flag.INTERNAL)
       .putHeader(this.id, new VerifyHeader(VerifyHeader.ARE_YOU_DEAD, local_addr));
      down_prot.down(msg);
    }
  }
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Sends ARE_YOU_DEAD message to suspected_mbr, wait for return or timeout
 */
void verifySuspect(Collection<Address> mbrs) {
  if(mbrs == null || mbrs.isEmpty())
    return;
  boolean added=addSuspects(mbrs);
  if(added) {
    startTimer(); // start timer before we send out are you dead messages
    log.trace("verifying that %s %s dead", mbrs, mbrs.size() == 1? "is" : "are");
  }
  for(Address mbr: mbrs) {
    for(int i=0; i < num_msgs; i++) {
      Message msg=new Message(mbr).setFlag(Message.Flag.INTERNAL)
       .putHeader(this.id, new VerifyHeader(VerifyHeader.ARE_YOU_DEAD, local_addr));
      down_prot.down(msg);
    }
  }
}
org.jgroups.protocolsVERIFY_SUSPECTaddSuspects

Javadoc

Adds suspected members to the suspect list. Returns true if a member is not present and the timer is not running.

Popular methods of VERIFY_SUSPECT

  • startTimer
  • unsuspect
  • verifySuspect
    Sends ARE_YOU_DEAD message to suspected_mbr, wait for return or timeout
  • <init>
  • adjustSuspectedMembers
    Removes all elements from suspects that are not in the new membership
  • getThreadFactory
  • removeSuspect
  • clearSuspects
  • getCurrentTimeMillis
  • verifySuspectWithICMP

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • 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
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best plugins for Eclipse
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