public class CasProcessorCpeObject extends MetaDataObject_impl implements CpeCasProcessor
| Constructor and Description |
|---|
CasProcessorCpeObject() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDefaults()
Adds default configuration shared by CasProcessors
|
void |
addDeployParam(java.lang.String aParamName,
java.lang.String aParamValue)
Adds a given deployment param to the param list.
|
void |
buildFromXMLElement(org.w3c.dom.Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions)
Overridden to read "name" and "value" attributes.
|
java.lang.String |
getActionOnMaxError()
Return action associated with CasProcessor error tolerance.
|
java.lang.String |
getActionOnMaxRestart()
Return action associated with CasProcessor restart tolerance.
|
int |
getBatchSize()
Returns a batch size associated with this CasProcessor
|
java.lang.String |
getCasProcessorFilter()
Returns filter string associated with this CasProcessor
|
CpeCheckpoint |
getCheckpoint()
Returns
CpeCheckpoint object containing checkpoint
configuration ( checkpoint file, frequency of checkpoints ) |
CasProcessorConfigurationParameterSettings |
getConfigurationParameterSettings()
Returns configuration parameter settings for this CasProcessor.
|
CpeComponentDescriptor |
getCpeComponentDescriptor()
Returns the
CpeComponentDescriptor instance associated with this Cas Processor. |
java.lang.String |
getDeployment()
Returns deployment type associated with this CasProcessor.
|
CasProcessorDeploymentParams |
getDeploymentParameters() |
CasProcessorDeploymentParams |
getDeploymentParams()
Returns deployment parameters for this CasProcessor.
|
java.lang.String |
getDescriptor()
Deprecated.
Doesn't support the new import syntax. Use getCpeComponentDescriptor().findAbsoluteUrl() instead.
|
CasProcessorErrorHandling |
getErrorHandling()
Returns
CasProcessorErrorHandling object containing
strategies to deal with errors that may occur during processing. |
CasProcessorFilter |
getFilter() |
boolean |
getIsParallelizable() |
int |
getMaxErrorCount()
Associates a threshold for maximum error tolerance.
|
int |
getMaxErrorSampleSize()
Returns error sample size.
|
int |
getMaxRestartCount()
Returns max restart tolerance for this CasProcessor.
|
java.lang.String |
getName()
Returns a name of this CasProcessor
|
Parameter[] |
getParameters() |
ConfigurationParameterSettings |
getParameterSettings() |
CasProcessorRunInSeperateProcess |
getRunInSeparateProcess() |
java.lang.String |
getSOFA()
Deprecated.
(non-Javadoc)
|
CpeSofaMappings |
getSofaNameMappings() |
int |
getTimeout()
Returns max millis to wait for CasProcessor response
|
protected org.xml.sax.helpers.AttributesImpl |
getXMLAttributes()
Overridden to handle "name" and "value" attributes.
|
protected XmlizationInfo |
getXmlizationInfo()
To be implemented by subclasses to return information describing how to represent this object
in XML.
|
void |
setActionOnMaxError(java.lang.String aAction)
Associates action in the event the errors exceed max tolerance.
|
void |
setActionOnMaxRestart(java.lang.String aAction)
Associates action in the event CasProcessor restarts exceed max tolerance.
|
void |
setBatchSize(int aBatchSize)
Associates a batch size with this CasProcessor.
|
void |
setCasProcessorFilter(CasProcessorFilter aFilter) |
void |
setCasProcessorFilter(java.lang.String aFilterExpression)
Associates a filter string with this CasProcessor.
|
void |
setCheckpoint(CpeCheckpoint checkpoint) |
void |
setConfigurationParameterSettings(CasProcessorConfigurationParameterSettings settings)
Sets configuration parameter settings for this CasProcessor.
|
void |
setCpeComponentDescriptor(CpeComponentDescriptor aDescriptor)
Sets the
CpeComponentDescriptor instance associated with this Cas Processor. |
void |
setDeployment(java.lang.String aDeployMode)
Associates deployment type with for this CasProcessor.
|
void |
setDeploymentParameters(CasProcessorDeploymentParams parameters) |
protected void |
setDeploymentParams(CasProcessorDeploymentParams aParams) |
void |
setDescriptor(java.lang.String aDescriptorPath)
Associates a given descriptor path with this CasProcessor
|
void |
setErrorHandling(CasProcessorErrorHandling aErrorHandling) |
void |
setFilter(CasProcessorFilter aFilter) |
void |
setIsParallelizable(boolean isP) |
void |
setMaxErrorCount(int aErrorCount)
Associates a threshold for maximum error tolerance.
|
void |
setMaxErrorSampleSize(int aErrorSampleSize)
Associates a threshold for maximum error tolerance.
|
void |
setMaxRestartCount(int aRestartCount)
Associates max tolerance for CasProcessor restarts.
|
void |
setName(java.lang.String aName)
Associates a name with this CasProcessor
|
void |
setParameters(Parameter[] aparameters) |
void |
setParameterSettings(ConfigurationParameterSettings settings) |
void |
setRunInSeparateProcess(CasProcessorRunInSeperateProcess process) |
void |
setSOFA(java.lang.String aSoFa)
Deprecated.
|
void |
setSofaNameMappings(CpeSofaMappings mappings) |
void |
setTimeout(int aTimeoutValue)
Associates timeout in terms of ms, with this CasProcessor.
|
buildFromXMLElement, clone, equals, getAttributeClass, getAttributeValue, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSourceUrl, getSourceUrlString, getWrapperClass, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, setAttributeValue, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElementfinalize, getClass, notify, notifyAll, wait, wait, waitclone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlpublic void setDeployment(java.lang.String aDeployMode)
throws CpeDescriptorException
aDeployMode - -
String identifying deployment typeCpeDescriptorException - -
if invalid deployment type is providedpublic java.lang.String getDeployment()
getDeployment in interface CpeCasProcessorpublic void setDescriptor(java.lang.String aDescriptorPath)
throws CpeDescriptorException
setDescriptor in interface CpeCasProcessoraDescriptorPath - -
path to the descriptorCpeDescriptorException@Deprecated public java.lang.String getDescriptor()
getDescriptor in interface CpeCasProcessorpublic CpeComponentDescriptor getCpeComponentDescriptor()
CpeComponentDescriptor instance associated with this Cas Processor. That
object contains a path to the component descriptor.getCpeComponentDescriptor in interface CpeCasProcessorCpeComponentDescriptor instancepublic void setCasProcessorFilter(java.lang.String aFilterExpression)
setCasProcessorFilter in interface CpeCasProcessoraFilterExpression - -
String containing a filterpublic java.lang.String getCasProcessorFilter()
getCasProcessorFilter in interface CpeCasProcessorprotected void addDefaults()
throws CpeDescriptorException
CpeDescriptorExceptionpublic void setBatchSize(int aBatchSize)
setBatchSize in interface CpeCasProcessoraBatchSize - -
batch size of this CasProcessorpublic int getBatchSize()
getBatchSize in interface CpeCasProcessorpublic void addDeployParam(java.lang.String aParamName,
java.lang.String aParamValue)
throws CpeDescriptorException
addDeployParam in interface CpeCasProcessoraParamName - -
name of the new parameteraParamValue - -
value of the new parameterCpeDescriptorExceptionprotected void setDeploymentParams(CasProcessorDeploymentParams aParams) throws CpeDescriptorException
aParams - CpeDescriptorExceptionpublic CasProcessorDeploymentParams getDeploymentParams()
getDeploymentParams in interface CpeCasProcessorinstancepublic void setName(java.lang.String aName)
throws CpeDescriptorException
setName in interface CpeCasProcessoraName - -
name as stringCpeDescriptorExceptionpublic java.lang.String getName()
getName in interface CpeCasProcessor@Deprecated
public void setSOFA(java.lang.String aSoFa)
throws CpeDescriptorException
setSOFA in interface CpeCasProcessoraSoFa - CpeDescriptorException@Deprecated public java.lang.String getSOFA()
getSOFA in interface CpeCasProcessorCpeCasProcessor.getSOFA()public void setCpeComponentDescriptor(CpeComponentDescriptor aDescriptor) throws CpeDescriptorException
CpeCasProcessorCpeComponentDescriptor instance associated with this Cas Processor. That
object contains a path to the component descriptor.setCpeComponentDescriptor in interface CpeCasProcessoraDescriptor - CpeComponentDescriptor instanceCpeDescriptorExceptionpublic void setCasProcessorFilter(CasProcessorFilter aFilter) throws CpeDescriptorException
CpeDescriptorExceptionpublic void setErrorHandling(CasProcessorErrorHandling aErrorHandling) throws CpeDescriptorException
CpeDescriptorExceptionpublic CasProcessorErrorHandling getErrorHandling()
CpeCasProcessorCasProcessorErrorHandling object containing
strategies to deal with errors that may occur during processing. This object provides the means
of modifying error thresholds and actions to take when error thresholds are exceeded.getErrorHandling in interface CpeCasProcessorCasProcessorErrorHandlingpublic void setMaxErrorCount(int aErrorCount)
setMaxErrorCount in interface CpeCasProcessoraErrorCount - -
max error tolerancepublic int getMaxErrorCount()
getMaxErrorCount in interface CpeCasProcessoraErrorCount - -
max error tolerancepublic void setMaxErrorSampleSize(int aErrorSampleSize)
setMaxErrorSampleSize in interface CpeCasProcessoraErrorCount - -
max error tolerancepublic int getMaxErrorSampleSize()
getMaxErrorSampleSize in interface CpeCasProcessorpublic void setActionOnMaxError(java.lang.String aAction)
setActionOnMaxError in interface CpeCasProcessoraAction - -
action stringpublic java.lang.String getActionOnMaxError()
getActionOnMaxError in interface CpeCasProcessorpublic void setActionOnMaxRestart(java.lang.String aAction)
setActionOnMaxRestart in interface CpeCasProcessoraAction - -
action stringpublic java.lang.String getActionOnMaxRestart()
getActionOnMaxRestart in interface CpeCasProcessorpublic void setMaxRestartCount(int aRestartCount)
setMaxRestartCount in interface CpeCasProcessoraRestartCount - -
max number of restartspublic int getMaxRestartCount()
getMaxRestartCount in interface CpeCasProcessorpublic void setTimeout(int aTimeoutValue)
setTimeout in interface CpeCasProcessoraTimeoutValue - -
millis to wait for responsepublic int getTimeout()
getTimeout in interface CpeCasProcessorpublic void setConfigurationParameterSettings(CasProcessorConfigurationParameterSettings settings) throws CpeDescriptorException
setConfigurationParameterSettings in interface CpeCasProcessorsettings - object containing parameter setting overridesCpeDescriptorExceptionpublic CasProcessorConfigurationParameterSettings getConfigurationParameterSettings()
getConfigurationParameterSettings in interface CpeCasProcessorpublic void setParameterSettings(ConfigurationParameterSettings settings)
settings - public ConfigurationParameterSettings getParameterSettings()
settings - public Parameter[] getParameters()
public CasProcessorFilter getFilter()
public void setCheckpoint(CpeCheckpoint checkpoint)
checkpoint - public void setParameters(Parameter[] aparameters)
parameters - public void setFilter(CasProcessorFilter aFilter)
string - public CasProcessorRunInSeperateProcess getRunInSeparateProcess()
getRunInSeparateProcess in interface CpeCasProcessorpublic void setRunInSeparateProcess(CasProcessorRunInSeperateProcess process)
process - public CasProcessorDeploymentParams getDeploymentParameters()
public void setDeploymentParameters(CasProcessorDeploymentParams parameters)
parameters - public void buildFromXMLElement(org.w3c.dom.Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
buildFromXMLElement in interface XMLizablebuildFromXMLElement in class MetaDataObject_implaElement - the XML element that represents this object.aParser - a reference to the UIMA XMLParser. The
XMLParser.buildObject(Element) method can be used to construct sub-objects.aOptions - option settingsInvalidXMLException - if the input XML element does not specify a valid objectMetaDataObject_impl.buildFromXMLElement(org.w3c.dom.Element,
org.apache.uima.util.XMLParser, org.apache.uima.util.XMLParser.ParsingOptions)protected org.xml.sax.helpers.AttributesImpl getXMLAttributes()
getXMLAttributes in class MetaDataObject_implMetaDataObject_impl.getXMLAttributes()protected XmlizationInfo getXmlizationInfo()
MetaDataObject_implgetXmlizationInfo in class MetaDataObject_implpublic CpeCheckpoint getCheckpoint()
CpeCasProcessorCpeCheckpoint object containing checkpoint
configuration ( checkpoint file, frequency of checkpoints )getCheckpoint in interface CpeCasProcessorpublic CpeSofaMappings getSofaNameMappings()
getSofaNameMappings in interface CpeCasProcessorpublic void setSofaNameMappings(CpeSofaMappings mappings)
setSofaNameMappings in interface CpeCasProcessormappings - public void setIsParallelizable(boolean isP)
setIsParallelizable in interface CpeCasProcessorpublic boolean getIsParallelizable()
getIsParallelizable in interface CpeCasProcessorCopyright © 2013. All Rights Reserved.