|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
MBean interface.
| Field Summary |
| Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Method Summary | |
Object |
_put(GlobalTransaction tx,
Fqn fqn,
Object key,
Object value,
boolean create_undo_ops)
|
void |
evict(Fqn fqn)
Override to provide aop specific eviction. |
Object |
getObject(Fqn fqn)
Retrieve the aop-enabled object from the cache. |
Object |
getObject(String fqn)
Retrieve the aop-enabled object from the cache. |
Object |
putObject(Fqn fqn,
Object obj)
Insert an aop-enabled object into the cache. |
Object |
putObject(String fqn,
Object obj)
Insert an aop-enabled object into the cache. |
Object |
removeObject(Fqn fqn)
Remove aop-enabled object from the cache. |
Object |
removeObject(String fqn)
Remove aop-enabled object from the cache. |
void |
setEvictionPolicyClass(String eviction_policy_class)
Over-ride to make sure we are using an eviction policy specific to aop. |
| Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
| Method Detail |
public void setEvictionPolicyClass(String eviction_policy_class)
setEvictionPolicyClass in interface TreeCacheMBeanpublic Object putObject(String fqn, Object obj) throws CacheException
jboss-aop.xml). Note that List, Map, Set attributes are aop-enabled, by default, as well.
fqn - The fqn string name to associate with the object in the cache.obj - aop-enabled object to be inerted into the cache. If null, it will nullify the fqn node.
CacheExceptionpublic Object putObject(Fqn fqn, Object obj) throws CacheException
jboss-aop.xml). Note that List, Map, Set attributes are aop-enabled, by default, as well.
fqn - The fqn instance to associate with the object in the cache.obj - aop-enabled object to be inerted into the cache. If null, it will nullify the fqn node.
CacheExceptionpublic Object getObject(String fqn) throws CacheException
fqn - String name that associates with this node.
CacheExceptionpublic Object getObject(Fqn fqn) throws CacheException
fqn - Instance that associates with this node.
CacheExceptionpublic Object removeObject(String fqn) throws CacheException
fqn - String name that associates with this node.
CacheExceptionpublic Object removeObject(Fqn fqn) throws CacheException
fqn - Instance that associates with this node.
CacheExceptionpublic Object _put(GlobalTransaction tx, Fqn fqn, Object key, Object value, boolean create_undo_ops) throws CacheException
_put in interface TreeCacheMBeanCacheExceptionpublic void evict(Fqn fqn) throws CacheException
Called by eviction policy provider. Note that eviction is done only in local mode, that is, it doesn't replicate the node removal. This is will cause the replcation nodes not synchronizing, but it is ok since user is supposed to add the node again when get is null. After that, the contents will be in sync.
evict in interface TreeCacheMBeanfqn - Will remove everythign assoicated with this fqn.
CacheException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||