org.jclouds.gogrid.domain
Class Job.Builder<T extends Job.Builder<T>>

java.lang.Object
  extended by org.jclouds.gogrid.domain.Job.Builder<T>
Enclosing class:
Job

public abstract static class Job.Builder<T extends Job.Builder<T>>
extends Object


Field Summary
protected  int attempts
           
protected  Option command
           
protected  Date createdOn
           
protected  JobState currentState
           
protected  Map<String,String> details
           
protected  Set<JobProperties> history
           
protected  long id
           
protected  Date lastUpdatedOn
           
protected  ObjectType objectType
           
protected  String owner
           
 
Constructor Summary
Job.Builder()
           
 
Method Summary
 T attempts(int attempts)
           
 Job build()
           
 T command(Option command)
           
 T createdOn(Date createdOn)
           
 T currentState(JobState currentState)
           
 T details(Map<String,String> details)
           
 T fromJob(Job in)
           
 T history(JobProperties... in)
           
 T history(Set<JobProperties> history)
           
 T id(long id)
           
 T lastUpdatedOn(Date lastUpdatedOn)
           
 T objectType(ObjectType objectType)
           
 T owner(String owner)
           
protected abstract  T self()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected long id

command

protected Option command

objectType

protected ObjectType objectType

createdOn

protected Date createdOn

lastUpdatedOn

protected Date lastUpdatedOn

currentState

protected JobState currentState

attempts

protected int attempts

owner

protected String owner

history

protected Set<JobProperties> history

details

protected Map<String,String> details
Constructor Detail

Job.Builder

public Job.Builder()
Method Detail

self

protected abstract T self()

id

public T id(long id)
See Also:
Job.getId()

command

public T command(Option command)
See Also:
Job.getCommand()

objectType

public T objectType(ObjectType objectType)
See Also:
Job.getObjectType()

createdOn

public T createdOn(Date createdOn)
See Also:
Job.getCreatedOn()

lastUpdatedOn

public T lastUpdatedOn(Date lastUpdatedOn)
See Also:
Job.getLastUpdatedOn()

currentState

public T currentState(JobState currentState)
See Also:
Job.getCurrentState()

attempts

public T attempts(int attempts)
See Also:
Job.getAttempts()

owner

public T owner(String owner)
See Also:
Job.getOwner()

history

public T history(Set<JobProperties> history)
See Also:
Job.getHistory()

history

public T history(JobProperties... in)

details

public T details(Map<String,String> details)
See Also:
Job.getDetails()

build

public Job build()

fromJob

public T fromJob(Job in)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.