eXo Kernel :: Cache Extension :: Infinispan Implementation 2.4.1-GA

org.exoplatform.services.ispn
Class DistributedCacheManager

java.lang.Object
  extended by org.exoplatform.services.ispn.DistributedCacheManager
All Implemented Interfaces:
org.picocontainer.Startable

public class DistributedCacheManager
extends Object
implements org.picocontainer.Startable

This class is used to allow to use infinispan in distribution mode with the ability to launch infinispan instances in standalone mode, in other words outside an application server. To make it possible we will need to share the same cache instance whatever the related ExoContainer because to be able to launch ispn instances in standalone mode we need to have a static configuration file.

Version:
$Id$
Author:
Nicolas Filotto

Field Summary
protected  org.infinispan.manager.EmbeddedCacheManager manager
          The infinispan cache manager
 
Constructor Summary
DistributedCacheManager(InitParams params, ConfigurationManager configManager)
          Default constructor
DistributedCacheManager(InitParams params, ConfigurationManager configManager, TransactionService ts)
          Default constructor
DistributedCacheManager(String configurationFile, Map<String,String> parameters, ConfigurationManager configManager)
          Default constructor
 
Method Summary
<K,V> org.infinispan.Cache<K,V>
getCache(String cacheName)
          Gives the cache corresponding to the given name if it doesn't exist a NullPointerException will be thrown
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected final org.infinispan.manager.EmbeddedCacheManager manager
The infinispan cache manager

Constructor Detail

DistributedCacheManager

public DistributedCacheManager(String configurationFile,
                               Map<String,String> parameters,
                               ConfigurationManager configManager)
Default constructor


DistributedCacheManager

public DistributedCacheManager(InitParams params,
                               ConfigurationManager configManager)
Default constructor


DistributedCacheManager

public DistributedCacheManager(InitParams params,
                               ConfigurationManager configManager,
                               TransactionService ts)
Default constructor

Method Detail

getCache

public <K,V> org.infinispan.Cache<K,V> getCache(String cacheName)
Gives the cache corresponding to the given name if it doesn't exist a NullPointerException will be thrown


start

public void start()
Specified by:
start in interface org.picocontainer.Startable
See Also:
Startable.start()

stop

public void stop()
Specified by:
stop in interface org.picocontainer.Startable
See Also:
Startable.stop()

eXo Kernel :: Cache Extension :: Infinispan Implementation 2.4.1-GA

Copyright © 2012 eXo Platform SAS. All Rights Reserved.