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

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

Best Java code snippets using org.jgroups.protocols.VERIFY_SUSPECT.startTimer (Showing top 3 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.jgroups/com.springsource.org.jgroups

/**
 * Sends ARE_YOU_DEAD message to suspected_mbr, wait for return or timeout
 */
void verifySuspect(Address mbr) {
  Message msg;
  if(mbr == null) return;
  synchronized(suspects) {
    if(suspects.containsKey(mbr))
      return;
    suspects.put(mbr, new Long(System.currentTimeMillis()));
  }
  // moved out of synchronized statement (bela): http://jira.jboss.com/jira/browse/JGRP-302
  if(log.isTraceEnabled()) log.trace("verifying that " + mbr + " is dead");
  for(int i=0; i < num_msgs; i++) {
    msg=new Message(mbr, null, null);
    msg.setFlag(Message.OOB);
    msg.putHeader(name, new VerifyHeader(VerifyHeader.ARE_YOU_DEAD, local_addr));
    down_prot.down(new Event(Event.MSG, msg));
  }
  if(timer == null)
    startTimer();
}
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_SUSPECTstartTimer

Popular methods of VERIFY_SUSPECT

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

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Option (scala)
  • Top Vim plugins
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