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)
- See Also:
|
Constructor Summary |
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)
|
Job
@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)
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()
getLastUpdatedOn
@Nullable
public Date getLastUpdatedOn()
getCurrentState
public JobState getCurrentState()
getAttempts
public int getAttempts()
getOwner
public String getOwner()
getHistory
public Set<JobProperties> getHistory()
getDetails
public Map<String,String> getDetails()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
compareTo
public int compareTo(Job o)
- Specified by:
compareTo in interface Comparable<Job>
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.