public class JobsApiRequestImpl extends ApiRequestImpl implements JobsApiRequest
asyncAfter, builder, COMMA_AFTER_BRACKET_PATTERN, format, pagination, paginationParameters, uriInfo
REQUEST_MAPPER_NAMESPACE
ASYNCHRONOUS_ASYNC_AFTER_VALUE, SYNCHRONOUS_ASYNC_AFTER_VALUE
Constructor and Description |
---|
JobsApiRequestImpl(String format,
String asyncAfter,
String perPage,
String page,
String filters,
javax.ws.rs.core.UriInfo uriInfo,
JobPayloadBuilder jobPayloadBuilder,
ApiJobStore apiJobStore)
Parses the API request URL and generates the Api Request object.
|
Modifier and Type | Method and Description |
---|---|
LinkedHashSet<JobRowFilter> |
buildJobStoreFilter(String filterQuery)
Given a filter String, generates a Set of ApiJobStoreFilters.
|
rx.Observable<Map<String,String>> |
getJobViewObservable(String ticket)
Returns an Observable over the Map representing the job to be returned to the user.
|
rx.Observable<Map<String,String>> |
getJobViews()
Return an Observable containing a stream of job views for jobs in the ApiJobStore.
|
addPageLink, addPageLink, generateAcceptFormat, generateAsyncAfter, generateDimensions, generateFilters, generateGranularity, generateGranularity, generateIntervals, generateIntervals, generateLogicalMetrics, generateMetricName, generatePaginationParameters, generateTable, generateTimeZone, getAllPagesPaginationFactory, getAsDateTime, getAsyncAfter, getBuilder, getDefaultPagination, getFormat, getPage, getPage, getPagination, getPaginationParameters, getUriInfo, validateMetrics, validateRequestDimensions, validateTimeAlignment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateDateTimeFormatter, getAsyncAfter, getBuilder, getDefaultPagination, getFormat, getPage, getPage, getPagination, getPaginationParameters, getUriInfo
public JobsApiRequestImpl(String format, String asyncAfter, @NotNull String perPage, @NotNull String page, String filters, javax.ws.rs.core.UriInfo uriInfo, JobPayloadBuilder jobPayloadBuilder, ApiJobStore apiJobStore)
format
- response data format JSON or CSV. Default is JSON.asyncAfter
- How long the user is willing to wait for a synchronous request in millisecondsperPage
- number of rows to display per page of results. If present in the original request,
must be a positive integer. If not present, must be the empty string.page
- desired page of results. If present in the original request, must be a positive
integer. If not present, must be the empty string.filters
- URL filter query String in the format:
((field name and operation):((multiple values bounded by [])or(single value))))(followed by , or end of string)
uriInfo
- The URI of the request object.jobPayloadBuilder
- The JobRowMapper to be used to map JobRow to the Job returned by the apiapiJobStore
- The ApiJobStore containing Job metadatapublic rx.Observable<Map<String,String>> getJobViewObservable(String ticket)
ticket
- The ticket that uniquely identifies the jobpublic rx.Observable<Map<String,String>> getJobViews()
public LinkedHashSet<JobRowFilter> buildJobStoreFilter(@NotNull String filterQuery)
filterQuery
- Expects a URL filterQuery String that may contain multiple filters separated by
comma. The format of a filter String is :
(JobField name)-(operation)[(value or comma separated values)]?Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.