|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flexive.shared.mbeans.FxCacheProxy
public class FxCacheProxy
Proxy for the FxCache MBean (only for internal used!) TODO: code error handling
| Field Summary |
|---|
| Fields inherited from interface com.flexive.shared.mbeans.FxCacheMBean |
|---|
STREAMING_PORT |
| Fields inherited from interface com.flexive.shared.cache.FxBackingCache |
|---|
SYSTEM_UP_KEY |
| Constructor Summary | |
|---|---|
FxCacheProxy(javax.management.MBeanServer server)
|
|
| Method Summary | |
|---|---|
void |
create()
Creates and starts up the cache |
void |
destroy()
Shutdown |
boolean |
exists(java.lang.String path,
java.lang.Object key)
Checks if the given key exists under the given path. |
java.lang.Object |
get(java.lang.String path,
java.lang.Object key)
Reads a entry from the division cache that the current request is in. |
org.jboss.cache.Cache<java.lang.Object,java.lang.Object> |
getCache()
Get the wrapped cache |
java.util.Set |
getChildrenNames(java.lang.String path)
Get all child nodes for a path |
java.lang.String |
getDeploymentId()
Return the Id of this deployment of flexive (used to check existance of running mbean server on redeployment) |
java.util.Set |
getKeys(java.lang.String path)
Get all keys for a path |
javax.management.ObjectName |
getName()
|
long |
getNodeStartTime()
Returns the time this node was started up. |
long |
getSystemStartTime()
Returns the time the system was started up. |
boolean |
globalExists(java.lang.String path,
java.lang.Object key)
A global exists |
java.lang.Object |
globalGet(java.lang.String path,
java.lang.Object key)
A global get |
java.util.Set |
globalGetKeys(java.lang.String path)
A global getKeys |
void |
globalPut(java.lang.String path,
java.lang.Object key,
java.lang.Object value)
A global put |
void |
globalRemove(java.lang.String path)
A global remove |
void |
globalRemove(java.lang.String path,
java.lang.Object key)
A global remove |
void |
put(java.lang.String path,
java.lang.Object key,
java.lang.Object value)
Puts a entry into the cache of the division the current request is in. |
void |
reloadEnvironment(java.lang.Integer divisionId)
Force a reload for given division |
void |
remove(java.lang.String path)
Removes from the cache of the division the current request is in. |
void |
remove(java.lang.String path,
java.lang.Object key)
Removes a entry from the cache of the division the current request is in. |
void |
setEvictionStrategy(java.lang.Integer divisionId,
java.lang.String path,
java.lang.Integer maxContents,
java.lang.Integer timeToIdle,
java.lang.Integer timeToLive)
Set the eviction strategy for a path (if the backing cache supports this) |
void |
setEvictionStrategy(java.lang.Integer divisionId,
java.lang.String path,
java.lang.Integer maxContents,
java.lang.Integer timeToIdle,
java.lang.Integer timeToLive,
java.lang.Boolean overwrite)
Set the eviction strategy for a path (if the backing cache supports this) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FxCacheProxy(javax.management.MBeanServer server)
throws javax.management.MalformedObjectNameException
javax.management.MalformedObjectNameException| Method Detail |
|---|
public javax.management.ObjectName getName()
public void create()
throws java.lang.Exception
create in interface FxCacheMBeanjava.lang.Exception - on errors
public void destroy()
throws java.lang.Exception
destroy in interface FxCacheMBeanjava.lang.Exception - on errors
public org.jboss.cache.Cache<java.lang.Object,java.lang.Object> getCache()
throws FxCacheException
getCache in interface FxBackingCacheFxCacheException - on errors
public java.lang.Object get(java.lang.String path,
java.lang.Object key)
throws FxCacheException
get in interface FxBackingCachepath - pathkey - key
FxCacheException - on errors
public void put(java.lang.String path,
java.lang.Object key,
java.lang.Object value)
throws FxCacheException
put in interface FxBackingCachepath - pathkey - keyvalue - value
FxCacheException - on errors
public void remove(java.lang.String path)
throws FxCacheException
remove in interface FxBackingCachepath - path
FxCacheException - on errors
public void remove(java.lang.String path,
java.lang.Object key)
throws FxCacheException
remove in interface FxBackingCachepath - pathkey - key
FxCacheException - on errors
public java.util.Set getKeys(java.lang.String path)
throws FxCacheException
getKeys in interface FxBackingCachepath - path
FxCacheException - on errors
public java.util.Set globalGetKeys(java.lang.String path)
throws FxCacheException
globalGetKeys in interface FxCacheMBeanpath - path
FxCacheException - on errorsFxBackingCache.getKeys(String)
public java.lang.Object globalGet(java.lang.String path,
java.lang.Object key)
throws FxCacheException
globalGet in interface FxCacheMBeanpath - pathkey - key
FxCacheException - on errorsFxBackingCache.get(String,Object)
public boolean globalExists(java.lang.String path,
java.lang.Object key)
throws FxCacheException
globalExists in interface FxCacheMBeanpath - pathkey - key
FxCacheException - on errorsFxBackingCache.exists(String,Object)
public boolean exists(java.lang.String path,
java.lang.Object key)
throws FxCacheException
exists in interface FxBackingCachepath - pathkey - key
FxCacheException - on errors
public void globalPut(java.lang.String path,
java.lang.Object key,
java.lang.Object value)
throws FxCacheException
globalPut in interface FxCacheMBeanpath - pathkey - keyvalue - value
FxCacheException - on errorsFxBackingCache.put(String,Object,Object)
public void globalRemove(java.lang.String path)
throws FxCacheException
globalRemove in interface FxCacheMBeanpath - path
FxCacheException - on errorsFxBackingCache.remove(String)
public void globalRemove(java.lang.String path,
java.lang.Object key)
throws FxCacheException
globalRemove in interface FxCacheMBeanpath - pathkey - key
FxCacheException - on errorsFxBackingCache.remove(String,Object)
public java.util.Set getChildrenNames(java.lang.String path)
throws FxCacheException
getChildrenNames in interface FxBackingCachepath - path
FxCacheException - on errorspublic java.lang.String getDeploymentId()
getDeploymentId in interface FxCacheMBeanpublic long getSystemStartTime()
getSystemStartTime in interface FxCacheMBeanpublic long getNodeStartTime()
getNodeStartTime in interface FxCacheMBean
public void reloadEnvironment(java.lang.Integer divisionId)
throws java.lang.Exception
reloadEnvironment in interface FxCacheMBeandivisionId - division
java.lang.Exception - on errors
public void setEvictionStrategy(java.lang.Integer divisionId,
java.lang.String path,
java.lang.Integer maxContents,
java.lang.Integer timeToIdle,
java.lang.Integer timeToLive)
setEvictionStrategy in interface FxCacheMBeandivisionId - divisionpath - pathmaxContents - max. number of entries to allow (0=unlimited)timeToIdle - time a value has to be idle to be evicted (0=forever)timeToLive - time to live (0=forever)
public void setEvictionStrategy(java.lang.Integer divisionId,
java.lang.String path,
java.lang.Integer maxContents,
java.lang.Integer timeToIdle,
java.lang.Integer timeToLive,
java.lang.Boolean overwrite)
throws FxCacheException
setEvictionStrategy in interface FxCacheMBeandivisionId - divisionpath - pathmaxContents - max. number of entries to allow (0=unlimited)timeToIdle - time a value has to be idle to be evicted (0=forever)timeToLive - time to live (0=forever)overwrite - if an existing policy should be overwritten
FxCacheException - on cache errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||