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

How to use
createInitialHosts
method
in
org.jgroups.protocols.TCPPING

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

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);
}
org.jgroups.protocolsTCPPINGcreateInitialHosts

Javadoc

Input is "daddy[8880],sindhu[8880],camille[5555]. Return List of IpAddresses

Popular methods of TCPPING

  • down
  • marshal
  • sendDiscoveryRequest
  • setInitialHosts

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Table (org.hibernate.mapping)
    A relational table
  • 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