public abstract class PerApplicationExporter extends GenericService
Created: November 16 2011
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
PerApplicationExporter.MinimalBulkLoaderResults
Extends BulkLoaderResults with a minimal implementation that
 accepts a boolean "successful" flag.. 
 | 
static class  | 
PerApplicationExporter.MinimalIncrementalLoaderResults
Extends IncrementalLoaderResults with a minimal implementation. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
static java.lang.String | 
TEST_GENERATION_CONTEXT_ATTRIBUTE
A context attribute that is set if we are generating test
 XML. 
 | 
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description | 
|---|
PerApplicationExporter()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
cancel(IndexingTask pTask,
      boolean pBaseline)  | 
protected javax.servlet.Servlet | 
createAdminServlet()
Creates and returns a new Servlet that will administer this
 service. 
 | 
protected EndecaContext | 
createContext()
Create the context to use. 
 | 
protected abstract Records | 
createExportRecords(EndecaContext pContext,
                   java.util.Locale pLocale)
Create the export records for the specified locale. 
 | 
java.lang.String | 
createExportRecordsAsXML()
Return the set of export records for the default Locale in XML form. 
 | 
void | 
doStartService()
This is called after a Service has been created, placed into the
 naming hierarchy, and initialized with its configured property
 values. 
 | 
protected void | 
export(IndexingTask pTask)
Generate and export records via our DocumentSubmitter. 
 | 
void | 
exportRecords(Records pRecords,
             IndexingTask pTask,
             EndecaContext pContext)
Export the schema using the specified DocumentSubmitterSession. 
 | 
java.lang.String | 
getDefaultLanguageForRecordStores()
Returns property mDefaultLanguageForRecordStores. 
 | 
DocumentSubmitter | 
getDocumentSubmitter()
Returns property documentSubmitter. 
 | 
IndexingApplicationConfiguration | 
getIndexingApplicationConfiguration()
Returns property indexingApplicationConfiguration. 
 | 
EndecaIndexingOutputConfig | 
getIndexingOutputConfig()
Returns property indexingOutputConfig. 
 | 
java.util.Set<java.lang.String> | 
getIndexingOutputConfigPaths()  | 
java.util.Locale[] | 
getLocales()
Returns property locales. 
 | 
protected java.lang.String | 
getXmlOutputTitle()
Return the text string used as the title for the XML output in
 the HTML admin. 
 | 
protected void | 
initContext(EndecaContext pContext,
           IndexingTask pTask,
           atg.repository.search.indexing.DocumentSubmitterSession pSession,
           java.util.Locale pLocale)
Initialize the specified context object, using
 the passed in parameters. 
 | 
boolean | 
isEchoRecordsToStdout()
Returns property echoRecordsToStdout. 
 | 
boolean | 
isForceToBaseline()
The method is called before starting partial indexing job for all Indexable
 to allow forcing the job to baseline indexing. 
 | 
boolean | 
isNeededForIncremental()  | 
boolean | 
isSingleLanguageOverride()
Whether or not we are saving things to a single language
 record store, regardless of locale. 
 | 
boolean | 
isSupportsStatusCounts()  | 
boolean | 
mayNeedCleanup()  | 
atg.repository.search.indexing.BulkLoaderResults | 
performBaselineUpdate(IndexingTask pTask)  | 
atg.repository.search.indexing.LoaderResults | 
performPartialUpdate(IndexingTask pTask)  | 
void | 
postIndexingCleanup(IndexingTask pTask,
                   boolean pSuccess,
                   atg.repository.search.indexing.LoaderResults pResults)  | 
protected void | 
restoreDynamoRequestLocale(java.lang.Object pRestoreValue)
Restore the current dynamo request locale. 
 | 
void | 
setDefaultLanguageForRecordStores(java.lang.String pDefaultLanguageForRecordStores)
Sets property mDefaultLanguageForRecordStores. 
 | 
void | 
setDocumentSubmitter(DocumentSubmitter pDocumentSubmitter)
Sets property documentSubmitter. 
 | 
protected java.lang.Object | 
setDynamoRequestLocale(java.util.Locale pLocale)
Set the current dynamo request locale, possibly setting a
 fake current local request. 
 | 
