Class JobServiceSummary


  • @NotThreadSafe
    public final class JobServiceSummary
    extends java.lang.Object
    Job service summary.
    • Constructor Detail

      • JobServiceSummary

        public JobServiceSummary​(java.util.List<JobInfo> jobInfos)
        Constructs a new instance of JobServiceSummary from a collection of JobInfo it possesses.
        Parameters:
        jobInfos - Collection of JobInfo
      • JobServiceSummary

        public JobServiceSummary​(alluxio.grpc.JobServiceSummary jobServiceSummary)
                          throws java.io.IOException
        Constructs a new instance of JobServiceSummary from a proto object.
        Parameters:
        jobServiceSummary - the proto object
        Throws:
        java.io.IOException
    • Method Detail

      • getSummaryPerStatus

        public java.util.Collection<StatusSummary> getSummaryPerStatus()
        Returns an unmodifiable collection of summary per job status.
        Returns:
        collection of summary per job status
      • getRecentActivities

        public java.util.List<JobInfo> getRecentActivities()
        Returns:
        collection of JobInfo where the status was most recently updated
      • getRecentFailures

        public java.util.List<JobInfo> getRecentFailures()
        Returns:
        collection of JobInfo that have most recently failed
      • getLongestRunning

        public java.util.List<JobInfo> getLongestRunning()
        Returns:
        collection of JobInfo
      • toProto

        public alluxio.grpc.JobServiceSummary toProto()
                                               throws java.io.IOException
        Returns:
        proto representation of the job service summary
        Throws:
        java.io.IOException - if serialization fails
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object