Examples of UntypedItem


Examples of org.platformlayer.common.UntypedItem

    MappedPlatformLayerKey mapped = mapToChildForPut(key);

    UntypedItemXml untypedItem = UntypedItemXml.build(data);
    untypedItem.setPlatformLayerKey(mapped.key);

    UntypedItem item = mapped.child.client.putItem(mapped.key, untypedItem.serialize(), format);

    return mapped.child.setHost(item);
  }
View Full Code Here

Examples of org.platformlayer.common.UntypedItem

  }

  @Override
  public UntypedItem getItemUntyped(PlatformLayerKey key, Format format) throws PlatformLayerClientException {
    MappedPlatformLayerKey mapped = mapToChild(key);
    UntypedItem item = mapped.child.client.getItemUntyped(key);
    return mapped.child.setHost(item);
  }
View Full Code Here

Examples of org.platformlayer.common.UntypedItem

    MappedPlatformLayerKey mapped = mapToChildForPut(key);

    UntypedItemXml post = UntypedItemXml.build(data);
    post.setPlatformLayerKey(mapped.key);

    UntypedItem item = mapped.child.client.putItemByTag(mapped.key, uniqueTag, post.serialize(), format);
    return mapped.child.setHost(item);
  }
View Full Code Here

Examples of org.platformlayer.common.UntypedItem

      data = wrapped.toString();
    } else {
      data = jsonObject.toString();
    }

    UntypedItem retval = client.putItem(key, data, Format.JSON);

    return retval;
  }
View Full Code Here

Examples of org.platformlayer.common.UntypedItem

    return retval;
  }

  @Override
  public void formatRaw(Object o, PrintWriter writer) {
    UntypedItem item = (UntypedItem) o;
    writer.println(item.getKey());
  }
View Full Code Here

Examples of org.platformlayer.common.UntypedItem

  @Override
  public Object runCommand() throws PlatformLayerClientException {
    PlatformLayerClient client = getPlatformLayerClient();

    PlatformLayerKey key = path.resolve(getContext());
    UntypedItem ret = client.getItemUntyped(key, Format.XML);

    TagChanges tagChanges = new TagChanges();
    for (Tag tag : ret.getTags()) {
      if (!tagKey.equals(tag.getKey())) {
        continue;
      }

      if (tagValue != null && !tagValue.equals(tag.getValue())) {
View Full Code Here

Examples of org.platformlayer.common.UntypedItem

  public Object runCommand() throws PlatformLayerClientException {
    PlatformLayerClient client = getPlatformLayerClient();

    PlatformLayerKey key = path.resolve(getContext());

    UntypedItem untypedItem = client.getItemUntyped(key, getFormat());
    List<EndpointInfo> endpointList = EndpointInfo.getEndpoints(untypedItem.getTags());

    Set<EndpointInfo> endpoints = Sets.newHashSet(endpointList);

    EndpointInfo bestEndpoint = null;
    for (EndpointInfo candidate : endpoints) {
View Full Code Here

Examples of org.platformlayer.common.UntypedItem

  @Override
  public Object runCommand() throws PlatformLayerClientException {
    PlatformLayerClient client = getPlatformLayerClient();

    PlatformLayerKey key = path.resolve(getContext());
    UntypedItem ret = client.getItemUntyped(key, getFormat());

    return ret.getTags();
  }
View Full Code Here

Examples of org.platformlayer.common.UntypedItem

  public Object runCommand() throws PlatformLayerClientException {
    PlatformLayerClient client = getPlatformLayerClient();

    PlatformLayerKey key = path.resolve(getContext());

    UntypedItem untypedItem = client.getItemUntyped(key, Format.XML);

    InetAddress sshAddress = findSshAddress(client, untypedItem);

    ClientAction action = null;
    if (sshAddress != null) {
View Full Code Here

Examples of org.platformlayer.common.UntypedItem

    // Should this be a tag?
    PlatformLayerClient client = getPlatformLayerClient();

    PlatformLayerKey key = path.resolve(getContext());

    UntypedItem untypedItem = client.getItemUntyped(key, Format.XML);
    List<EndpointInfo> endpoints = EndpointInfo.getEndpoints(untypedItem.getTags());

    return endpoints;
  }
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.