ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravi <ravikumarpur...@gmail.com>
Subject how to create instance of CacheManager of ignite
Date Mon, 08 Feb 2016 06:05:24 GMT
This is example of ehcacheprovider

private CacheManager Cmanager;
	//here config = ehcache.xml
	public EhCacheProvider(String config) throws CacheException
			//initialize cache manager by passing configuration xml file path
			m_ObjCacheManager = Cmanager.newInstance(config);


and we can call this method using icahceprovider interface
CacheManager iCacheManager = null;
	ICacheProvider iCacheProvider = null;

iCacheManager = CacheManager.getInstance();
	iCacheProvider = iCacheManager.getcacheProvider();

but the same way as  i am doing for ignite

it shows error in this


as it is not the method but how can i create an instance so that it can be
used as singleton class to call provider and work in multiple classes by
creating its instance.

View this message in context: http://apache-ignite-users.70518.x6.nabble.com/how-to-create-instance-of-CacheManager-of-ignite-tp2876.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message