Package org.jclouds.gogrid.domain
Class Job
- java.lang.Object
-
- org.jclouds.gogrid.domain.Job
-
- All Implemented Interfaces:
Comparable<Job>
public class Job extends Object implements Comparable<Job>
Represents any job in GoGrid system (jobs include server creation, stopping, etc)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJob.Builder<T extends Job.Builder<T>>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Job.Builder<?>builder()intcompareTo(Job o)booleanequals(Object obj)intgetAttempts()OptiongetCommand()DategetCreatedOn()JobStategetCurrentState()Map<String,String>getDetails()Set<JobProperties>getHistory()longgetId()DategetLastUpdatedOn()ObjectTypegetObjectType()StringgetOwner()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()Job.Builder<?>toBuilder()StringtoString()
-
-
-
Constructor Detail
-
Job
@ConstructorProperties({"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)
-
-
Method Detail
-
builder
public static Job.Builder<?> builder()
-
toBuilder
public Job.Builder<?> toBuilder()
-
getId
public long getId()
-
getCommand
public Option getCommand()
-
getObjectType
public ObjectType getObjectType()
-
getCreatedOn
public Date getCreatedOn()
-
getCurrentState
public JobState getCurrentState()
-
getAttempts
public int getAttempts()
-
getOwner
public String getOwner()
-
getHistory
public Set<JobProperties> getHistory()
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(Job o)
- Specified by:
compareToin interfaceComparable<Job>
-
-