1 7 package org.jboss.cache; 8 9 import org.jboss.cache.lock.NodeLock; 10 import org.jboss.cache.optimistic.DataVersion; 11 12 import java.util.Map ; 13 import java.util.Set ; 14 15 46 public interface NodeSPI extends Node 47 { 48 51 boolean getChildrenLoaded(); 52 53 58 void setChildrenLoaded(boolean loaded); 59 60 63 public boolean getDataLoaded(); 64 65 70 public void setDataLoaded(boolean dataLoaded); 71 72 78 Map <Object , Node> getChildrenMapDirect(); 79 80 86 void setChildrenMapDirect(Map <Object , Node> children); 87 88 93 NodeSPI getOrCreateChild(Object name, GlobalTransaction tx); 94 95 100 NodeLock getLock(); 101 102 105 void setFqn(Fqn f); 106 107 110 boolean isDeleted(); 111 112 117 void markAsDeleted(boolean marker); 118 119 125 void markAsDeleted(boolean marker, boolean recursive); 126 127 void addChild(Object nodeName, Node nodeToAdd); 128 129 135 void printDetails(StringBuffer sb, int indent); 136 137 143 144 void print(StringBuffer sb, int indent); 145 146 152 void setVersion(DataVersion version); 153 154 159 DataVersion getVersion(); 160 161 162 174 Set <NodeSPI> getChildrenDirect(); 175 176 179 void removeChildrenDirect(); 180 181 182 192 Set <NodeSPI> getChildrenDirect(boolean includeMarkedAsDeleted); 193 194 206 NodeSPI getChildDirect(Object childName); 207 208 220 NodeSPI addChildDirect(Fqn childName); 221 222 234 NodeSPI getChildDirect(Fqn childName); 235 236 247 void removeChildDirect(Fqn fqn); 248 249 260 void removeChildDirect(Object childName); 261 262 263 275 Object removeDirect(Object key); 276 277 289 Object putDirect(Object key, Object value); 290 291 302 void putDirect(Map <Object , Object > data); 303 304 318 Map <Object , Object > getDataDirect(); 319 320 331 Object getDirect(Object key); 332 333 334 344 void clearDataDirect(); 345 346 347 358 Set <Object > getKeysDirect(); 359 360 371 Set <Object > getChildrenNamesDirect(); 372 373 378 CacheSPI getCache(); 379 380 382 388 NodeSPI getParent(); 389 } 390 | Popular Tags |