com.android.builder.tasks
Class Job<T>

java.lang.Object
  extended by com.android.builder.tasks.Job<T>

public class Job<T>
extends java.lang.Object

Definition of a queued job. A job has a title, a task to execute, a latch to signal its completion and a boolean result for success or failure.


Constructor Summary
Job(java.lang.String jobTile, Task<T> task)
           
 
Method Summary
 boolean await()
           
 void error()
           
 void finished()
           
 java.lang.String getJobTitle()
           
 void runTask(JobContext<T> jobContext)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Job

public Job(java.lang.String jobTile,
           Task<T> task)
Method Detail

getJobTitle

public java.lang.String getJobTitle()

runTask

public void runTask(JobContext<T> jobContext)
             throws java.io.IOException
Throws:
java.io.IOException

finished

public void finished()

error

public void error()

await

public boolean await()
              throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object