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 class
Job.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()
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.MoreObjects.ToStringHelper
string()
Job.Builder<?>
toBuilder()
String
toString()
-
-
-
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:
compareTo
in interfaceComparable<Job>
-
-