@NotThreadSafe
public final class JobServiceSummary
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
RECENT_LENGTH |
| Constructor and Description |
|---|
JobServiceSummary(JobServiceSummary jobServiceSummary)
Constructs a new instance of
JobServiceSummary from a proto object. |
JobServiceSummary(java.util.List<JobInfo> jobInfos)
Constructs a new instance of
JobServiceSummary from a
collection of JobInfo it possesses. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.List<JobInfo> |
getLongestRunning() |
java.util.List<JobInfo> |
getRecentActivities() |
java.util.List<JobInfo> |
getRecentFailures() |
java.util.Collection<StatusSummary> |
getSummaryPerStatus()
Returns an unmodifiable collection of summary per job status.
|
int |
hashCode() |
JobServiceSummary |
toProto() |
java.lang.String |
toString() |
public static final int RECENT_LENGTH
public JobServiceSummary(java.util.List<JobInfo> jobInfos)
JobServiceSummary from a
collection of JobInfo it possesses.jobInfos - Collection of JobInfopublic JobServiceSummary(JobServiceSummary jobServiceSummary) throws java.io.IOException
JobServiceSummary from a proto object.jobServiceSummary - the proto objectjava.io.IOExceptionpublic java.util.Collection<StatusSummary> getSummaryPerStatus()
public java.util.List<JobInfo> getRecentActivities()
JobInfo where the status was most recently updatedpublic java.util.List<JobInfo> getRecentFailures()
JobInfo that have most recently failedpublic JobServiceSummary toProto() throws java.io.IOException
java.io.IOException - if serialization failspublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2022. All Rights Reserved.