org.jppf.task.storage
Class ClientDataProvider

java.lang.Object
  extended by org.jppf.task.storage.MemoryMapDataProvider
      extended by org.jppf.task.storage.ClientDataProvider
All Implemented Interfaces:
Serializable, DataProvider

public class ClientDataProvider
extends MemoryMapDataProvider

This data provider is an extension of MemoryMapDataProvider that enables executing a callback method on the client side.

Author:
Laurent Cohen
See Also:
Serialized Form

Constructor Summary
ClientDataProvider()
          Initialize this DataProvider.
 
Method Summary
<V> Object
computeValue(Object key, JPPFCallable<V> callable)
          Get a value specified by its key and computed by a callable object on the client side.
 
Methods inherited from class org.jppf.task.storage.MemoryMapDataProvider
getValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientDataProvider

public ClientDataProvider()
Initialize this DataProvider.

Method Detail

computeValue

public <V> Object computeValue(Object key,
                               JPPFCallable<V> callable)
Get a value specified by its key and computed by a callable object on the client side.
If the value has already been computed on the client side, it is simply retrieved locally from this data provider.

Type Parameters:
V - the type of results returned by the callable.
Parameters:
key - - the key identifying the value to retrieve in the store.
callable - - a JPPFCallable object used to compute the value.
Returns:
the value as an Object.
See Also:
DataProvider.getValue(java.lang.Object)


Copyright © 2005-2010 JPPF Team.