• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java PersistenceConfigurationBuilder类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.infinispan.configuration.cache.PersistenceConfigurationBuilder的典型用法代码示例。如果您正苦于以下问题:Java PersistenceConfigurationBuilder类的具体用法?Java PersistenceConfigurationBuilder怎么用?Java PersistenceConfigurationBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PersistenceConfigurationBuilder类属于org.infinispan.configuration.cache包,在下文中一共展示了PersistenceConfigurationBuilder类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: parseCloudStore

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
private void parseCloudStore(final XMLExtendedStreamReader reader, PersistenceConfigurationBuilder loadersBuilder,
      ClassLoader classLoader) throws XMLStreamException {
   CloudStoreConfigurationBuilder builder = new CloudStoreConfigurationBuilder(loadersBuilder);
   parseCloudStoreAttributes(reader, builder, classLoader);

   while (reader.hasNext() && (reader.nextTag() != XMLStreamConstants.END_ELEMENT)) {
      Element element = Element.forName(reader.getLocalName());
      switch (element) {
      default: {
         Parser.parseStoreElement(reader, builder);
         break;
      }
      }
   }
   loadersBuilder.addStore(builder);
}
 
开发者ID:infinispan,项目名称:infinispan-cachestore-cloud,代码行数:17,代码来源:CloudStoreConfigurationParser.java


示例2: parseMongoDBStore

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
private void parseMongoDBStore(XMLExtendedStreamReader reader, PersistenceConfigurationBuilder persistenceConfigurationBuilder)
        throws XMLStreamException {
   MongoDBStoreConfigurationBuilder builder = new MongoDBStoreConfigurationBuilder(persistenceConfigurationBuilder);

   while (reader.hasNext() && (reader.nextTag() != XMLStreamConstants.END_ELEMENT)) {
      Element element = Element.forName(reader.getLocalName());
      switch (element) {
         case CONNECTION: {
            this.parseConnection(reader, builder);
            break;
         }
         default: {
            Parser80.parseStoreElement(reader, builder);
         }
      }
   }
   persistenceConfigurationBuilder.addStore(builder);
}
 
开发者ID:infinispan,项目名称:infinispan-cachestore-mongodb,代码行数:19,代码来源:MongoDBCacheStoreConfigurationParser.java


示例3: parseCassandraStore

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
private void parseCassandraStore(final XMLExtendedStreamReader reader,
                                 PersistenceConfigurationBuilder persistenceBuilder) throws XMLStreamException {
   CassandraStoreConfigurationBuilder builder = new CassandraStoreConfigurationBuilder(persistenceBuilder);
   parseCassAttributes(reader, builder);

   while (reader.hasNext() && (reader.nextTag() != XMLStreamConstants.END_ELEMENT)) {
      Element element = Element.forName(reader.getLocalName());
      switch (element) {
         case CONNECTION_POOL: {
            parseConnectionPool(reader, builder.connectionPool());
            break;
         }
         case CASSANDRA_SERVER: {
            parseServer(reader, builder.addServer());
            break;
         }
         default: {
            Parser.parseStoreElement(reader, builder);
            break;
         }
      }
   }
   persistenceBuilder.addStore(builder);
}
 
开发者ID:infinispan,项目名称:infinispan-cachestore-cassandra,代码行数:25,代码来源:CassandraStoreConfigurationParser82.java


示例4: createCacheStoreConfig

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
@Override
protected PersistenceConfigurationBuilder createCacheStoreConfig(PersistenceConfigurationBuilder persistence,
      boolean preload) {
   CloudStoreConfigurationBuilder cfg = persistence.addStore(CloudStoreConfigurationBuilder.class);
   cfg.preload(preload)
      .provider(cs)
      .endpoint(csEndpoint)
      .location(csLocation)
      .identity(accessKey)
      .credential(secretKey)
      .container(csBucket)
      .compress(true);
   return persistence;
}
 
开发者ID:infinispan,项目名称:infinispan-cachestore-cloud,代码行数:15,代码来源:CloudCacheStoreFunctionalIT.java


