org.mobicents.cache
Class MobicentsCache

java.lang.Object
  extended by org.mobicents.cache.MobicentsCache

public class MobicentsCache
extends Object

The container's HA and FT data source.

Author:
martins

Constructor Summary
MobicentsCache(org.jboss.cache.Cache cache)
           
MobicentsCache(org.jboss.cache.CacheManager haCacheManager, String cacheName, boolean managedCache)
           
MobicentsCache(org.jboss.cache.config.Configuration cacheConfiguration)
           
MobicentsCache(String cacheConfigurationLocation)
           
 
Method Summary
 String getCacheContent()
          Retrieves the cache content as a string.
 org.jboss.cache.Cache getJBossCache()
           
 boolean isLocalMode()
          Indicates if the cache is not in a cluster environment.
 void setReplicationClassLoader(ClassLoader classLoader)
          Sets the class loader to be used on serialization operations, for all data stored.
 void setReplicationClassLoader(org.jboss.cache.Fqn regionFqn, ClassLoader classLoader)
          Sets the class loader to be used on serialization operations, for data stored in the specified fqn and child nodes.
 void startCache()
           
 void stopCache()
           
 void unsetReplicationClassLoader(ClassLoader classLoader)
          Unsets the class loader to be used on serialization operations, for all data stored.
 void unsetReplicationClassLoader(org.jboss.cache.Fqn regionFqn, ClassLoader classLoader)
          Unsets the class loader to be used on serialization operations, for data stored in the specified fqn and child nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobicentsCache

public MobicentsCache(org.jboss.cache.config.Configuration cacheConfiguration)

MobicentsCache

public MobicentsCache(String cacheConfigurationLocation)

MobicentsCache

public MobicentsCache(org.jboss.cache.CacheManager haCacheManager,
                      String cacheName,
                      boolean managedCache)
               throws Exception
Throws:
Exception

MobicentsCache

public MobicentsCache(org.jboss.cache.Cache cache)
Method Detail

startCache

public void startCache()

getJBossCache

public org.jboss.cache.Cache getJBossCache()

stopCache

public void stopCache()

isLocalMode

public boolean isLocalMode()
Indicates if the cache is not in a cluster environment.

Returns:
the localMode

setReplicationClassLoader

public void setReplicationClassLoader(org.jboss.cache.Fqn regionFqn,
                                      ClassLoader classLoader)
Sets the class loader to be used on serialization operations, for data stored in the specified fqn and child nodes. Note that if another class loader is set for a specific child node tree, the cache will use instead that class loader.

Parameters:
regionFqn -
classLoader -

setReplicationClassLoader

public void setReplicationClassLoader(ClassLoader classLoader)
Sets the class loader to be used on serialization operations, for all data stored. Note that if another class loader is set for a specific child node tree, the cache will use instead that class loader.

Parameters:
classLoader -

unsetReplicationClassLoader

public void unsetReplicationClassLoader(org.jboss.cache.Fqn regionFqn,
                                        ClassLoader classLoader)
Unsets the class loader to be used on serialization operations, for data stored in the specified fqn and child nodes.

Parameters:
regionFqn -
classLoader -

unsetReplicationClassLoader

public void unsetReplicationClassLoader(ClassLoader classLoader)
Unsets the class loader to be used on serialization operations, for all data stored.

Parameters:
classLoader -

getCacheContent

public String getCacheContent()
Retrieves the cache content as a string.

Returns:


Copyright © 2011. All Rights Reserved.