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);
}
Aggregations