Tabnine Logo
GossipData.getPingData
Code IndexAdd Tabnine to your IDE (free)

How to use
getPingData
method
in
org.jgroups.stack.GossipData

Best Java code snippets using org.jgroups.stack.GossipData.getPingData (Showing top 4 results out of 315)

origin: wildfly/wildfly

public void receive(Address sender, DataInput in) throws Exception {
  GossipData data=new GossipData();
  data.readFrom(in);
  switch(data.getType()) {
    case MESSAGE:
    case SUSPECT:
      if(receiver != null)
        receiver.receive(data);
      break;
    case GET_MBRS_RSP:
      notifyResponse(data.getGroup(), data.getPingData());
      break;
  }
}
origin: wildfly/wildfly

@Override
public void receive(Address sender, byte[] buf, int offset, int length) {
  ByteArrayDataInputStream in=new ByteArrayDataInputStream(buf, offset, length);
  GossipData data=new GossipData();
  try {
    data.readFrom(in);
    switch(data.getType()) {
      case MESSAGE:
      case SUSPECT:
        if(receiver != null)
          receiver.receive(data);
        break;
      case GET_MBRS_RSP:
        notifyResponse(data.getGroup(), data.getPingData());
        break;
    }
  }
  catch(Exception ex) {
    log.error(Util.getMessage("FailedReadingData"), ex);
  }
}
origin: org.jboss.eap/wildfly-client-all

public void receive(Address sender, DataInput in) throws Exception {
  GossipData data=new GossipData();
  data.readFrom(in);
  switch(data.getType()) {
    case MESSAGE:
    case SUSPECT:
      if(receiver != null)
        receiver.receive(data);
      break;
    case GET_MBRS_RSP:
      notifyResponse(data.getGroup(), data.getPingData());
      break;
  }
}
origin: org.jboss.eap/wildfly-client-all

@Override
public void receive(Address sender, byte[] buf, int offset, int length) {
  ByteArrayDataInputStream in=new ByteArrayDataInputStream(buf, offset, length);
  GossipData data=new GossipData();
  try {
    data.readFrom(in);
    switch(data.getType()) {
      case MESSAGE:
      case SUSPECT:
        if(receiver != null)
          receiver.receive(data);
        break;
      case GET_MBRS_RSP:
        notifyResponse(data.getGroup(), data.getPingData());
        break;
    }
  }
  catch(Exception ex) {
    log.error(Util.getMessage("FailedReadingData"), ex);
  }
}
org.jgroups.stackGossipDatagetPingData

Popular methods of GossipData

  • <init>
  • getAddress
  • getGroup
  • getType
  • readFrom
  • writeTo
  • addPingData
  • getBuffer
  • getLogicalName
  • getPhysicalAddress
  • getSender
  • serializedSize
  • getSender,
  • serializedSize,
  • setSender

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JCheckBox (javax.swing)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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