Package com.dianping.cat.service

Examples of com.dianping.cat.service.IpService$IpInfo


    System.err.println(System.currentTimeMillis() - 60 * 1000 * 2);
  }

  @Test
  public void test() throws Exception {
    IpService service = (IpService) lookup(IpService.class);

    for (int i = 0; i < 10000; i++) {
      String ip = i % 255 + "." + i % 255 + "." + i % 255 + "." + i % 255;
      IpInfo info = service.findIpInfoByString(ip);

      if (info != null) {
        System.out.print(ip + " " + info.getChannel());
        System.out.print(" " + info.getCity());
        System.out.println(" " + info.getProvince());
View Full Code Here


    System.err.println(System.currentTimeMillis() - 60 * 1000 * 2);
  }

  @Test
  public void test() throws Exception {
    IpService service = (IpService) lookup(IpService.class);

    for (int i = 0; i < 10000; i++) {
      String ip = i % 255 + "." + i % 255 + "." + i % 255 + "." + i % 255;
      IpInfo info = service.findIpInfoByString(ip);

      if (info != null) {
        System.out.print(ip + " " + info.getChannel());
        System.out.print(" " + info.getCity());
        System.out.println(" " + info.getProvince());
View Full Code Here

TOP

Related Classes of com.dianping.cat.service.IpService$IpInfo

Copyright © 2018 www.massapicom. 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.