Package org.jclouds.gogrid.domain
Class Job
java.lang.Object
org.jclouds.gogrid.domain.Job
- All Implemented Interfaces:
Comparable<Job>
Represents any job in GoGrid system
(jobs include server creation, stopping, etc)
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Job.Builder
<?> builder()
int
boolean
int
long
getId()
getOwner()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Job.Builder
<?> toString()
-
Constructor Details
-
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 Details
-
builder
-
toBuilder
-
getId
public long getId() -
getCommand
-
getObjectType
-
getCreatedOn
-
getLastUpdatedOn
-
getCurrentState
-
getAttempts
public int getAttempts() -
getOwner
-
getHistory
-
getDetails
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Job>
-