Package org.platformlayer.ops.networks

Examples of org.platformlayer.ops.networks.NetworkPoint


      // TODO: Do keys need to be sequential
      ClusterServer model = new ClusterServer();
      model.key = server.clusterId;

      // TODO: What do we do about machines that don't yet have an ip?
      NetworkPoint targetNetworkPoint = NetworkPoint.forPublicInternet();
      Machine sourceMachine = instances.getMachine(server);
      String address = sourceMachine.getNetworkPoint().getBestAddress(targetNetworkPoint);

      model.ip = address;
View Full Code Here


    this.networkPoint = networkPoint;
  }

  @Override
  public int estimateDistance(CasLocation destLocation) {
    NetworkPoint other = ((OpsCasLocation) destLocation).networkPoint;
    return NetworkPoint.estimateDistance(this.networkPoint, other);
  }
View Full Code Here

        matches.add(endpoint.getAddress());
      }
    }

    {
      NetworkPoint target = networks.findNetworkPoint(item);
      List<InetAddress> addresses = target.findAddresses(src);
      matches.addAll(addresses);
    }

    return matches;
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.ops.networks.NetworkPoint

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.