public class AnalysisDocumentProcessingContext extends java.lang.Object implements DocumentProcessingContext
Modifier and Type | Class and Description |
---|---|
static class |
AnalysisDocumentProcessingContext.Error |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<AnalysisDocumentProcessingContext.Error> |
errors |
Constructor and Description |
---|
AnalysisDocumentProcessingContext() |
AnalysisDocumentProcessingContext(java.lang.String buildGroup,
java.lang.String dataModel,
com.exalead.indexing.analysis.v10.AnalysisPipeline pipe,
java.lang.String blacklistPath) |
AnalysisDocumentProcessingContext(java.lang.String buildGroup,
java.lang.String dataModel,
com.exalead.indexing.analysis.v10.AnalysisPipeline pipe,
java.lang.String blacklistPath,
boolean testing) |
AnalysisDocumentProcessingContext(java.lang.String buildGroup,
exa.io2.fs.WormFS buildGroupFS,
java.lang.String dataModel,
com.exalead.indexing.analysis.v10.AnalysisPipeline pipe,
java.lang.String blacklistPath) |
AnalysisDocumentProcessingContext(java.lang.String buildGroup,
exa.io2.fs.WormFS buildGroupFS,
java.lang.String dataModel,
com.exalead.indexing.analysis.v10.AnalysisPipeline pipe,
java.lang.String blacklistPath,
boolean testing) |
Modifier and Type | Method and Description |
---|---|
void |
addDocumentProcessorListener(DocumentProcessorListener listener) |
void |
debug(ProcessableDocument doc,
int code,
java.lang.String message,
java.lang.Throwable t)
Log a debug information when processing this document.
|
void |
error(ProcessableDocument doc,
int code,
java.lang.String message,
java.lang.Throwable t)
Log an error when processing this document.
|
void |
fireDocumentProcessorConditionTested(java.lang.String docProcName,
ProcessableDocument document,
DocumentProcessingContext context,
boolean matched) |
void |
fireDocumentProcessorProcessingFinished(java.lang.String docProcName,
ProcessableDocument document,
DocumentProcessingContext context) |
void |
fireDocumentProcessorProcessingStarted(java.lang.String docProcName,
ProcessableDocument document,
DocumentProcessingContext context) |
java.lang.String |
getCurrentBuildGroup()
Get the current job associated buildGroup name
|
exa.io2.fs.WormFS |
getCurrentBuildGroupWormFS()
Get the current
WormFS associated with the build group. |
java.lang.String |
getCurrentDataModel()
Get the current job associated dataModel name
|
java.lang.String |
getCurrentPipeline()
Get the current job associated pipeline name
|
java.util.List<AnalysisDocumentProcessingContext.Error> |
getErrors() |
com.exalead.ndoc.NativeDocumentProcessingContext |
getNativeContext() |
void |
info(ProcessableDocument doc,
int code,
java.lang.String message,
java.lang.Throwable t)
Log an information when processing this document.
|
boolean |
isTesting()
Returns true if the pipeline is under test, false otherwise.
|
void |
removeDocumentProcessorListener(DocumentProcessorListener listener) |
void |
reset()
To be called after the processing of each doc
|
void |
resetContinueStatus() |
void |
setErrorGenerator(java.lang.String generator) |
boolean |
shouldContinueOnError() |
boolean |
shouldStopProcessing() |
void |
stopProcessingAfterCurrentProcessor()
When called the document will not go through the following processors in the pipeline.
|
void |
warn(ProcessableDocument doc,
int code,
java.lang.String message,
java.lang.Throwable t)
Log a warning when processing this document.
|
protected java.util.List<AnalysisDocumentProcessingContext.Error> errors
public AnalysisDocumentProcessingContext()
public AnalysisDocumentProcessingContext(java.lang.String buildGroup, java.lang.String dataModel, com.exalead.indexing.analysis.v10.AnalysisPipeline pipe, java.lang.String blacklistPath)
public AnalysisDocumentProcessingContext(java.lang.String buildGroup, java.lang.String dataModel, com.exalead.indexing.analysis.v10.AnalysisPipeline pipe, java.lang.String blacklistPath, boolean testing)
public AnalysisDocumentProcessingContext(java.lang.String buildGroup, exa.io2.fs.WormFS buildGroupFS, java.lang.String dataModel, com.exalead.indexing.analysis.v10.AnalysisPipeline pipe, java.lang.String blacklistPath)
public AnalysisDocumentProcessingContext(java.lang.String buildGroup, exa.io2.fs.WormFS buildGroupFS, java.lang.String dataModel, com.exalead.indexing.analysis.v10.AnalysisPipeline pipe, java.lang.String blacklistPath, boolean testing)
public java.util.List<AnalysisDocumentProcessingContext.Error> getErrors()
public void setErrorGenerator(java.lang.String generator)
public void debug(ProcessableDocument doc, int code, java.lang.String message, java.lang.Throwable t)
DocumentProcessingContext
debug
in interface DocumentProcessingContext
public void error(ProcessableDocument doc, int code, java.lang.String message, java.lang.Throwable t)
DocumentProcessingContext
error
in interface DocumentProcessingContext
public void info(ProcessableDocument doc, int code, java.lang.String message, java.lang.Throwable t)
DocumentProcessingContext
info
in interface DocumentProcessingContext
public void warn(ProcessableDocument doc, int code, java.lang.String message, java.lang.Throwable t)
DocumentProcessingContext
warn
in interface DocumentProcessingContext
public boolean shouldContinueOnError()
shouldContinueOnError
in interface DocumentProcessingContext
public com.exalead.ndoc.NativeDocumentProcessingContext getNativeContext()
public java.lang.String getCurrentBuildGroup()
DocumentProcessingContext
getCurrentBuildGroup
in interface DocumentProcessingContext
public java.lang.String getCurrentDataModel()
DocumentProcessingContext
getCurrentDataModel
in interface DocumentProcessingContext
public exa.io2.fs.WormFS getCurrentBuildGroupWormFS()
DocumentProcessingContext
WormFS
associated with the build group.getCurrentBuildGroupWormFS
in interface DocumentProcessingContext
WormFS
associated with the build group.public boolean isTesting()
DocumentProcessingContext
isTesting
in interface DocumentProcessingContext
public java.lang.String getCurrentPipeline()
DocumentProcessingContext
getCurrentPipeline
in interface DocumentProcessingContext
public void addDocumentProcessorListener(DocumentProcessorListener listener)
public void removeDocumentProcessorListener(DocumentProcessorListener listener)
public void fireDocumentProcessorProcessingStarted(java.lang.String docProcName, ProcessableDocument document, DocumentProcessingContext context)
public void fireDocumentProcessorConditionTested(java.lang.String docProcName, ProcessableDocument document, DocumentProcessingContext context, boolean matched)
public void fireDocumentProcessorProcessingFinished(java.lang.String docProcName, ProcessableDocument document, DocumentProcessingContext context)
public void stopProcessingAfterCurrentProcessor()
public boolean shouldStopProcessing()
public void resetContinueStatus()
public void reset()
Copyright © 2013 Dassault Systèmes, All Rights Reserved.