public class DeleteMissingIndexingSynchronization extends GenericService implements atg.endeca.index.PerDocumentIndexingSynchronization
Created: January 06 2012
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
ATTR_FILE
The calculated name of the file. 
 | 
static java.lang.String | 
ATTR_IDS
The attribute name for the set of IDs which are both stored
 on the context, and stored on the IndexingTask. 
 | 
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description | 
|---|
DeleteMissingIndexingSynchronization()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
afterDocument(Context pContext)  | 
void | 
afterSessionStart(Context pContext)
This method is invoked immediately after a DocumentSubmitter session
 is started. 
 | 
void | 
beforeSessionEnd(Context pContext)
This method is invoked immediately before a DocumentSubmitter session
 is closed. 
 | 
void | 
cleanup(IndexingTask pTask,
       boolean pSuccess)  | 
protected atg.endeca.index.PersistUtils | 
createPersistUtils()
Create a new PersistUtils instance. 
 | 
protected IndexingTask | 
getIndexingTask(Context pContext)
Get the indexing task. 
 | 
java.io.File | 
getPersistIdsDir()
Returns property persistIdsDir. 
 | 
protected java.io.File | 
getPersistIdsFile(Context pContext,
                 IndexingTask pTask)
Get the file name to persist IDss. 
 | 
java.util.Set<java.lang.String> | 
getPreviouslyPersistedIds(Context pContext)
Get the IDs previously persisted, reads from the persistIdsFile. 
 | 
protected void | 
persistIds(Context pContext,
          IndexingTask pTask,
          java.util.Set<java.lang.String> pSetIds)
Persist IDs to a file. 
 | 
void | 
setPersistIdsDir(java.io.File pPersistIdsDir)
Sets property persistIdsDir. 
 | 
addLogListener, createAdminServlet, doStartService, 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, stopService, toStringvlogDebug, 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 ATTR_IDS
public static final java.lang.String ATTR_FILE
public DeleteMissingIndexingSynchronization()
public void setPersistIdsDir(java.io.File pPersistIdsDir)
public java.io.File getPersistIdsDir()
public void afterSessionStart(Context pContext) throws IndexingException
afterSessionStart in interface atg.repository.search.indexing.IndexingSynchronizationpContext - the Context for the current indexing operation. The
 DocumentSubmitterSession is available as a property, as is
 the IndexingOutputConfig and other state information.IndexingExceptionprotected java.io.File getPersistIdsFile(Context pContext, IndexingTask pTask)
pContext - the current indexing ContextpTask - the current IndexingTaskprotected atg.endeca.index.PersistUtils createPersistUtils()
public java.util.Set<java.lang.String> getPreviouslyPersistedIds(Context pContext) throws IndexingException
pContext - the current context, if any.IndexingExceptionpublic void beforeSessionEnd(Context pContext) throws IndexingException
beforeSessionEnd in interface atg.repository.search.indexing.IndexingSynchronizationpContext - the Context for the current indexing operation. The
 DocumentSubmitterSession is available as a property, as is
 the IndexingOutputConfig and other state information.IndexingExceptionprotected IndexingTask getIndexingTask(Context pContext)
pContext - the current indexing context.protected void persistIds(Context pContext, IndexingTask pTask, java.util.Set<java.lang.String> pSetIds) throws IndexingException
pContext - the current contextpTask - the current indexing task.pSetIds - the set of IDs to persist.IndexingExceptionpublic void afterDocument(Context pContext) throws IndexingException
afterDocument in interface atg.endeca.index.PerDocumentIndexingSynchronizationIndexingExceptionpublic void cleanup(IndexingTask pTask, boolean pSuccess) throws IndexingException
cleanup in interface atg.endeca.index.PerDocumentIndexingSynchronizationIndexingException