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)

Author:
Oleksiy Yarmula
See Also:

Constructor Summary
Job()
          A no-args constructor is required for deserialization
Job(long id, Option command, ObjectType objectType, Date createdOn, Date lastUpdatedOn, JobState currentState, int attempts, String owner, SortedSet<JobProperties> history, Map<String,String> details)
           
 
Method Summary
 int compareTo(Job o)
           
 boolean equals(Object o)
           
 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()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Job

public Job()
A no-args constructor is required for deserialization


Job

public Job(long id,
           Option command,
           ObjectType objectType,
           Date createdOn,
           Date lastUpdatedOn,
           JobState currentState,
           int attempts,
           String owner,
           SortedSet<JobProperties> history,
           Map<String,String> details)
Method Detail

getId

public long getId()

getCommand

public Option getCommand()

getObjectType

public ObjectType getObjectType()

getCreatedOn

public Date getCreatedOn()

getLastUpdatedOn

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

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Job o)
Specified by:
compareTo in interface Comparable<Job>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.