Modifier and Type | Field and Description |
---|---|
protected int |
attempts |
protected Option |
command |
protected Date |
createdOn |
protected JobState |
currentState |
protected Map<String,String> |
details |
protected Set<JobProperties> |
history |
protected long |
id |
protected Date |
lastUpdatedOn |
protected ObjectType |
objectType |
protected String |
owner |
Constructor and Description |
---|
Job.Builder() |
Modifier and Type | Method and Description |
---|---|
T |
attempts(int attempts) |
Job |
build() |
T |
command(Option command) |
T |
createdOn(Date createdOn) |
T |
currentState(JobState currentState) |
T |
details(Map<String,String> details) |
T |
fromJob(Job in) |
T |
history(JobProperties... in) |
T |
history(Set<JobProperties> history) |
T |
id(long id) |
T |
lastUpdatedOn(Date lastUpdatedOn) |
T |
objectType(ObjectType objectType) |
T |
owner(String owner) |
protected abstract T |
self() |
protected long id
protected Option command
protected ObjectType objectType
protected Date createdOn
protected Date lastUpdatedOn
protected JobState currentState
protected int attempts
protected String owner
protected Set<JobProperties> history
protected abstract T self()
public T id(long id)
Job.getId()
public T command(Option command)
Job.getCommand()
public T objectType(ObjectType objectType)
Job.getObjectType()
public T createdOn(Date createdOn)
Job.getCreatedOn()
public T lastUpdatedOn(Date lastUpdatedOn)
Job.getLastUpdatedOn()
public T currentState(JobState currentState)
Job.getCurrentState()
public T attempts(int attempts)
Job.getAttempts()
public T owner(String owner)
Job.getOwner()
public T history(Set<JobProperties> history)
Job.getHistory()
public T history(JobProperties... in)
public T details(Map<String,String> details)
Job.getDetails()
public Job build()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.