프로그래밍 방식 구성으로 Ignite-Node를 만들고 싶습니다. 응용 프로그램에는 javax.cache.CacheManager 객체가 필요합니다.프로그래밍 방식으로/XML없이 Ignite CacheManager를 인스턴스화하는 방법
나는 나는 다음과 같은 코드를 가진은 Ignite-노드를 시작할 수 있다는 사실을 알고 :
//with xml-config
Ignition.start("path-to-ignite-config-xml");
//with programmatic config
Ignition.start(cfg)
//with xml-config with the JCache-API
Caching.getCachingProvider().getCacheManager(uriToXML,Classloader);
처음 두 메소드 호출은 반환 값으로의 Ignite-객체를 얻었다. 마지막 값은 반환 값으로 CacheManager 객체를가집니다. 하지만이 같은 필요 : 내가 원하는 어떤
Caching.getCachingProvider().getCacheManager(IgniteConfiguration cfg);
// or this:
Ignition.start(IgniteConfiguration cfg).getCacheManager();
반환 형식 javax.cache.CacheManager을 (가지고하는 방법 org.apache.ignite.cache.CachingProvider.findManager (의 Ignite)가있다을) 하지만 반환 값은 항상 null입니다.
xml-config없이 javax.cache.CacheManager- 개체를 가져 오는 방법이 있습니까?