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

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

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

origin: wildfly/wildfly

public void unsuspect(Address mbr) {
  boolean removed=mbr != null && removeSuspect(mbr);
  if(removed) {
    log.trace("member " + mbr + " was unsuspected");
    down_prot.down(new Event(Event.UNSUSPECT, mbr));
    up_prot.up(new Event(Event.UNSUSPECT, mbr));
  }
}
origin: wildfly/wildfly

protected void verifySuspectWithICMP(Address suspected_mbr) {
  InetAddress host=suspected_mbr instanceof IpAddress? ((IpAddress)suspected_mbr).getIpAddress() : null;
  if(host == null)
    throw new IllegalArgumentException("suspected_mbr is not of type IpAddress - FD_ICMP only works with these");
  try {
    if(log.isTraceEnabled())
      log.trace("pinging host " + suspected_mbr + " using interface " + intf);
    long start=getCurrentTimeMillis(), stop;
    boolean rc=host.isReachable(intf, 0, (int)timeout);
    stop=getCurrentTimeMillis();
    if(rc) // success
      log.trace("successfully received response from " + host + " (after " + (stop-start) + "ms)");
    else { // failure
      log.debug("failed pinging " + suspected_mbr + " after " + (stop-start) + "ms; passing up SUSPECT event");
      removeSuspect(suspected_mbr);
      up_prot.up(new Event(Event.SUSPECT, Collections.singletonList(suspected_mbr)));
    }
  }
  catch(Exception ex) {
    log.error(Util.getMessage("FailedPinging"),suspected_mbr, ex);
  }
}
origin: org.jboss.eap/wildfly-client-all

public void unsuspect(Address mbr) {
  boolean removed=mbr != null && removeSuspect(mbr);
  if(removed) {
    log.trace("member " + mbr + " was unsuspected");
    down_prot.down(new Event(Event.UNSUSPECT, mbr));
    up_prot.up(new Event(Event.UNSUSPECT, mbr));
  }
}
origin: org.jboss.eap/wildfly-client-all

void verifySuspectWithICMP(Address suspected_mbr) {
  InetAddress host=suspected_mbr instanceof IpAddress? ((IpAddress)suspected_mbr).getIpAddress() : null;
  if(host == null)
    throw new IllegalArgumentException("suspected_mbr is not of type IpAddress - FD_ICMP only works with these");
  try {
    if(log.isTraceEnabled())
      log.trace("pinging host " + suspected_mbr + " using interface " + intf);
    long start=System.currentTimeMillis(), stop;
    boolean rc=host.isReachable(intf, 0, (int)timeout);
    stop=System.currentTimeMillis();
    if(rc) // success
      log.trace("successfully received response from " + host + " (after " + (stop-start) + "ms)");
    else { // failure
      log.debug("failed pinging " + suspected_mbr + " after " + (stop-start) + "ms; passing up SUSPECT event");
      removeSuspect(suspected_mbr);
      up_prot.up(new Event(Event.SUSPECT, Collections.singletonList(suspected_mbr)));
    }
  }
  catch(Exception ex) {
    log.error(Util.getMessage("FailedPinging"),suspected_mbr, ex);
  }
}
org.jgroups.protocolsVERIFY_SUSPECTremoveSuspect

Popular methods of VERIFY_SUSPECT

  • startTimer
  • 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
  • clearSuspects
  • getCurrentTimeMillis
  • verifySuspectWithICMP

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • JFrame (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Runner (org.openjdk.jmh.runner)
  • 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