Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.lucene.cachestore
Class LuceneCacheLoaderConfig

java.lang.Object
  extended by org.infinispan.lucene.cachestore.LuceneCacheLoaderConfig
All Implemented Interfaces:
Serializable, Cloneable, CacheLoaderConfig

public final class LuceneCacheLoaderConfig
extends Object
implements CacheLoaderConfig

Configuration for a LuceneCacheLoader.

Since:
5.2
Author:
Sanne Grinovero
See Also:
Serialized Form

Field Summary
static String AUTO_CHUNK_SIZE_OPTION
           
protected  int autoChunkSize
          Auto split huge files in blocks, by default of 32MB
protected  String location
          Path of the root directory containing all indexes
static String LOCATION_OPTION
           
 
Constructor Summary
LuceneCacheLoaderConfig()
           
 
Method Summary
 void accept(ConfigurationBeanVisitor visitor)
           
 LuceneCacheLoaderConfig autoChunkSize(int autoChunkSize)
          When segment files are larger than this amount of bytes, the segment will be splitted in multiple chunks if this size.
 CacheLoaderConfig clone()
           
 String getCacheLoaderClassName()
           
 ClassLoader getClassLoader()
          Get the classloader that should be used to load resources from the classpath
 LuceneCacheLoaderConfig location(String location)
          Path to the root directory containing all indexes.
 void setCacheLoaderClassName(String s)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCATION_OPTION

public static final String LOCATION_OPTION
See Also:
Constant Field Values

AUTO_CHUNK_SIZE_OPTION

public static final String AUTO_CHUNK_SIZE_OPTION
See Also:
Constant Field Values

autoChunkSize

protected int autoChunkSize
Auto split huge files in blocks, by default of 32MB


location

protected String location
Path of the root directory containing all indexes

Constructor Detail

LuceneCacheLoaderConfig

public LuceneCacheLoaderConfig()
Method Detail

location

public LuceneCacheLoaderConfig location(String location)
Path to the root directory containing all indexes. Indexes are loaded from the immediate subdirectories of specified path, and each such subdirectory name will be the index name that must match the name parameter of a InfinispanDirectory constructor.

Parameters:
location - path to the root directory of all indexes
Returns:
this for method chaining

autoChunkSize

public LuceneCacheLoaderConfig autoChunkSize(int autoChunkSize)
When segment files are larger than this amount of bytes, the segment will be splitted in multiple chunks if this size.

Parameters:
autoChunkSize -
Returns:
this for method chaining

accept

public void accept(ConfigurationBeanVisitor visitor)
Specified by:
accept in interface CacheLoaderConfig

getCacheLoaderClassName

public String getCacheLoaderClassName()
Specified by:
getCacheLoaderClassName in interface CacheLoaderConfig

setCacheLoaderClassName

public void setCacheLoaderClassName(String s)
Specified by:
setCacheLoaderClassName in interface CacheLoaderConfig

getClassLoader

public ClassLoader getClassLoader()
Description copied from interface: CacheLoaderConfig
Get the classloader that should be used to load resources from the classpath

Specified by:
getClassLoader in interface CacheLoaderConfig

clone

public CacheLoaderConfig clone()
Specified by:
clone in interface CacheLoaderConfig
Overrides:
clone in class Object

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.