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