org.jppf.task.storage
Class MemoryMapDataProvider

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

public class MemoryMapDataProvider
extends Object
implements DataProvider

Implementation of a data provider that handles in-memory data backed by a Map.

Author:
Laurent Cohen
See Also:
DataProvider, Serialized Form

Constructor Summary
MemoryMapDataProvider()
           
 
Method Summary
 Object getValue(Object key)
          Get a value specified by its key.
 void setValue(Object key, Object value)
          Set a value specified by its key in the store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryMapDataProvider

public MemoryMapDataProvider()
Method Detail

getValue

public Object getValue(Object key)
Get a value specified by its key.

Specified by:
getValue in interface DataProvider
Parameters:
key - the key identifying the value to retrieve in the store.
Returns:
the value as an Object.
See Also:
DataProvider.getValue(java.lang.Object)

setValue

public void setValue(Object key,
                     Object value)
Set a value specified by its key in the store.

Specified by:
setValue in interface DataProvider
Parameters:
key - the key identifying the value to retrieve in the store.
value - the value to store, associated with the key.
See Also:
DataProvider.setValue(java.lang.Object, java.lang.Object)


Copyright © 2005-2010 JPPF Team.