Tabnine Logo
GmsImpl.unsuspect
Code IndexAdd Tabnine to your IDE (free)

How to use
unsuspect
method
in
org.jgroups.protocols.pbcast.GmsImpl

Best Java code snippets using org.jgroups.protocols.pbcast.GmsImpl.unsuspect (Showing top 3 results out of 315)

origin: wildfly/wildfly

public Object up(Event evt) {
  switch(evt.getType()) {
    case Event.SUSPECT:
      Object retval=up_prot.up(evt);
      // todo: change this to only accept lists in 4.1
      Collection<Address> suspects=evt.arg() instanceof Address? Collections.singletonList(evt.arg()) : evt.arg();
      Request[] suspect_reqs=new Request[suspects.size()];
      int index=0;
      for(Address mbr: suspects)
        suspect_reqs[index++]=new Request(Request.SUSPECT, mbr);
      view_handler.add(suspect_reqs);
      ack_collector.suspect(suspects);
      merge_ack_collector.suspect(suspects);
      return retval;
    case Event.UNSUSPECT:
      impl.unsuspect(evt.getArg());
      return null;                              // discard
    case Event.MERGE:
      view_handler.add(new Request(Request.MERGE, null, evt.getArg()));
      return null;                              // don't pass up
    case Event.IS_MERGE_IN_PROGRESS:
      return merger.isMergeInProgress();
  }
  return up_prot.up(evt);
}
origin: org.jboss.eap/wildfly-client-all

public Object up(Event evt) {
  switch(evt.getType()) {
    case Event.SUSPECT:
      Object retval=up_prot.up(evt);
      // todo: change this to only accept lists in 4.1
      Collection<Address> suspects=evt.arg() instanceof Address? Collections.singletonList(evt.arg()) : evt.arg();
      Request[] suspect_reqs=new Request[suspects.size()];
      int index=0;
      for(Address mbr: suspects)
        suspect_reqs[index++]=new Request(Request.SUSPECT, mbr);
      view_handler.add(suspect_reqs);
      ack_collector.suspect(suspects);
      merge_ack_collector.suspect(suspects);
      return retval;
    case Event.UNSUSPECT:
      impl.unsuspect(evt.getArg());
      return null;                              // discard
    case Event.MERGE:
      view_handler.add(new Request(Request.MERGE, null, evt.getArg()));
      return null;                              // don't pass up
    case Event.IS_MERGE_IN_PROGRESS:
      return merger.isMergeInProgress();
  }
  return up_prot.up(evt);
}
origin: org.jgroups/com.springsource.org.jgroups

impl.unsuspect((Address)evt.getArg());
return null;                              // discard
org.jgroups.protocols.pbcastGmsImplunsuspect

Popular methods of GmsImpl

  • handleJoinResponse
  • handleLeaveResponse
  • handleMembershipChange
  • handleMergeCancelled
  • handleMergeRequest
  • handleMergeResponse
  • handleMergeView
  • handleViewChange
  • init
  • join
  • leave
  • merge
  • leave,
  • merge,
  • start,
  • stop,
  • handleDigestResponse,
  • joinWithStateTransfer,
  • handleExit,
  • handleUpEvent

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Menu (java.awt)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • BoxLayout (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Best IntelliJ 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