@NotThreadSafe public final class JobServiceSummary extends 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(List<JobInfo> jobInfos)
Constructs a new instance of
JobServiceSummary from a
collection of JobInfo it possesses. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<JobInfo> |
getLongestRunning() |
List<JobInfo> |
getRecentActivities() |
List<JobInfo> |
getRecentFailures() |
Collection<StatusSummary> |
getSummaryPerStatus()
Returns an unmodifiable collection of summary per job status.
|
int |
hashCode() |
JobServiceSummary |
toProto() |
String |
toString() |
public static final int RECENT_LENGTH
public JobServiceSummary(List<JobInfo> jobInfos)
JobServiceSummary
from a
collection of JobInfo
it possesses.jobInfos
- Collection of JobInfo
public JobServiceSummary(JobServiceSummary jobServiceSummary) throws IOException
JobServiceSummary
from a proto object.jobServiceSummary
- the proto objectIOException
public Collection<StatusSummary> getSummaryPerStatus()
public List<JobInfo> getRecentActivities()
JobInfo
where the status was most recently updatedpublic List<JobInfo> getRecentFailures()
JobInfo
that have most recently failedpublic JobServiceSummary toProto() throws IOException
IOException
- if serialization failsCopyright © 2023. All Rights Reserved.