void | 
setEchoRecordsToStdout(boolean pEchoRecordsToStdout)
Sets property echoRecordsToStdout. 
 | 
void | 
setIndexables(Indexable[] pIndexables)  | 
void | 
setIndexingApplicationConfiguration(IndexingApplicationConfiguration pIndexingApplicationConfiguration)
Sets property indexingApplicationConfiguration. 
 | 
void | 
setIndexingOutputConfig(EndecaIndexingOutputConfig pIndexingOutputConfig)
Sets property indexingOutputConfig. 
 | 
addLogListener, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static java.lang.String CLASS_VERSION
public static final java.lang.String TEST_GENERATION_CONTEXT_ATTRIBUTE
public void setDefaultLanguageForRecordStores(java.lang.String pDefaultLanguageForRecordStores)
public java.lang.String getDefaultLanguageForRecordStores()
public boolean isSingleLanguageOverride()
public java.util.Locale[] getLocales()
public void setIndexingApplicationConfiguration(IndexingApplicationConfiguration pIndexingApplicationConfiguration)
@NotNull public IndexingApplicationConfiguration getIndexingApplicationConfiguration()
public void setEchoRecordsToStdout(boolean pEchoRecordsToStdout)
public boolean isEchoRecordsToStdout()
public void setDocumentSubmitter(DocumentSubmitter pDocumentSubmitter)
@NotNull public DocumentSubmitter getDocumentSubmitter()
public void setIndexingOutputConfig(EndecaIndexingOutputConfig pIndexingOutputConfig)
public EndecaIndexingOutputConfig getIndexingOutputConfig()
protected void export(IndexingTask pTask) throws IndexingException
pTask - the current indexing task. May be null if
 there is no current IndexingTask.IndexingExceptionprotected EndecaContext createContext()
protected void initContext(EndecaContext pContext, IndexingTask pTask, atg.repository.search.indexing.DocumentSubmitterSession pSession, java.util.Locale pLocale)
pContext - the context to initializepTask - our indexing taskpSession - our document submitter sessionpLocale - the locale to use for the current document locale.public void exportRecords(Records pRecords, IndexingTask pTask, EndecaContext pContext) throws IndexingException
pRecords - the records to export. If null, will generate
  records using createExportRecords().pTask - the current indexing task. May be null
  if called outside of an IndexingPhase.pContext - the EndecaContext to use. Must have a session on it.IndexingException - if there's a problemprotected abstract Records createExportRecords(EndecaContext pContext, java.util.Locale pLocale) throws IndexingException
pContext - the current indexing context.pLocale - to locale for which to generate records.IndexingException - if there is a problempublic atg.repository.search.indexing.LoaderResults performPartialUpdate(IndexingTask pTask) throws IndexingException
IndexingExceptionpublic atg.repository.search.indexing.BulkLoaderResults performBaselineUpdate(IndexingTask pTask) throws IndexingException
IndexingExceptionpublic boolean isNeededForIncremental()
public void postIndexingCleanup(IndexingTask pTask, boolean pSuccess, atg.repository.search.indexing.LoaderResults pResults)
public boolean mayNeedCleanup()
public boolean cancel(IndexingTask pTask, boolean pBaseline) throws IndexingException
IndexingExceptionpublic boolean isSupportsStatusCounts()
public void doStartService()
                    throws ServiceException
GenericServicedoStartService in class GenericServiceServiceException - if the Service had a problem starting upprotected java.lang.Object setDynamoRequestLocale(java.util.Locale pLocale)
pLocale - the locale to set.protected void restoreDynamoRequestLocale(java.lang.Object pRestoreValue)
pRestoreValue - the restore value returned by setDynamoRequestLocale.public java.lang.String createExportRecordsAsXML()
                                          throws IndexingException
IndexingException - if a problem occurredpublic java.util.Set<java.lang.String> getIndexingOutputConfigPaths()
public boolean isForceToBaseline()
true if the job should be forced to baseline.protected javax.servlet.Servlet createAdminServlet()
GenericServicecreateAdminServlet in class GenericServicepublic void setIndexables(Indexable[] pIndexables)
protected java.lang.String getXmlOutputTitle()