|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.AbstractNode<K,V>
org.jboss.cache.UnversionedNode<K,V>
public class UnversionedNode<K,V>
Basic data node class. Throws UnsupportedOperationException
for version-specific methods like getVersion()
and
setVersion(org.jboss.cache.optimistic.DataVersion)
, defined in NodeSPI
.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
Debug log. |
protected static boolean |
trace
|
Fields inherited from class org.jboss.cache.AbstractNode |
---|
deleted, fqn, children, resident |
Constructor Summary | |
---|---|
|
UnversionedNode()
Constructs a new node with an FQN of Root. |
protected |
UnversionedNode(Object child_name,
Fqn fqn,
Map<K,V> data,
boolean mapSafe,
CacheSPI<K,V> cache)
Constructs a new node with a name, etc. |
Method Summary | |
---|---|
Node<K,V> |
addChild(Fqn f)
|
void |
addChild(Object child_name,
Node<K,V> n)
|
NodeSPI<K,V> |
addChildDirect(Fqn f)
|
NodeSPI<K,V> |
addChildDirect(Fqn f,
boolean notify)
|
void |
addChildDirect(NodeSPI<K,V> child)
|
void |
clearData()
|
void |
clearDataDirect()
|
int |
dataSize()
|
V |
get(K key)
|
CacheSPI<K,V> |
getCache()
|
Map<K,V> |
getData()
|
Map<K,V> |
getDataDirect()
|
NodeSPI |
getDelegate()
|
V |
getDirect(K key)
|
Fqn |
getFqn()
Returns the name of this node. |
Node<K,V> |
getChild(Fqn fqn)
|
Node<K,V> |
getChild(Object childName)
|
NodeSPI<K,V> |
getChildDirect(Fqn fqn)
|
NodeSPI<K,V> |
getChildDirect(Object childName)
|
Set<Node<K,V>> |
getChildren()
|
Set<NodeSPI<K,V>> |
getChildrenDirect()
|
Set<NodeSPI<K,V>> |
getChildrenDirect(boolean includeMarkedForRemoval)
|
Map<Object,Node<K,V>> |
getChildrenMapDirect()
|
Set<Object> |
getChildrenNames()
|
Set<Object> |
getChildrenNamesDirect()
|
Map |
getInternalState(boolean onlyInternalState)
|
Set<K> |
getKeys()
|
Set<K> |
getKeysDirect()
|
IdentityLock |
getLock()
|
NodeSPI<K,V> |
getOrCreateChild(Object child_name,
GlobalTransaction gtx,
boolean notify)
|
NodeSPI<K,V> |
getParent()
Returns a parent by checking the TreeMap by name. |
DataVersion |
getVersion()
|
boolean |
hasChild(Fqn f)
|
boolean |
hasChild(Object o)
|
boolean |
hasChildrenDirect()
|
boolean |
isDataLoaded()
Returns true if the data was loaded from the cache loader. |
boolean |
isChildrenLoaded()
|
boolean |
isLockForChildInsertRemove()
|
boolean |
isValid()
|
void |
print(StringBuffer sb,
int indent)
|
void |
printDetails(StringBuffer sb,
int indent)
|
V |
put(K key,
V value)
|
void |
putAll(Map<K,V> data)
|
void |
putAllDirect(Map<K,V> data)
|
V |
putDirect(K key,
V value)
|
V |
putIfAbsent(K k,
V v)
|
V |
remove(K key)
|
V |
removeDirect(K key)
|
boolean |
removeChild(Fqn fqn)
|
boolean |
removeChild(Object childName)
|
boolean |
removeChildDirect(Fqn f)
|
boolean |
removeChildDirect(Object childName)
|
void |
removeChildrenDirect()
|
V |
replace(K key,
V value)
|
boolean |
replace(K key,
V oldValue,
V newValue)
|
void |
replaceAll(Map<K,V> data)
|
void |
setDataLoaded(boolean dataLoaded)
Sets if the data was loaded from the cache loader. |
void |
setDelegate(NodeSPI delegate)
|
void |
setFqn(Fqn fqn)
|
void |
setChildrenLoaded(boolean flag)
|
void |
setChildrenMapDirect(Map<Object,Node<K,V>> children)
|
void |
setInternalState(Map state)
|
void |
setLockForChildInsertRemove(boolean lockForChildInsertRemove)
|
void |
setValid(boolean valid,
boolean recursive)
|
void |
setVersion(DataVersion version)
|
String |
toString()
Returns a debug string. |
Methods inherited from class org.jboss.cache.AbstractNode |
---|
equals, hashCode, isDeleted, isResident, markAsDeleted, markAsDeleted, setResident |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
protected static boolean trace
Constructor Detail |
---|
public UnversionedNode()
protected UnversionedNode(Object child_name, Fqn fqn, Map<K,V> data, boolean mapSafe, CacheSPI<K,V> cache)
mapSafe
- true
if param data
can safely be directly assigned to this object's
data
field; false
if param data
's contents should be copied into
this object's data
field.Method Detail |
---|
public NodeSPI getDelegate()
public void setDelegate(NodeSPI delegate)
public NodeSPI<K,V> getParent()
public CacheSPI<K,V> getCache()
public boolean isChildrenLoaded()
public void setChildrenLoaded(boolean flag)
public V get(K key)
public V getDirect(K key)
public IdentityLock getLock()
public Map<K,V> getData()
public Map<K,V> getDataDirect()
public V put(K key, V value)
public V putDirect(K key, V value)
public NodeSPI<K,V> getOrCreateChild(Object child_name, GlobalTransaction gtx, boolean notify)
public V remove(K key)
public V removeDirect(K key)
public void printDetails(StringBuffer sb, int indent)
public String toString()
toString
in class Object
public Node<K,V> addChild(Fqn f)
public void addChildDirect(NodeSPI<K,V> child)
public NodeSPI<K,V> addChildDirect(Fqn f)
public NodeSPI<K,V> addChildDirect(Fqn f, boolean notify)
public void clearData()
public void clearDataDirect()
public Node<K,V> getChild(Fqn fqn)
public NodeSPI<K,V> getChildDirect(Fqn fqn)
public Set<Object> getChildrenNames()
public Set<Object> getChildrenNamesDirect()
public Set<K> getKeys()
public Set<K> getKeysDirect()
public boolean hasChild(Fqn f)
public boolean hasChild(Object o)
public V putIfAbsent(K k, V v)
public V replace(K key, V value)
public boolean replace(K key, V oldValue, V newValue)
public boolean removeChild(Fqn fqn)
public int dataSize()
public boolean removeChild(Object childName)
public boolean removeChildDirect(Object childName)
public boolean removeChildDirect(Fqn f)
public Map<Object,Node<K,V>> getChildrenMapDirect()
public void setChildrenMapDirect(Map<Object,Node<K,V>> children)
public void putAll(Map<K,V> data)
public void replaceAll(Map<K,V> data)
public void putAllDirect(Map<K,V> data)
public void removeChildrenDirect()
public void print(StringBuffer sb, int indent)
public void setVersion(DataVersion version)
public DataVersion getVersion()
public void addChild(Object child_name, Node<K,V> n)
public Fqn getFqn()
public void setFqn(Fqn fqn)
public Node<K,V> getChild(Object childName)
public NodeSPI<K,V> getChildDirect(Object childName)
public Set<Node<K,V>> getChildren()
public Set<NodeSPI<K,V>> getChildrenDirect()
public boolean hasChildrenDirect()
public Set<NodeSPI<K,V>> getChildrenDirect(boolean includeMarkedForRemoval)
public boolean isDataLoaded()
public void setDataLoaded(boolean dataLoaded)
public boolean isValid()
public void setValid(boolean valid, boolean recursive)
public boolean isLockForChildInsertRemove()
public void setLockForChildInsertRemove(boolean lockForChildInsertRemove)
public void setInternalState(Map state)
public Map getInternalState(boolean onlyInternalState)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |