Package org.jppf.client.taskwrapper
Interface TaskObjectWrapper
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractTaskObjectWrapper,CallableTaskWrapper,PojoTaskWrapper,RunnableTaskWrapper
Wrapper interface for tasks that are not implementations of
Task.- Author:
- Laurent Cohen
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumType-safe enumeration for the type of method to execute. -
Method Summary
Modifier and TypeMethodDescriptionexecute()Execute the task depending on its type.The type of the method to execute on the object.Return the object on which a method or constructor is called.
-
Method Details
-
getMethodType
TaskObjectWrapper.MethodType getMethodType()The type of the method to execute on the object.- Returns:
- a
MethodTypeenum value.
-
execute
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.
-