Tabnine Logo
TCPPING
Code IndexAdd Tabnine to your IDE (free)

How to use
TCPPING
in
org.jgroups.protocols

Best Java code snippets using org.jgroups.protocols.TCPPING (Showing top 5 results out of 315)

origin: wildfly/wildfly

physical_addr=(PhysicalAddress)down(new Event(Event.GET_PHYSICAL_ADDRESS, local_addr));
 .putHeader(this.id,hdr);
if(data != null)
  msg.setBuffer(marshal(data));
  timer.execute(() -> sendDiscoveryRequest(msg), sends_can_block);
else
  sendDiscoveryRequest(msg);
origin: wildfly/wildfly

public TCPPING initialHosts(Collection<InetSocketAddress> hosts) {setInitialHosts(hosts); return this;}
origin: org.jgroups/com.springsource.org.jgroups

public boolean setProperties(Properties props) {
  String str;
  this.props.putAll(props); // redundant
  str=props.getProperty("port_range");           // if member cannot be contacted on base port,
  if(str != null) {                              // how many times can we increment the port
    port_range=Integer.parseInt(str);
    if (port_range < 1) {
      port_range = 1;
    }
    props.remove("port_range");
  }
  str=Util.getProperty(new String[]{Global.TCPPING_INITIAL_HOSTS}, props, "initial_hosts", false, null);
  if(str != null) {
    props.remove("initial_hosts");
    try {
      initial_hosts=createInitialHosts(str);
    }
    catch(UnknownHostException e) {
      log.error("failed creating initial list of hosts", e);
      return false;
    }
  }
  return super.setProperties(props);
}
origin: org.jboss.eap/wildfly-client-all

physical_addr=(PhysicalAddress)down(new Event(Event.GET_PHYSICAL_ADDRESS, local_addr));
 .putHeader(this.id,hdr);
if(data != null)
  msg.setBuffer(marshal(data));
  timer.execute(() -> sendDiscoveryRequest(msg), sends_can_block);
else
  sendDiscoveryRequest(msg);
origin: org.jboss.eap/wildfly-client-all

public TCPPING initialHosts(Collection<InetSocketAddress> hosts) {setInitialHosts(hosts); return this;}
org.jgroups.protocolsTCPPING

Javadoc

The TCPPING protocol defines a static cluster membership. The cluster members are retrieved by directly contacting the members listed in initial_hosts, sending point-to-point discovery requests.

The TCPPING protocol defines a static configuration, which requires that you to know in advance where to find all of the members of your cluster.

Most used methods

  • down
  • marshal
  • sendDiscoveryRequest
  • setInitialHosts
  • createInitialHosts
    Input is "daddy[8880],sindhu[8880],camille[5555]. Return List of IpAddresses

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JFrame (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Top 15 Vim 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