示例5: buildCacheStoreConfig

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
@Override
protected LevelDBStoreConfigurationBuilder buildCacheStoreConfig(PersistenceConfigurationBuilder p, String discriminator) throws Exception {
   LevelDBStoreConfigurationBuilder store = p.addStore(LevelDBStoreConfigurationBuilder.class);
   store.location(tmpDir.getAbsolutePath() + File.separator + "leveldb" + File.separator + "data-" + discriminator);
   store.expiredLocation(tmpDir.getAbsolutePath() + File.separator + "leveldb" + File.separator + "expired-data-" + discriminator);
   store.implementationType(LevelDBStoreConfiguration.ImplementationType.JAVA);
   return store;
}
 
开发者ID:danberindei,项目名称:infinispan-cachestore-leveldb,代码行数:9,代码来源:LevelDBMultiCacheStoreFunctionalTest.java


示例6: createCacheStoreConfig

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
@Override
protected PersistenceConfigurationBuilder createCacheStoreConfig(PersistenceConfigurationBuilder p, boolean preload) {
   super.createStoreBuilder(p)
         .preload(preload)
         .implementationType(LevelDBStoreConfiguration.ImplementationType.JNI);
   return p;
}
 
开发者ID:danberindei,项目名称:infinispan-cachestore-leveldb,代码行数:8,代码来源:JniLevelDBStoreFunctionalTest.java


示例7: createCacheStoreConfig

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
protected LevelDBStoreConfiguration createCacheStoreConfig(PersistenceConfigurationBuilder lcb) {
   cacheManager = TestCacheManagerFactory.createCacheManager(CacheMode.LOCAL, false);
   LevelDBStoreConfigurationBuilder cfg = new LevelDBStoreConfigurationBuilder(lcb);
   cfg.location(tmpDirectory + "/data");
   cfg.expiredLocation(tmpDirectory + "/expiry");
   cfg.clearThreshold(2);
   return cfg.create();
}
 
开发者ID:danberindei,项目名称:infinispan-cachestore-leveldb,代码行数:9,代码来源:LevelDBStoreTest.java


示例8: createCacheStoreConfig

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
@Override
protected PersistenceConfigurationBuilder createCacheStoreConfig(PersistenceConfigurationBuilder persistence, boolean preload) {
   CassandraStoreConfigurationBuilder cfg = persistence.addStore(CassandraStoreConfigurationBuilder.class).preload(preload);
   cfg.autoCreateKeyspace(true);
   cfg.addServer().host("localhost");
   return persistence;
}
 
开发者ID:infinispan,项目名称:infinispan-cachestore-cassandra,代码行数:8,代码来源:CassandraStoreFunctionalTest.java


示例9: CloudStoreConfigurationBuilder

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
public CloudStoreConfigurationBuilder(PersistenceConfigurationBuilder builder) {
   super(builder);
}
 
开发者ID:infinispan,项目名称:infinispan-cachestore-cloud,代码行数:4,代码来源:CloudStoreConfigurationBuilder.java


示例10: MongoDBStoreConfigurationBuilder

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
public MongoDBStoreConfigurationBuilder(PersistenceConfigurationBuilder builder) {
   super(builder, MongoDBStoreConfiguration.attributeDefinitionSet());
}
 
开发者ID:infinispan,项目名称:infinispan-cachestore-mongodb,代码行数:4,代码来源:MongoDBStoreConfigurationBuilder.java


示例11: LevelDBStoreConfigurationBuilder

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
public LevelDBStoreConfigurationBuilder(PersistenceConfigurationBuilder builder) {
   super(builder);
}
 
开发者ID:danberindei,项目名称:infinispan-cachestore-leveldb,代码行数:4,代码来源:LevelDBStoreConfigurationBuilder.java


示例12: createCacheStoreConfig

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
@Override
protected PersistenceConfigurationBuilder createCacheStoreConfig(PersistenceConfigurationBuilder loaders, boolean preload) {
   super.createStoreBuilder(loaders).implementationType(LevelDBStoreConfiguration.ImplementationType.JAVA).preload(preload);
   return loaders;
}
 
开发者ID:danberindei,项目名称:infinispan-cachestore-leveldb,代码行数:6,代码来源:JavaLevelDBStoreFunctionalTest.java


