|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object RecordSubmitterImpl atg.endeca.index.RecordStoreDocumentSubmitter
public class RecordStoreDocumentSubmitter
A document submitter that sends documents to an CAS record store. Depends upon the IndexingOutputConfig being an EndecaIndexingOutputConfig and creating a RecordStoreDocumentSubmitterSession. Selects a CAS record store using an RecordStoreAggregateSessionImpl instance, so may send to multiple record stores (based on current locale) in a single session.
Created: November 04 2011
EndecaIndexingOutputConfig
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string from source code control system. |
Fields inherited from interface atg.repository.search.indexing.DocumentSubmitter |
---|
INDEXING_MODE_FULL, INDEXING_MODE_INCREMENTAL |
Constructor Summary | |
---|---|
RecordStoreDocumentSubmitter()
|
Method Summary | |
---|---|
protected AbstractRecordStoreAggregateSession |
createSession(java.lang.String pIndexingMode)
Create an instance of RecordStoreAggregateSessionImpl. |
void |
doStartService()
This is called after a Service has been created, placed into the naming hierarchy, and initialized with its configured property values. |
java.lang.String |
getCASHostName()
Returns property CASHostName. |
int |
getCASPort()
Returns property CASPort. |
java.lang.String |
getDefaultRecordStoreName()
The "default" record store name. |
java.lang.String |
getEndecaBaseApplicationName()
Returns property endecaBaseApplicationName. |
java.lang.String |
getEndecaDataStoreType()
Returns property endecaDataStoreType. |
java.lang.String |
getIdPropertyName()
Returns property idPropertyName. |
protected java.lang.String |
getLanguageNameForLocale(java.util.Locale pLocale)
Returns the language code of given locale |
java.io.File |
getPersistVariantSuffixesDir()
Returns property persistVariantSuffixesDir. |
java.lang.String |
getRecordStoreName(java.util.Locale pLocale)
Build up the record store name from endecaBaseApplicationName + "_" + the language of the passed in locale + endecaDataStoreType. |
java.lang.String |
getRecordStoreNameFormatString()
Returns property recordStoreNameFormatString. |
protected void |
initSession(AbstractRecordStoreAggregateSession pSession,
java.lang.String pIndexingMode)
Initialize our session created by createSession(). |
boolean |
isEnabled()
Returns property enabled. |
boolean |
isFlushAfterEveryRecord()
Returns property flushAfterEveryRecord. |
boolean |
isPersistVariantsPerRepositoryId()
Returns property persistVariantsPerRepositoryId. |
boolean |
isResetActive()
|
void |
setCASHostName(java.lang.String pCASHostName)
Sets property CASHostName. |
void |
setCASPort(int pCASPort)
Sets property CASPort. |
void |
setEnabled(boolean pEnabled)
Sets property enabled. |
void |
setEndecaBaseApplicationName(java.lang.String pEndecaBaseApplicationName)
Sets property endecaBaseApplicationName. |
void |
setEndecaDataStoreType(java.lang.String pEndecaDataStoreType)
Sets property endecaDataStoreType. |
void |
setFlushAfterEveryRecord(boolean pFlushAfterEveryRecord)
Sets property flushAfterEveryRecord. |
void |
setIdPropertyName(java.lang.String pIdPropertyName)
Sets property idPropertyName. |
void |
setPersistVariantsPerRepositoryId(boolean pPersistVariantsPerRepositoryId)
Sets property persistVariantsPerRepositoryId. |
void |
setPersistVariantSuffixesDir(java.io.File pPersistVariantSuffixesDir)
Sets property persistVariantSuffixesDir. |
void |
setRecordStoreNameFormatString(java.lang.String pRecordStoreNameFormatString)
Sets property recordStoreNameFormatString. |
void |
setResetActive(boolean pResetActive)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface atg.repository.search.indexing.DocumentSubmitter |
---|
beginSession, cancelSession, endSession |
Field Detail |
---|
public static final java.lang.String CLASS_VERSION
Constructor Detail |
---|
public RecordStoreDocumentSubmitter()
Method Detail |
---|
public void setCASHostName(java.lang.String pCASHostName)
public java.lang.String getCASHostName()
public void setCASPort(int pCASPort)
public int getCASPort()
public void setEndecaBaseApplicationName(java.lang.String pEndecaBaseApplicationName)
public java.lang.String getEndecaBaseApplicationName()
public void setEndecaDataStoreType(java.lang.String pEndecaDataStoreType)
public java.lang.String getEndecaDataStoreType()
public void setIdPropertyName(java.lang.String pIdPropertyName)
public java.lang.String getIdPropertyName()
public void setFlushAfterEveryRecord(boolean pFlushAfterEveryRecord)
public boolean isFlushAfterEveryRecord()
public boolean isResetActive()
public void setResetActive(boolean pResetActive)
protected java.lang.String getLanguageNameForLocale(java.util.Locale pLocale)
pLocale
- - localepublic java.lang.String getRecordStoreName(java.util.Locale pLocale)
pLocale
- the locale to use for the language name. If null,
the property defaultLocale will be used instead.public java.lang.String getDefaultRecordStoreName()
public void setEnabled(boolean pEnabled)
public boolean isEnabled()
public void setPersistVariantSuffixesDir(java.io.File pPersistVariantSuffixesDir)
public java.io.File getPersistVariantSuffixesDir()
public void setPersistVariantsPerRepositoryId(boolean pPersistVariantsPerRepositoryId)
public boolean isPersistVariantsPerRepositoryId()
public void setRecordStoreNameFormatString(java.lang.String pRecordStoreNameFormatString)
public java.lang.String getRecordStoreNameFormatString()
public void doStartService() throws ServiceException
ServiceException
- if the Service had a problem starting up
hidden: trueprotected AbstractRecordStoreAggregateSession createSession(java.lang.String pIndexingMode) throws atg.repository.search.indexing.IndexingException
pIndexingMode
- the indexing mode to use for the session
atg.repository.search.indexing.IndexingException
protected void initSession(AbstractRecordStoreAggregateSession pSession, java.lang.String pIndexingMode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |