public interface JobPayloadBuilder
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
buildPayload(JobRow jobRow,
javax.ws.rs.core.UriInfo uriInfo)
Given a Map containing job metadata, return a map representing job payload to be sent to the user.
|
static javax.ws.rs.core.UriBuilder |
getResultsBaseUrl(javax.ws.rs.core.UriInfo uriInfo)
Get the UriBuilder for the /jobs/ticket/results endpoint.
|
static String |
getResultsUrl(String ticket,
javax.ws.rs.core.UriInfo uriInfo)
Get the job results url.
|
static String |
getSelfUrl(String ticket,
javax.ws.rs.core.UriInfo uriInfo)
Get the url for the given ticket.
|
static String |
getSyncResultsUrl(String ticket,
javax.ws.rs.core.UriInfo uriInfo)
Get the url for obtaining the job results synchronously.
|
Map<String,String> buildPayload(JobRow jobRow, javax.ws.rs.core.UriInfo uriInfo)
jobRow - The JobRow containing job metadatauriInfo - UriInfo of the Jobs endpointstatic String getResultsUrl(String ticket, javax.ws.rs.core.UriInfo uriInfo)
"http://localhost:9998/jobs/ticket1/results"
ticket - The ticket that can uniquely identify a JoburiInfo - UriInfo of the requeststatic String getSyncResultsUrl(String ticket, javax.ws.rs.core.UriInfo uriInfo)
"http://localhost:9998/jobs/ticket1/results?asyncAfter=never"
ticket - The ticket that can uniquely identify a JoburiInfo - UriInfo of the requeststatic javax.ws.rs.core.UriBuilder getResultsBaseUrl(javax.ws.rs.core.UriInfo uriInfo)
uriInfo - UriInfo of the requestCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.