public class DirectoryFactory extends Object implements LuceneIndexFactory
| Constructor and Description |
|---|
DirectoryFactory(DirectoryType type,
org.apache.lucene.analysis.Analyzer analyzer) |
DirectoryFactory(DirectoryType type,
org.apache.lucene.analysis.Analyzer analyzer,
File hostingDir) |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
clusterIdOf(File file) |
static File |
defaultHostingDir() |
void |
dispose() |
Map<? extends KCluster,? extends LuceneIndex> |
getIndexes() |
protected void |
loadIndexes(DirectoryType type,
org.apache.lucene.analysis.Analyzer analyzer,
File hostingDir) |
LuceneIndex |
newCluster(KCluster kcluster) |
void |
remove(KCluster cluster) |
public DirectoryFactory(DirectoryType type, org.apache.lucene.analysis.Analyzer analyzer)
public DirectoryFactory(DirectoryType type, org.apache.lucene.analysis.Analyzer analyzer, File hostingDir)
protected void loadIndexes(DirectoryType type, org.apache.lucene.analysis.Analyzer analyzer, File hostingDir)
public static File defaultHostingDir()
public LuceneIndex newCluster(KCluster kcluster)
newCluster in interface LuceneIndexFactorypublic void remove(KCluster cluster)
remove in interface LuceneIndexFactorypublic Map<? extends KCluster,? extends LuceneIndex> getIndexes()
getIndexes in interface LuceneIndexFactorypublic void dispose()
dispose in interface org.uberfire.commons.lifecycle.DisposableCopyright © 2012–2019 JBoss by Red Hat. All rights reserved.