org.jclouds.gogrid.domain
Class Job

java.lang.Object
  extended by 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:

Nested Class Summary
static class Job.Builder<T extends Job.Builder<T>>
           
 
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)
           
 
Method Summary
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.Objects.ToStringHelper string()
           
 Job.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
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()

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.