@GET
  @Path("/{host}/jobs/{job}")
  @Produces(APPLICATION_JSON)
  @Timed
  @ExceptionMetered
  public Optional<Deployment> jobGet(@PathParam("host") final String host,
                                     @PathParam("job") final JobId jobId) {
    if (!jobId.isFullyQualified()) {
      throw badRequest();
    }
    return Optional.fromNullable(model.getDeployment(host, jobId));
  }
@ GET @ Path ( "/{host}/jobs/{job}" ) @ Produces ( APPLICATION_JSON ) @ Timed @ ExceptionMetered public Optional < Deployment > jobGet ( @ PathParam ( "host" ) final String host , @ PathParam ( "job" ) final JobId jobId ) { if ( ! jobId . isFullyQualified ( ) ) { throw badRequest ( ) ; } return Optional . fromNullable ( model . getDeployment ( host , jobId ) ) ; }
Returns the current {@link Deployment} of {@code job} on {@code host} if it is deployed.

@param host  The host where the job is deployed.
@param jobId The ID of the job.

@return The response.