Package org.platformlayer.ops.uses

Examples of org.platformlayer.ops.uses.SimpleLinkConsumer


    List<Link> modelLinks = getLinks();
    if (modelLinks != null && !modelLinks.isEmpty()) {
      NetworkPoint networkPoint = NetworkPoint.forTargetInContext();
      InetAddressChooser inetAddressChooser = NearestAddressChooser.build(networkPoint);
      SimpleLinkConsumer consumer = new SimpleLinkConsumer(getModel().getKey(), inetAddressChooser);

      properties.putAll(links.buildLinkTargetProperties(consumer, modelLinks));
    }

    return properties;
View Full Code Here


    Map<String, String> config = Maps.newHashMap();

    if (context.links != null) {
      NetworkPoint networkPoint = NetworkPoint.forTargetInContext();
      InetAddressChooser inetAddressChooser = NearestAddressChooser.build(networkPoint);
      SimpleLinkConsumer consumer = new SimpleLinkConsumer(consumerKey, inetAddressChooser);

      config.putAll(consumeHelper.buildLinkTargetProperties(consumer, context.links.getLinks()));
    }

    return config;
View Full Code Here

TOP

Related Classes of org.platformlayer.ops.uses.SimpleLinkConsumer

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.