1 7 package org.jboss.cache; 8 9 14 public interface TreeCacheMBean extends org.jboss.system.ServiceMBean 15 { 16 17 java.lang.Object getLocalAddress(); 18 19 java.util.Vector getMembers(); 20 21 boolean isCoordinator(); 22 23 26 java.lang.String getClusterName(); 27 28 31 void setClusterName(java.lang.String name); 32 33 36 java.lang.String getClusterProperties(); 37 38 42 void setClusterProperties(java.lang.String cluster_props); 43 44 48 java.lang.String dumpTransactionTable(); 49 50 boolean getDeadlockDetection(); 51 52 void setDeadlockDetection(boolean dt); 53 54 java.lang.String getInterceptorChain(); 55 56 java.util.List getInterceptors(); 57 58 java.lang.String getCacheLoaderClass(); 59 60 void setCacheLoaderClass(java.lang.String cache_loader_class); 61 62 java.util.Properties getCacheLoaderConfig(); 63 64 void setCacheLoaderConfig(java.util.Properties cache_loader_config); 65 66 org.jboss.cache.loader.CacheLoader getCacheLoader(); 67 68 void setCacheLoader(org.jboss.cache.loader.CacheLoader cache_loader); 69 70 boolean getCacheLoaderShared(); 71 72 void setCacheLoaderShared(boolean shared); 73 74 void setCacheLoaderPreload(java.lang.String list); 75 76 java.lang.String getCacheLoaderPreload(); 77 78 void setCacheLoaderFetchPersistentState(boolean flag); 79 80 boolean getCacheLoaderFetchPersistentState(); 81 82 void setCacheLoaderFetchTransientState(boolean flag); 83 84 boolean getCacheLoaderFetchTransientState(); 85 86 boolean getSyncCommitPhase(); 87 88 void setSyncCommitPhase(boolean sync_commit_phase); 89 90 boolean getSyncRollbackPhase(); 91 92 void setSyncRollbackPhase(boolean sync_rollback_phase); 93 94 97 void setEvictionPolicyConfig(org.w3c.dom.Element config); 98 99 102 void setClusterConfig(org.w3c.dom.Element config); 103 104 108 long getInitialStateRetrievalTimeout(); 109 110 113 void setInitialStateRetrievalTimeout(long timeout); 114 115 119 java.lang.String getCacheMode(); 120 121 124 void setCacheMode(java.lang.String mode) throws java.lang.Exception ; 125 126 130 long getSyncReplTimeout(); 131 132 135 void setSyncReplTimeout(long timeout); 136 137 boolean getUseReplQueue(); 138 139 void setUseReplQueue(boolean flag); 140 141 long getReplQueueInterval(); 142 143 void setReplQueueInterval(long interval); 144 145 int getReplQueueMaxElements(); 146 147 void setReplQueueMaxElements(int max_elements); 148 149 152 java.lang.String getIsolationLevel(); 153 154 157 void setIsolationLevel(java.lang.String level); 158 159 boolean getFetchStateOnStartup(); 160 161 void setFetchStateOnStartup(boolean flag); 162 163 167 long getLockAcquisitionTimeout(); 168 169 173 void setLockAcquisitionTimeout(long timeout); 174 175 179 java.lang.String getEvictionPolicyClass(); 180 181 184 void setEvictionPolicyClass(java.lang.String eviction_policy_class); 185 186 189 int getEvictionThreadWakeupIntervalSeconds(); 190 191 195 void setTransactionManagerLookup(org.jboss.cache.TransactionManagerLookup l); 196 197 java.lang.String getTransactionManagerLookupClass(); 198 199 204 void setTransactionManagerLookupClass(java.lang.String cl) throws java.lang.Exception ; 205 206 javax.transaction.TransactionManager getTransactionManager(); 207 208 org.jboss.cache.TreeCache getInstance(); 209 210 213 void fetchState(long timeout) throws org.jgroups.ChannelClosedException, org.jgroups.ChannelNotConnectedException; 214 215 void addTreeCacheListener(org.jboss.cache.TreeCacheListener listener); 216 217 void removeTreeCacheListener(org.jboss.cache.TreeCacheListener listener); 218 219 void createService() throws java.lang.Exception ; 220 221 void destroyService(); 222 223 void startService() throws java.lang.Exception ; 224 225 230 void load(java.lang.String fqn) throws java.lang.Exception ; 231 232 void stopService(); 233 234 java.util.Set getKeys(java.lang.String fqn) throws org.jboss.cache.CacheException; 235 236 java.util.Set getKeys(org.jboss.cache.Fqn fqn) throws org.jboss.cache.CacheException; 237 238 243 java.lang.Object get(java.lang.String fqn, java.lang.Object key) throws org.jboss.cache.CacheException; 244 245 250 java.lang.Object get(org.jboss.cache.Fqn fqn, java.lang.Object key) throws org.jboss.cache.CacheException; 251 252 257 boolean exists(java.lang.String fqn); 258 259 264 boolean exists(org.jboss.cache.Fqn fqn); 265 266 boolean exists(java.lang.String fqn, java.lang.Object key); 267 268 274 boolean exists(org.jboss.cache.Fqn fqn, java.lang.Object key); 275 276 281 void put(java.lang.String fqn, java.util.Map data) throws org.jboss.cache.CacheException; 282 283 288 void put(org.jboss.cache.Fqn fqn, java.util.Map data) throws org.jboss.cache.CacheException; 289 290 297 java.lang.Object put(java.lang.String fqn, java.lang.Object key, java.lang.Object value) 298 throws org.jboss.cache.CacheException; 299 300 307 java.lang.Object put(org.jboss.cache.Fqn fqn, java.lang.Object key, java.lang.Object value) 308 throws org.jboss.cache.CacheException; 309 310 314 void remove(java.lang.String fqn) throws org.jboss.cache.CacheException; 315 316 320 void remove(org.jboss.cache.Fqn fqn) throws org.jboss.cache.CacheException; 321 322 327 void evict(org.jboss.cache.Fqn fqn) throws org.jboss.cache.CacheException; 328 329 335 java.lang.Object remove(java.lang.String fqn, java.lang.Object key) throws org.jboss.cache.CacheException; 336 337 343 java.lang.Object remove(org.jboss.cache.Fqn fqn, java.lang.Object key) throws org.jboss.cache.CacheException; 344 345 void removeData(java.lang.String fqn) throws org.jboss.cache.CacheException; 346 347 void removeData(org.jboss.cache.Fqn fqn) throws org.jboss.cache.CacheException; 348 349 353 void releaseAllLocks(java.lang.String fqn); 354 355 359 void releaseAllLocks(org.jboss.cache.Fqn fqn); 360 361 364 java.lang.String print(java.lang.String fqn); 365 366 369 java.lang.String print(org.jboss.cache.Fqn fqn); 370 371 376 java.util.Set getChildrenNames(java.lang.String fqn) throws org.jboss.cache.CacheException; 377 378 383 java.util.Set getChildrenNames(org.jboss.cache.Fqn fqn) throws org.jboss.cache.CacheException; 384 385 java.lang.String toString(); 386 387 java.lang.String toString(boolean details); 388 389 java.lang.String printDetails(); 390 391 java.lang.String printLockInfo(); 392 393 397 int getNumberOfLocksHeld(); 398 399 403 int getNumberOfNodes(); 404 405 409 int getNumberOfAttributes(); 410 411 java.util.List callRemoteMethods(java.util.Vector members, java.lang.reflect.Method method, java.lang.Object [] args, 412 boolean synchronous, boolean exclude_self, long timeout) throws java.lang.Exception ; 413 414 java.util.List callRemoteMethods(java.util.Vector members, java.lang.String method_name, java.lang.Class [] types, 415 java.lang.Object [] args, boolean synchronous, boolean exclude_self, long timeout) throws java.lang.Exception ; 416 417 423 void _put(org.jboss.cache.GlobalTransaction tx, java.lang.String fqn, java.util.Map data, boolean create_undo_ops) 424 throws org.jboss.cache.CacheException; 425 426 432 void _put(org.jboss.cache.GlobalTransaction tx, org.jboss.cache.Fqn fqn, java.util.Map data, boolean create_undo_ops) 433 throws org.jboss.cache.CacheException; 434 435 442 void _put(org.jboss.cache.GlobalTransaction tx, org.jboss.cache.Fqn fqn, java.util.Map data, 443 boolean create_undo_ops, boolean erase_contents) throws org.jboss.cache.CacheException; 444 445 java.lang.Object _put(org.jboss.cache.GlobalTransaction tx, java.lang.String fqn, java.lang.Object key, 446 java.lang.Object value, boolean create_undo_ops) throws org.jboss.cache.CacheException; 447 448 java.lang.Object _put(org.jboss.cache.GlobalTransaction tx, org.jboss.cache.Fqn fqn, java.lang.Object key, 449 java.lang.Object value, boolean create_undo_ops) throws org.jboss.cache.CacheException; 450 451 void _remove(org.jboss.cache.GlobalTransaction tx, java.lang.String fqn, boolean create_undo_ops) 452 throws org.jboss.cache.CacheException; 453 454 void _remove(org.jboss.cache.GlobalTransaction tx, org.jboss.cache.Fqn fqn, boolean create_undo_ops) 455 throws org.jboss.cache.CacheException; 456 457 java.lang.Object _remove(org.jboss.cache.GlobalTransaction tx, java.lang.String fqn, java.lang.Object key, 458 boolean create_undo_ops) throws org.jboss.cache.CacheException; 459 460 java.lang.Object _remove(org.jboss.cache.GlobalTransaction tx, org.jboss.cache.Fqn fqn, java.lang.Object key, 461 boolean create_undo_ops) throws org.jboss.cache.CacheException; 462 463 } 464 | Popular Tags |