Package org.platformlayer

Examples of org.platformlayer.PlatformLayerClient.doAction()


    PlatformLayerClient client = getPlatformLayerClient();

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

    JobData ret = client.doAction(key, json, Format.JSON);
    return ret;
  }

  @Override
  public void formatRaw(Object o, PrintWriter writer) {
View Full Code Here


  protected JobData runAction(ItemPath path, Action action) throws PlatformLayerClientException {
    PlatformLayerClient client = getPlatformLayerClient();

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

    JobData ret = client.doAction(key, action);
    return ret;
  }

  @Override
  public void formatRaw(Object o, PrintWriter writer) {
View Full Code Here

        try {
          PlatformLayerClient platformLayer = HttpPlatformLayerClient.build(httpStrategy,
              endpoint.getPlatformlayerBaseUrl(), endpoint.getAuthenticator(), endpoint.getProjectId(),
              endpoint.getTrustKeys());

          platformLayer.doAction(target, task.action);

          // TODO: Wait for task completion??
          // TODO: Link job id??
        } catch (PlatformLayerClientException e) {
          log.warn("Error running action", e);
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.