|
|||||||||||
| 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 | |
void |
evict(Fqn fqn)
Override to provide aop specific eviction. |
java.util.Map |
findObjects(Fqn fqn)
Query all managed pojo objects under the fqn recursively. |
java.util.Map |
findObjects(java.lang.String fqn)
Query all managed pojo objects under the fqn recursively. |
CachedType |
getCachedType(java.lang.Class clazz)
Obtain a cache aop type for user to traverse the defined "primitive" types in aop. |
java.lang.Object |
getObject(Fqn fqn)
Retrieve the aop-enabled object from the cache. |
java.lang.Object |
getObject(java.lang.String fqn)
Retrieve the aop-enabled object from the cache. |
java.lang.Object |
putObject(Fqn fqn,
java.lang.Object obj)
Insert an aop-enabled object into the cache. |
java.lang.Object |
putObject(java.lang.String fqn,
java.lang.Object obj)
Insert an aop-enabled object into the cache. |
java.lang.Object |
removeObject(Fqn fqn)
Remove aop-enabled object from the cache. |
java.lang.Object |
removeObject(java.lang.String fqn)
Remove aop-enabled object from the cache. |
void |
setEvictionPolicyClass(java.lang.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(java.lang.String eviction_policy_class)
setEvictionPolicyClass in interface TreeCacheMBean
public java.lang.Object putObject(java.lang.String fqn,
java.lang.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.
CacheException
public java.lang.Object putObject(Fqn fqn,
java.lang.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.
CacheException
public java.lang.Object getObject(java.lang.String fqn)
throws CacheException
fqn - String name that associates with this node.
CacheException
public java.lang.Object getObject(Fqn fqn)
throws CacheException
fqn - Instance that associates with this node.
CacheException
public java.lang.Object removeObject(java.lang.String fqn)
throws CacheException
fqn - String name that associates with this node.
CacheException
public java.lang.Object removeObject(Fqn fqn)
throws CacheException
fqn - Instance that associates with this node.
CacheException
public 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
public java.util.Map findObjects(java.lang.String fqn)
throws CacheException
fqn - The starting place to find all pojos.
CacheException
public java.util.Map findObjects(Fqn fqn)
throws CacheException
fqn - The starting place to find all pojos.
CacheExceptionpublic CachedType getCachedType(java.lang.Class clazz)
clazz - The original pojo class
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||