| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.endeca.index.DeleteMissingIndexingSynchronization
public class DeleteMissingIndexingSynchronization
This IndexingSynchronization stores all generated IDs to a file, and then later, on a non-baseline index, issues a delete for those IDs not regenerated during the current session.
Created: January 06 2012
| Field Summary | |
|---|---|
| static java.lang.String | ATTR_FILEThe calculated name of the file. | 
| static java.lang.String | ATTR_IDSThe attribute name for the set of IDs which are both stored on the context, and stored on the IndexingTask. | 
| static java.lang.String | CLASS_VERSIONClass version string | 
| Fields inherited from class atg.nucleus.GenericService | 
|---|
| SERVICE_INFO_KEY | 
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging | 
|---|
| DEFAULT_LOG_TRACE_STATUS | 
| Fields inherited from interface atg.nucleus.logging.ApplicationLogging | 
|---|
| DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS | 
| Constructor Summary | |
|---|---|
| DeleteMissingIndexingSynchronization() | |
| Method Summary | |
|---|---|
|  void | afterDocument(atg.repository.search.indexing.Context pContext) | 
|  void | afterSessionStart(atg.repository.search.indexing.Context pContext)This method is invoked immediately after a DocumentSubmitter session is started. | 
|  void | beforeSessionEnd(atg.repository.search.indexing.Context pContext)This method is invoked immediately before a DocumentSubmitter session is closed. | 
|  void | cleanup(IndexingTask pTask,
        boolean pSuccess) | 
| protected  PersistUtils | createPersistUtils()Create a new PersistUtils instance. | 
| protected  IndexingTask | getIndexingTask(atg.repository.search.indexing.Context pContext)Get the indexing task. | 
|  java.io.File | getPersistIdsDir()Returns property persistIdsDir. | 
| protected  java.io.File | getPersistIdsFile(atg.repository.search.indexing.Context pContext,
                  IndexingTask pTask)Get the file name to persist IDss. | 
|  java.util.Set<java.lang.String> | getPreviouslyPersistedIds(atg.repository.search.indexing.Context pContext)Get the IDs previously persisted, reads from the persistIdsFile. | 
| protected  void | persistIds(atg.repository.search.indexing.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. | 
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl | 
|---|
| vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String ATTR_IDS
public static final java.lang.String ATTR_FILE
| Constructor Detail | 
|---|
public DeleteMissingIndexingSynchronization()
| Method Detail | 
|---|
public void setPersistIdsDir(java.io.File pPersistIdsDir)
public java.io.File getPersistIdsDir()
public void afterSessionStart(atg.repository.search.indexing.Context pContext)
                       throws atg.repository.search.indexing.IndexingException
pContext - the Context for the current indexing operation. The
 DocumentSubmitterSession is available as a property, as is
 the IndexingOutputConfig and other state information.
atg.repository.search.indexing.IndexingException
protected java.io.File getPersistIdsFile(atg.repository.search.indexing.Context pContext,
                                         IndexingTask pTask)
pContext - the current indexing ContextpTask - the current IndexingTaskprotected PersistUtils createPersistUtils()
public java.util.Set<java.lang.String> getPreviouslyPersistedIds(atg.repository.search.indexing.Context pContext)
                                                          throws atg.repository.search.indexing.IndexingException
pContext - the current context, if any.
atg.repository.search.indexing.IndexingException
public void beforeSessionEnd(atg.repository.search.indexing.Context pContext)
                      throws atg.repository.search.indexing.IndexingException
pContext - the Context for the current indexing operation. The
 DocumentSubmitterSession is available as a property, as is
 the IndexingOutputConfig and other state information.
atg.repository.search.indexing.IndexingExceptionprotected IndexingTask getIndexingTask(atg.repository.search.indexing.Context pContext)
pContext - the current indexing context.
protected void persistIds(atg.repository.search.indexing.Context pContext,
                          IndexingTask pTask,
                          java.util.Set<java.lang.String> pSetIds)
                   throws atg.repository.search.indexing.IndexingException
pContext - the current contextpTask - the current indexing task.pSetIds - the set of IDs to persist.
atg.repository.search.indexing.IndexingException
public void afterDocument(atg.repository.search.indexing.Context pContext)
                   throws atg.repository.search.indexing.IndexingException
atg.repository.search.indexing.IndexingException
public void cleanup(IndexingTask pTask,
                    boolean pSuccess)
             throws atg.repository.search.indexing.IndexingException
atg.repository.search.indexing.IndexingException| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||