|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.impl.DefaultCompass
public class DefaultCompass
| Field Summary | |
|---|---|
protected CompassSettings |
settings
|
| Constructor Summary | |
|---|---|
DefaultCompass(CompassMapping mapping,
ConverterLookup converterLookup,
CompassMetaData compassMetaData,
PropertyNamingStrategy propertyNamingStrategy,
CompassSettings settings,
LuceneSearchEngineFactory searchEngineFactory)
|
|
DefaultCompass(CompassMapping mapping,
ConverterLookup converterLookup,
CompassMetaData compassMetaData,
PropertyNamingStrategy propertyNamingStrategy,
ExecutorManager executorManager,
CompassSettings settings)
|
|
DefaultCompass(CompassMapping mapping,
ConverterLookup converterLookup,
CompassMetaData compassMetaData,
PropertyNamingStrategy propertyNamingStrategy,
ExecutorManager executorManager,
CompassSettings settings,
boolean duplicate)
|
|
DefaultCompass(CompassMapping mapping,
ConverterLookup converterLookup,
CompassMetaData compassMetaData,
PropertyNamingStrategy propertyNamingStrategy,
ExecutorManager executorManager,
CompassSettings settings,
boolean duplicate,
LuceneSearchEngineFactory searchEngineFactory)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CompassSettings settings
| Constructor Detail |
|---|
public DefaultCompass(CompassMapping mapping,
ConverterLookup converterLookup,
CompassMetaData compassMetaData,
PropertyNamingStrategy propertyNamingStrategy,
ExecutorManager executorManager,
CompassSettings settings)
throws CompassException
CompassException
public DefaultCompass(CompassMapping mapping,
ConverterLookup converterLookup,
CompassMetaData compassMetaData,
PropertyNamingStrategy propertyNamingStrategy,
ExecutorManager executorManager,
CompassSettings settings,
boolean duplicate)
throws CompassException
CompassException
public DefaultCompass(CompassMapping mapping,
ConverterLookup converterLookup,
CompassMetaData compassMetaData,
PropertyNamingStrategy propertyNamingStrategy,
CompassSettings settings,
LuceneSearchEngineFactory searchEngineFactory)
throws CompassException
CompassException
public DefaultCompass(CompassMapping mapping,
ConverterLookup converterLookup,
CompassMetaData compassMetaData,
PropertyNamingStrategy propertyNamingStrategy,
ExecutorManager executorManager,
CompassSettings settings,
boolean duplicate,
LuceneSearchEngineFactory searchEngineFactory)
throws CompassException
CompassException| Method Detail |
|---|
public CompassConfiguration getConfig()
CompassCompass.rebuild() should be called.
getConfig in interface Compasspublic void rebuild()
CompassIf the rebuild fails, the Compass instance can still work and it will be based on the latest valid Compass instance that was rebuilt.
rebuild in interface Compasspublic void addRebuildEventListener(RebuildEventListener eventListener)
addRebuildEventListener in interface InternalCompasspublic void removeRebuildEventListener(RebuildEventListener eventListener)
removeRebuildEventListener in interface InternalCompasspublic Compass clone(CompassSettings addedSettings)
CompassCompass instance. The added settings will merged with the current
compass settings, and control the creation of the new Compass.
Note, that the new instance will not be registered with JNDI, as well as not start the optimizer.
clone in interface CompassaddedSettings - The settings to be added.
public String getName()
getName in interface InternalCompasspublic ResourceFactory getResourceFactory()
Compass
getResourceFactory in interface Compasspublic CompassMapping getMapping()
getMapping in interface InternalCompasspublic ExecutorManager getExecutorManager()
getExecutorManager in interface InternalCompasspublic CompassEventManager getEventManager()
getEventManager in interface InternalCompasspublic CompassSession openSession()
CompassA transactional bound session is bounded to the transaction when calling the CompassSession.beginTransaction() or if Compass tries to automatically join an already running transaction (see next paragraph).
If creating a new session, will try to automatically join an existing outer transaction. An outer transaction might be an already running Compass local transaction, or an external transaciton (JTA or Spring for example). In such cases, there is no need to perform any transaction managment code (begin or commit/rollback transaction) or closing the opened session. Compass will also bind the session to the same transaction if an outer transaction exists. Note, when doing so, the mentioned code will have to always be excuted within an already running transaction.
openSession in interface Compasspublic CompassSession openSession(boolean allowCreate)
public CompassSession openSession(boolean allowCreate,
boolean checkClosed)
openSession in interface InternalCompasspublic void start()
start in interface InternalCompasspublic void stop()
stop in interface InternalCompasspublic void close()
Compass
close in interface Compasspublic boolean isClosed()
Compasstrue if the Compass instance is already closed
isClosed in interface Compass
public Reference getReference()
throws NamingException
getReference in interface ReferenceableNamingExceptionpublic CompassSettings getSettings()
Compass
getSettings in interface CompassgetSettings in interface InternalCompasspublic SearchEngineOptimizer getSearchEngineOptimizer()
Compassstop or start), you
can check if the index need optimization, and you can optimize the index.
getSearchEngineOptimizer in interface Compasspublic SearchEngineIndexManager getSearchEngineIndexManager()
Compass
getSearchEngineIndexManager in interface Compasspublic SearchEngineSpellCheckManager getSpellCheckManager()
Compassnull if the spell check is not
enabled.
getSpellCheckManager in interface Compasspublic SearchEngineFactory getSearchEngineFactory()
getSearchEngineFactory in interface InternalCompasspublic CompassMetaData getMetaData()
getMetaData in interface InternalCompasspublic TransactionFactory getTransactionFactory()
getTransactionFactory in interface InternalCompasspublic LocalTransactionFactory getLocalTransactionFactory()
getLocalTransactionFactory in interface InternalCompasspublic ConverterLookup getConverterLookup()
getConverterLookup in interface InternalCompasspublic PropertyNamingStrategy getPropertyNamingStrategy()
getPropertyNamingStrategy in interface InternalCompass
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||