Package org.platformlayer.common

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


  }

  @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

    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

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

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

    return retval;
  }
View Full Code Here

    return retval;
  }

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

  @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

  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

  @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

  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

    // 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

Related Classes of org.platformlayer.common.UntypedItem

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.