org.n52.wps.server.handler
Class WPSTask<W>

java.lang.Object
  extended by java.util.concurrent.FutureTask<W>
      extended by org.n52.wps.server.handler.WPSTask<W>
Type Parameters:
W - Should be of type Request.
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<W>, java.util.concurrent.RunnableFuture<W>

public class WPSTask<W>
extends java.util.concurrent.FutureTask<W>

A wrapper around a ExecuteRequest. Task can be scheduled for execution in the RequestExecutor. This task enables the executor to get the ExecuteRequest and the StatusType of the org.n52.wps.server.responseExecuteResponse. With this construction, the status of the request can be altered during execution.

Author:
Timon ter Braak

Constructor Summary
WPSTask(java.util.concurrent.Callable<W> callable)
          Create a new wrapper around an ExecuteRequest.
 
Method Summary
 ExecuteRequest getRequest()
          Get the Request of this wrapper.
 
Methods inherited from class java.util.concurrent.FutureTask
cancel, done, get, get, isCancelled, isDone, run, runAndReset, set, setException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WPSTask

public WPSTask(java.util.concurrent.Callable<W> callable)
Create a new wrapper around an ExecuteRequest.

Parameters:
callable - An ExecuteRequest
Method Detail

getRequest

public ExecuteRequest getRequest()
Get the Request of this wrapper.

Returns:
The Request


Copyright © 2007-2011 52north.org. All Rights Reserved.