@Test public void toProto() throws Exception { final JobServiceSummary summary = new JobServiceSummary(mSummary.toProto()); assertEquals(mSummary, summary); }
public alluxio.grpc.JobServiceSummary toProto() throws IOException { alluxio.grpc.JobServiceSummary.Builder jobServiceBuilder = alluxio.grpc.JobServiceSummary.newBuilder(); for (StatusSummary statusSummary : mSummaryPerStatus) { jobServiceBuilder.addSummaryPerStatus(statusSummary.toProto()); } for (JobInfo jobInfo : mRecentActivities) { jobServiceBuilder.addRecentActivities(jobInfo.toProto()); } for (JobInfo jobInfo : mRecentFailures) { jobServiceBuilder.addRecentFailures(jobInfo.toProto()); } for (JobInfo jobInfo : mLongestRunning) { jobServiceBuilder.addLongestRunning(jobInfo.toProto()); } return jobServiceBuilder.build(); }
JobServiceSummary { public alluxio.grpc.JobServiceSummary toProto() throws IOException { alluxio.grpc.JobServiceSummary.Builder jobServiceBuilder = alluxio.grpc.JobServiceSummary.newBuilder(); for (StatusSummary statusSummary : mSummaryPerStatus) { jobServiceBuilder.addSummaryPerStatus(statusSummary.toProto()); } for (JobInfo jobInfo : mRecentActivities) { jobServiceBuilder.addRecentActivities(jobInfo.toProto()); } for (JobInfo jobInfo : mRecentFailures) { jobServiceBuilder.addRecentFailures(jobInfo.toProto()); } for (JobInfo jobInfo : mLongestRunning) { jobServiceBuilder.addLongestRunning(jobInfo.toProto()); } return jobServiceBuilder.build(); } }
JobServiceSummary { public alluxio.grpc.JobServiceSummary toProto() throws IOException { alluxio.grpc.JobServiceSummary.Builder jobServiceBuilder = alluxio.grpc.JobServiceSummary.newBuilder(); for (StatusSummary statusSummary : mSummaryPerStatus) { jobServiceBuilder.addSummaryPerStatus(statusSummary.toProto()); } for (JobInfo jobInfo : mRecentActivities) { jobServiceBuilder.addRecentActivities(jobInfo.toProto()); } for (JobInfo jobInfo : mRecentFailures) { jobServiceBuilder.addRecentFailures(jobInfo.toProto()); } for (JobInfo jobInfo : mLongestRunning) { jobServiceBuilder.addLongestRunning(jobInfo.toProto()); } return jobServiceBuilder.build(); } JobServiceSummary(List<JobInfo> jobInfos);  JobServiceSummary(alluxio.grpc.JobServiceSummary jobServiceSummary); }
JobServiceSummary { public alluxio.grpc.JobServiceSummary toProto() throws IOException { alluxio.grpc.JobServiceSummary.Builder jobServiceBuilder = alluxio.grpc.JobServiceSummary.newBuilder(); for (StatusSummary statusSummary : mSummaryPerStatus) { jobServiceBuilder.addSummaryPerStatus(statusSummary.toProto()); } for (JobInfo jobInfo : mRecentActivities) { jobServiceBuilder.addRecentActivities(jobInfo.toProto()); } for (JobInfo jobInfo : mRecentFailures) { jobServiceBuilder.addRecentFailures(jobInfo.toProto()); } for (JobInfo jobInfo : mLongestRunning) { jobServiceBuilder.addLongestRunning(jobInfo.toProto()); } return jobServiceBuilder.build(); } 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 alluxio.grpc.JobServiceSummary toProto() throws IOException { alluxio.grpc.JobServiceSummary.Builder jobServiceBuilder = alluxio.grpc.JobServiceSummary.newBuilder(); for (StatusSummary statusSummary : mSummaryPerStatus) { jobServiceBuilder.addSummaryPerStatus(statusSummary.toProto()); } for (JobInfo jobInfo : mRecentActivities) { jobServiceBuilder.addRecentActivities(jobInfo.toProto()); } for (JobInfo jobInfo : mRecentFailures) { jobServiceBuilder.addRecentFailures(jobInfo.toProto()); } for (JobInfo jobInfo : mLongestRunning) { jobServiceBuilder.addLongestRunning(jobInfo.toProto()); } return jobServiceBuilder.build(); } 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; }