public class Job extends Object implements Comparable<Job>
Modifier and Type | Class and Description |
---|---|
static class |
Job.Builder<T extends Job.Builder<T>> |
Modifier | Constructor and Description |
---|---|
protected |
Job(long id,
Option command,
ObjectType objectType,
Date createdOn,
Date lastUpdatedOn,
JobState currentState,
int attempts,
String owner,
Set<JobProperties> history,
Map<String,String> details) |
Modifier and Type | Method and Description |
---|---|
static Job.Builder<?> |
builder() |
int |
compareTo(Job o) |
boolean |
equals(Object obj) |
int |
getAttempts() |
Option |
getCommand() |
Date |
getCreatedOn() |
JobState |
getCurrentState() |
Map<String,String> |
getDetails() |
Set<JobProperties> |
getHistory() |
long |
getId() |
Date |
getLastUpdatedOn() |
ObjectType |
getObjectType() |
String |
getOwner() |
int |
hashCode() |
protected com.google.common.base.Objects.ToStringHelper |
string() |
Job.Builder<?> |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"id","command","objecttype","createdon","lastupdatedon","currentstate","attempts","owner","history","detail"}) protected Job(long id, Option command, ObjectType objectType, Date createdOn, @Nullable Date lastUpdatedOn, JobState currentState, int attempts, String owner, Set<JobProperties> history, Map<String,String> details)
public static Job.Builder<?> builder()
public Job.Builder<?> toBuilder()
public long getId()
public Option getCommand()
public ObjectType getObjectType()
public Date getCreatedOn()
public JobState getCurrentState()
public int getAttempts()
public String getOwner()
public Set<JobProperties> getHistory()
protected com.google.common.base.Objects.ToStringHelper string()
public int compareTo(Job o)
compareTo
in interface Comparable<Job>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.