org.openrdf.http.object.tasks
Class ProcessTask

java.lang.Object
  extended by org.openrdf.http.object.tasks.Task
      extended by org.openrdf.http.object.tasks.ProcessTask
All Implemented Interfaces:
Runnable

public class ProcessTask
extends Task

Invokes the operation and submits the response when this task is run.

Author:
James Leigh

Constructor Summary
ProcessTask(Request request, Filter filter, ResourceOperation operation, FileLockManager locks, Handler handler)
           
ProcessTask(Request request, Filter filter, ResourceOperation operation, FileLockManager locks, Handler handler, int generation)
           
 
Method Summary
 void abort()
           
 void awaitVerification(long time, TimeUnit unit)
           
 void cleanup()
           
protected  void close()
           
 int getGeneration()
           
 void perform()
           
 void verified()
           
 
Methods inherited from class org.openrdf.http.object.tasks.Task
bear, getHttpResponse, getReceivedOn, isDone, isSafe, isStorable, onDone, run, setErrorXSLT, setExecutor, setTrigger, submitResponse, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessTask

public ProcessTask(Request request,
                   Filter filter,
                   ResourceOperation operation,
                   FileLockManager locks,
                   Handler handler)

ProcessTask

public ProcessTask(Request request,
                   Filter filter,
                   ResourceOperation operation,
                   FileLockManager locks,
                   Handler handler,
                   int generation)
Method Detail

getGeneration

public int getGeneration()
Specified by:
getGeneration in class Task

verified

public void verified()

awaitVerification

public void awaitVerification(long time,
                              TimeUnit unit)
                       throws InterruptedException
Overrides:
awaitVerification in class Task
Throws:
InterruptedException

perform

public void perform()
             throws Exception
Throws:
Exception

abort

public void abort()
Overrides:
abort in class Task

cleanup

public void cleanup()
Overrides:
cleanup in class Task

close

protected void close()
Specified by:
close in class Task


Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.