Package aleph

Examples of aleph.Host.ping()


      }
      for (int i = 0; i < count; i++) {
  Host host = new Host(hosts[i]);
  System.out.print("\t");
  System.out.print(host);
  if (host.ping())
    System.out.println(" OK");
  else
    System.out.println(" not responding");
      }
      System.exit(0);
View Full Code Here


    Set liveHosts = new HashSet();
    try {
      if (host == null) {
        for (Iterator iter = Host.allHosts(); iter.hasNext(); ) {
          Host nextHost = (Host) iter.next();
          if (nextHost.ping())
            liveHosts.add(nextHost);
        }
      } else {
        Host nextHost = new Host(host);
        if (nextHost.ping())
View Full Code Here

          if (nextHost.ping())
            liveHosts.add(nextHost);
        }
      } else {
        Host nextHost = new Host(host);
        if (nextHost.ping())
          liveHosts.add(nextHost);
      }
    } catch (UnknownHostException e) {
      System.err.println(e);
      System.exit(-1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.