org.jppf.client.taskwrapper
Interface TaskObjectWrapper

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractTaskObjectWrapper, CallableTaskWrapper, PojoTaskWrapper, RunnableTaskWrapper

public interface TaskObjectWrapper
extends Serializable

Wrapper interface for tasks that are not sub-classes of JPPFTask.

Author:
Laurent Cohen

Nested Class Summary
static class TaskObjectWrapper.MethodType
          Type-safe enumeration for the type of method to execute.
 
Method Summary
 Object execute()
          Execute the task depending on its type.
 TaskObjectWrapper.MethodType getMethodType()
          The type of the method to execute on the object.
 Object getTaskObject()
          Return the object on which a method or constructor is called.
 

Method Detail

getMethodType

TaskObjectWrapper.MethodType getMethodType()
The type of the method to execute on the object.

Returns:
a MethodType enum value.

execute

Object execute()
               throws Exception
Execute the task depending on its type.

Returns:
the result of the execution.
Throws:
Exception - if an error occurs during the execution.

getTaskObject

Object getTaskObject()
Return the object on which a method or constructor is called.

Returns:
an object or null if the invoked method is static.


Copyright © 2005-2010 JPPF Team.