Package org.jppf.client.taskwrapper
Interface DataProviderHolder
public interface DataProviderHolder
This interface must be implemented by tasks that are not implementations of
Task
when they need access to the job's DataProvider.
Implementations should ensure the DataProvider is not kept as a persistent (on-transient) attribute of the implementing class, otherwise it will be serialized along with the task after execution, causing additional CPU usage and network traffic.
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetDataProvider(DataProvider dataProvider) Set the data provider for the task.
-
Method Details
-
setDataProvider
Set the data provider for the task.- Parameters:
dataProvider- the data provider set onto the job to which the tasks belongs.
-