@GET
  @Produces(MediaType.APPLICATION_JSON)
  public Response getInstalledJobs() {
    try {
      return Response.ok(jobProxy.getAllJobStatuses()).build();
    } catch (Exception e) {
      log.error("Error in getInstalledJobs.", e);
      return Responses.errorResponse(e.getMessage());
    }
  }
Gets the {@link Job} for all the jobs installed on this host.

@return a {@link javax.ws.rs.core.Response.Status#OK} {@link javax.ws.rs.core.Response} containing a list of
{@link Job} for all the installed Samza jobs installed on this host.
samza-rest/src/main/java/org/apache/samza/rest/resources/JobsResource.java