Example usage for com.amazonaws.services.glacier.model ListJobsResult getJobList

List of usage examples for com.amazonaws.services.glacier.model ListJobsResult getJobList

Introduction

In this page you can find the example usage for com.amazonaws.services.glacier.model ListJobsResult getJobList.

Prototype


public java.util.List<GlacierJobDescription> getJobList() 

Source Link

Document

A list of job objects.

Usage

From source file:com.vrane.metaGlacier.Vault.java

/**
 * Gets a list of jobs attached to this vault.
 *
 * @return a list of <code>GlacierJobDescription</code>
 *///from   w w w.  ja v a 2  s. c om
public List<GlacierJobDescription> listJobs() {
    final ListJobsRequest ljr = new ListJobsRequest();
    final ListJobsResult ljres = GlacierFrame.getClient(region)
            .listJobs(ljr.withVaultName(name).withCompleted("true"));

    return ljres.getJobList();
}