@Test public void testLongestRunning() { Collection<JobInfo> longestRunning = mSummary.getLongestRunning(); assertEquals("Unexpected length of longest running", 2, longestRunning.size()); JobInfo[] longestRunningArray = new JobInfo[2]; longestRunning.toArray(longestRunningArray); assertEquals(7, longestRunningArray[0].getId()); assertEquals(5, longestRunningArray[1].getId()); }
public List<JobInfo> getLongestRunning() { return Collections.unmodifiableList(mLongestRunning); }
JobServiceSummary { public List<JobInfo> getLongestRunning() { return Collections.unmodifiableList(mLongestRunning); } }
JobServiceSummary { public List<JobInfo> getLongestRunning() { return Collections.unmodifiableList(mLongestRunning); } JobServiceSummary(List<JobInfo> jobInfos);  JobServiceSummary(alluxio.grpc.JobServiceSummary jobServiceSummary); }
JobServiceSummary { public List<JobInfo> getLongestRunning() { return Collections.unmodifiableList(mLongestRunning); } JobServiceSummary(List<JobInfo> jobInfos);  JobServiceSummary(alluxio.grpc.JobServiceSummary jobServiceSummary); Collection<StatusSummary> getSummaryPerStatus(); List<JobInfo> getRecentActivities(); List<JobInfo> getRecentFailures(); List<JobInfo> getLongestRunning(); alluxio.grpc.JobServiceSummary toProto(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
JobServiceSummary { public List<JobInfo> getLongestRunning() { return Collections.unmodifiableList(mLongestRunning); } JobServiceSummary(List<JobInfo> jobInfos);  JobServiceSummary(alluxio.grpc.JobServiceSummary jobServiceSummary); Collection<StatusSummary> getSummaryPerStatus(); List<JobInfo> getRecentActivities(); List<JobInfo> getRecentFailures(); List<JobInfo> getLongestRunning(); alluxio.grpc.JobServiceSummary toProto(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final int RECENT_LENGTH; }