code: public ListenableFuture<Map<JobId, Job>> jobs(@Nullable final String jobQuery,
                                                  @Nullable final String hostNamePattern) {
      final Map<String, String> params = new HashMap<>();
      if (!Strings.isNullOrEmpty(jobQuery)) {
        params.put("q", jobQuery);
      }
      if (!Strings.isNullOrEmpty(hostNamePattern)) {
        params.put("hostPattern", hostNamePattern);
      }
      return get(uri("/jobs", params), jobIdMap);
    }
docs: Lists all jobs in the cluster whose name starts with the given string, and that are deployed to
  hosts that match the given name pattern.
  
  @param jobQuery        job name filter
  @param hostNamePattern hostname filter