示例13: createCacheStoreConfig

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
protected LevelDBStoreConfiguration createCacheStoreConfig(PersistenceConfigurationBuilder lcb) {
   LevelDBStoreConfigurationBuilder builder = new LevelDBStoreConfigurationBuilder(lcb);
   builder.read(super.createCacheStoreConfig(lcb));
   builder.implementationType(LevelDBStoreConfiguration.ImplementationType.JAVA);
   return builder.create();
}
 
开发者ID:danberindei,项目名称:infinispan-cachestore-leveldb,代码行数:7,代码来源:JavaLevelDBCacheStoreTest.java


示例14: createStoreBuilder

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
LevelDBStoreConfigurationBuilder createStoreBuilder(PersistenceConfigurationBuilder loaders) {
   return loaders.addStore(LevelDBStoreConfigurationBuilder.class).location(tmpDirectory + "/data").expiredLocation(tmpDirectory + "/expiry").clearThreshold(2);
}
 
开发者ID:danberindei,项目名称:infinispan-cachestore-leveldb,代码行数:4,代码来源:LevelDBStoreFunctionalTest.java


示例15: createCacheStoreConfig

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
protected LevelDBStoreConfiguration createCacheStoreConfig(PersistenceConfigurationBuilder lcb) {
   LevelDBStoreConfigurationBuilder builder = new LevelDBStoreConfigurationBuilder(lcb);
   builder.read(super.createCacheStoreConfig(lcb));
   builder.implementationType(LevelDBStoreConfiguration.ImplementationType.JNI);
   return builder.create();
}
 
开发者ID:danberindei,项目名称:infinispan-cachestore-leveldb,代码行数:7,代码来源:JniLevelDBCacheStoreTest.java


示例16: MapDBStoreConfigurationBuilder

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
public MapDBStoreConfigurationBuilder(PersistenceConfigurationBuilder builder) {
   super(builder);
}
 
开发者ID:saturnism,项目名称:infinispan-cachestore-mapdb,代码行数:4,代码来源:MapDBStoreConfigurationBuilder.java


示例17: createStoreBuilder

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
MapDBStoreConfigurationBuilder createStoreBuilder(PersistenceConfigurationBuilder loaders) {
   return loaders.addStore(MapDBStoreConfigurationBuilder.class).location(tmpDirectory);
}
 
开发者ID:saturnism,项目名称:infinispan-cachestore-mapdb,代码行数:4,代码来源:MapDBCacheStoreFunctionalTest.java


示例18: createCacheStoreConfig

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
protected MapDBStoreConfiguration createCacheStoreConfig(PersistenceConfigurationBuilder lcb) {
   cacheManager = TestCacheManagerFactory.createCacheManager(CacheMode.LOCAL, false);
   MapDBStoreConfigurationBuilder cfg = new MapDBStoreConfigurationBuilder(lcb);
   cfg.location(tmpDirectory);
   return cfg.create();
}
 
开发者ID:saturnism,项目名称:infinispan-cachestore-mapdb,代码行数:7,代码来源:MapDBCacheStoreTest.java


示例19: CassandraStoreConfigurationBuilder

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
public CassandraStoreConfigurationBuilder(PersistenceConfigurationBuilder builder) {
   super(builder, CassandraStoreConfiguration.attributeDefinitionSet());
   connectionPool = new CassandraStoreConnectionPoolConfigurationBuilder(this);
}
 
开发者ID:infinispan,项目名称:infinispan-cachestore-cassandra,代码行数:5,代码来源:CassandraStoreConfigurationBuilder.java


示例20: createCacheStoreConfig

import org.infinispan.configuration.cache.PersistenceConfigurationBuilder; //导入依赖的package包/类
protected CassandraStoreConfigurationBuilder createCacheStoreConfig(PersistenceConfigurationBuilder lcb) {
   CassandraStoreConfigurationBuilder cfg = lcb.addStore(CassandraStoreConfigurationBuilder.class).entryTable(this.getClass().getSimpleName());
   cfg.autoCreateKeyspace(true);
   cfg.addServer().host("localhost");
   return cfg;
}
 
开发者ID:infinispan,项目名称:infinispan-cachestore-cassandra,代码行数:7,代码来源:CassandraStoreTest.java



注:本文中的org.infinispan.configuration.cache.PersistenceConfigurationBuilder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java RulerGridPreferencePage类代码示例发布时间:2022-05-22
下一篇:
Java Link类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap