org.jppf.task.storage
Class MemoryMapDataProvider
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryMapDataProvider
public MemoryMapDataProvider()
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.