Package org.platformlayer

Examples of org.platformlayer.PlatformLayerClient.listJobs()


public class AutoCompleteJobId extends PlatformLayerSimpleAutoCompleter {
  @Override
  public List<String> doComplete(CliContext context, String prefix) throws Exception {
    PlatformLayerClient client = getPlatformLayerClient(context);
    List<String> jobs = Lists.newArrayList();
    for (JobData jobData : client.listJobs().getJobs()) {
      jobs.add(jobData.getJobId());
    }
    addSuffix(jobs, " ");
    return jobs;
  }
View Full Code Here


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

    JobDataList jobs;
    if (path == null) {
      jobs = client.listJobs();
    } else {
      PlatformLayerKey resolved = path.resolve(getContext());
      jobs = client.listJobs(resolved);
    }
    // if (path != null) {
View Full Code Here

    JobDataList jobs;
    if (path == null) {
      jobs = client.listJobs();
    } else {
      PlatformLayerKey resolved = path.resolve(getContext());
      jobs = client.listJobs(resolved);
    }
    // if (path != null) {
    // PlatformLayerKey resolved = path.resolve(getContext());
    //
    // JobDataList matches = JobDataList.create();
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.