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

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

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

origin: wildfly/wildfly

public void readFrom(DataInput in) throws Exception {
  readFrom(in, true);
}
origin: wildfly/wildfly

protected GossipData readRequest(DataInput in) {
  GossipData data=new GossipData();
  try {
    data.readFrom(in);
    return data;
  }
  catch(Exception ex) {
    log.error(Util.getMessage("FailedReadingRequest"), ex);
    return null;
  }
}
origin: wildfly/wildfly

protected GossipData readRequest(DataInput in, GossipType type) {
  GossipData data=new GossipData(type);
  try {
    data.readFrom(in, false);
    return data;
  }
  catch(Exception ex) {
    log.error(Util.getMessage("FailedReadingRequest"), ex);
    return null;
  }
}
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: wildfly/wildfly

ByteArrayDataInputStream input=new ByteArrayDataInputStream(buf, offset, length);
GossipData data=new GossipData();
data.readFrom(input);
dump(data);
origin: org.jboss.eap/wildfly-client-all

public void readFrom(DataInput in) throws Exception {
  readFrom(in, true);
}
origin: org.jboss.eap/wildfly-client-all

protected GossipData readRequest(DataInput in) {
  GossipData data=new GossipData();
  try {
    data.readFrom(in);
    return data;
  }
  catch(Exception ex) {
    log.error(Util.getMessage("FailedReadingRequest"), ex);
    return null;
  }
}
origin: org.jboss.eap/wildfly-client-all

protected GossipData readRequest(DataInput in, GossipType type) {
  GossipData data=new GossipData(type);
  try {
    data.readFrom(in, false);
    return data;
  }
  catch(Exception ex) {
    log.error(Util.getMessage("FailedReadingRequest"), ex);
    return null;
  }
}
origin: org.jgroups/com.springsource.org.jgroups

gossip_rsp.readFrom(in);
if(gossip_rsp.mbrs != null) { // merge with ret
  for(Iterator it=gossip_rsp.mbrs.iterator(); it.hasNext();) {
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.jgroups/com.springsource.org.jgroups

req.readFrom(input);
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);
  }
}
origin: org.jboss.eap/wildfly-client-all

ByteArrayDataInputStream input=new ByteArrayDataInputStream(buf, offset, length);
GossipData data=new GossipData();
data.readFrom(input);
dump(data);
org.jgroups.stackGossipDatareadFrom

Popular methods of GossipData

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

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top plugins for WebStorm
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