@Test public void testGetJobByJobID() throws Exception { flowDataGen.loadFlow("c1@local", "buser", "getJobByJobID", 1234, "a", 3, 10, idService, historyTable); JobHistoryService service = null; service = new JobHistoryService(UTIL.getConfiguration(), hbaseConnection); Flow flow = service.getLatestFlow("c1@local", "buser", "getJobByJobID"); assertNotNull(flow); assertEquals(3, flow.getJobs().size()); for (JobDetails j : flow.getJobs()) { JobKey key = j.getJobKey(); JobDetails j2 = service.getJobByJobID(key.getQualifiedJobId(), false); assertJob(j, j2); } }
public JobDetails getJobByJobID(String cluster, String jobId) throws IOException { return getJobByJobID(cluster, jobId, false); }
JobHistoryService { public JobDetails getJobByJobID(String cluster, String jobId) throws IOException { return getJobByJobID(cluster, jobId, false); } }
JobHistoryService { public JobDetails getJobByJobID(String cluster, String jobId) throws IOException { return getJobByJobID(cluster, jobId, false); } JobHistoryService(Configuration hbaseConf, Connection hbaseConnection); }
JobHistoryService { public JobDetails getJobByJobID(String cluster, String jobId) throws IOException { return getJobByJobID(cluster, jobId, false); } JobHistoryService(Configuration hbaseConf, Connection hbaseConnection); Flow getLatestFlow(String cluster, String user, String appId); Flow getLatestFlow(String cluster, String user, String appId,
      boolean populateTasks); List<Flow> getFlowSeries(String cluster, String user, String appId,
      int limit); Flow getFlow(String cluster, String user, String appId, long runId,
      boolean populateTasks); Flow getFlowByJobID(String cluster, String jobId,
      boolean populateTasks); List<Flow> getFlowSeries(String cluster, String user, String appId,
      String version, boolean populateTasks, int limit); List<Flow> getFlowSeries(String cluster, String user, String appId,
      String version, boolean populateTasks, long startTime, long endTime,
      int limit); List<Flow> getFlowTimeSeriesStats(String cluster, String user,
      String appId, String version, long startTime, long endTime, int limit,
      byte[] startRow); JobDetails getJobByJobID(String cluster, String jobId); JobDetails getJobByJobID(String cluster, String jobId,
      boolean populateTasks); JobDetails getJobByJobID(QualifiedJobId jobId, boolean populateTasks); static Configuration parseConfiguration(
      Map<byte[], byte[]> keyValues); static CounterMap parseCounters(byte[] prefix,
      Map<byte[], byte[]> keyValues); static List<Put> getHbasePuts(JobDesc jobDesc, Configuration jobConf); int removeJob(JobKey key); }
JobHistoryService { public JobDetails getJobByJobID(String cluster, String jobId) throws IOException { return getJobByJobID(cluster, jobId, false); } JobHistoryService(Configuration hbaseConf, Connection hbaseConnection); Flow getLatestFlow(String cluster, String user, String appId); Flow getLatestFlow(String cluster, String user, String appId,
      boolean populateTasks); List<Flow> getFlowSeries(String cluster, String user, String appId,
      int limit); Flow getFlow(String cluster, String user, String appId, long runId,
      boolean populateTasks); Flow getFlowByJobID(String cluster, String jobId,
      boolean populateTasks); List<Flow> getFlowSeries(String cluster, String user, String appId,
      String version, boolean populateTasks, int limit); List<Flow> getFlowSeries(String cluster, String user, String appId,
      String version, boolean populateTasks, long startTime, long endTime,
      int limit); List<Flow> getFlowTimeSeriesStats(String cluster, String user,
      String appId, String version, long startTime, long endTime, int limit,
      byte[] startRow); JobDetails getJobByJobID(String cluster, String jobId); JobDetails getJobByJobID(String cluster, String jobId,
      boolean populateTasks); JobDetails getJobByJobID(QualifiedJobId jobId, boolean populateTasks); static Configuration parseConfiguration(
      Map<byte[], byte[]> keyValues); static CounterMap parseCounters(byte[] prefix,
      Map<byte[], byte[]> keyValues); static List<Put> getHbasePuts(JobDesc jobDesc, Configuration jobConf); int removeJob(JobKey key);  }