@ThreadSafe public class JdbmCacheLoader2 extends JdbmCacheLoader
JdbmCacheLoader
implementation which is better
for storing data under a single node. Speed is improved.
Data is stored using an FQN to Map association, where the depth is prefixed to the FQN:
0/ = NodeData 1/node1 = Node Data 1/node2 = Node Data 2/node2/node3 = Node Data 2/node2/node4 = Node DataBrowse operations lock the entire tree; eventually the JDBM team plans to fix this.
buddyFqnTransformer, cache, regionManager, transactions
Constructor and Description |
---|
JdbmCacheLoader2() |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(Fqn name)
Returns whether the given node exists.
|
Map |
get(Fqn name)
Returns a map containing all key-value pairs for the given FQN, or null
if the node is not present.
|
checkNonNull, checkNotOpen, create, dump, dump, getChildrenNames, getConfig, put, put, put, remove, remove, removeData, setCache, setConfig, size, start, stop, toString
commit, destroy, doMarshall, doUnmarshall, getMarshaller, getNodeDataList, loadEntireState, loadState, loadStateHelper, move, prepare, put, regionAwareMarshall, regionAwareUnmarshall, rollback, setRegionManager, storeEntireState, storeState, storeStateHelper
public Map get(Fqn name) throws Exception
JdbmCacheLoader
get
in interface CacheLoader
get
in class JdbmCacheLoader
name
- the Fqn
to search for.Exception
public boolean exists(Fqn name) throws IOException
JdbmCacheLoader
exists
in interface CacheLoader
exists
in class JdbmCacheLoader
IOException
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.