public class DeleteMissingIndexingSynchronization extends GenericService
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_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_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 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
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public 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
pContext
- the Context for the current indexing operation. The
DocumentSubmitterSession
is available as a property, as is
the IndexingOutputConfig
and other state information.IndexingException
protected java.io.File getPersistIdsFile(Context pContext, IndexingTask pTask)
pContext
- the current indexing ContextpTask
- the current IndexingTaskprotected PersistUtils createPersistUtils()
public java.util.Set<java.lang.String> getPreviouslyPersistedIds(Context pContext) throws IndexingException
pContext
- the current context, if any.IndexingException
public void beforeSessionEnd(Context pContext) throws IndexingException
pContext
- the Context for the current indexing operation. The
DocumentSubmitterSession
is available as a property, as is
the IndexingOutputConfig
and other state information.IndexingException
protected 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.IndexingException
public void afterDocument(Context pContext) throws IndexingException
IndexingException
public void cleanup(IndexingTask pTask, boolean pSuccess) throws IndexingException
IndexingException