Search in sources :

Example 1 with AzureDataLakeHttpObservable

use of com.microsoft.azure.hdinsight.sdk.common.AzureDataLakeHttpObservable in project azure-tools-for-java by Microsoft.

the class AzureSparkServerlessAccount method getJobs.

// TODO: handle job list pagination
public Observable<JobInfoListResult> getJobs() {
    URI url = getUri().resolve(REST_SEGMENT_JOB_LIST);
    List<NameValuePair> parameters = Collections.singletonList(ODataParam.filter(String.format("state eq '%s'", JobState.RUNNING.toString())));
    return new AzureDataLakeHttpObservable(subscription.getTenantId(), VERSION).withUuidUserAgent().get(url.toString(), parameters, null, JobInfoListResult.class);
}
Also used : NameValuePair(org.apache.http.NameValuePair) AzureDataLakeHttpObservable(com.microsoft.azure.hdinsight.sdk.common.AzureDataLakeHttpObservable) URI(java.net.URI)

Aggregations

AzureDataLakeHttpObservable (com.microsoft.azure.hdinsight.sdk.common.AzureDataLakeHttpObservable)1 URI (java.net.URI)1 NameValuePair (org.apache.http.NameValuePair)1