@Path(value="/jobs") public class JobsResource extends Object
| Constructor and Description |
|---|
JobsResource(MasterModel model,
MasterMetrics metrics,
Set<String> whitelistedCapabilities) |
public JobsResource(MasterModel model, MasterMetrics metrics, Set<String> whitelistedCapabilities)
@GET @Produces(value="application/json") public Map<com.spotify.helios.common.descriptors.JobId,com.spotify.helios.common.descriptors.Job> list(@QueryParam(value="q") @DefaultValue(value="") String query)
Map of job id to job definition for all jobs known. If the query
parameter q is specified it will only return jobs whose job id contains the string.query - The query string.@Path(value="{id}")
@GET
@Produces(value="application/json")
public com.google.common.base.Optional<com.spotify.helios.common.descriptors.Job> get(@InjectParam @PathParam(value="id")
com.spotify.helios.common.descriptors.JobId id)
Job with the given id.id - The job ID.@POST @Produces(value="application/json") public com.spotify.helios.common.protocol.CreateJobResponse post(com.spotify.helios.common.descriptors.Job job, String username)
job.job - The job to create.username - The user creating the job.@Path(value="{id}")
@DELETE
@Produces(value="application/json")
public com.spotify.helios.common.protocol.JobDeleteResponse delete(@PathParam(value="id")
com.spotify.helios.common.descriptors.JobId id,
@QueryParam(value="token") @DefaultValue(value="")
String token)
id - The id of the job to delete.token - The optional authorization token.@Path(value="{id}/status")
@GET
@Produces(value="application/json")
public com.google.common.base.Optional<com.spotify.helios.common.descriptors.JobStatus> statusGet(@PathParam(value="id")
com.spotify.helios.common.descriptors.JobId id)
id - The job ID.@Path(value="/statuses") @POST @Produces(value="application/json") public Map<com.spotify.helios.common.descriptors.JobId,com.spotify.helios.common.descriptors.JobStatus> jobStatuses(Set<com.spotify.helios.common.descriptors.JobId> ids)
Copyright © 2017. All rights reserved.