Class CasProcessorConfigurationJAXBImpl
java.lang.Object
org.apache.uima.collection.impl.cpm.container.CasProcessorConfigurationJAXBImpl
- All Implemented Interfaces:
- CasProcessorConfiguration
A wrapper containing CAS Processor configuration. An instance of this class is associated with
 each CAS Processor.
- 
Constructor SummaryConstructorsConstructorDescriptionCasProcessorConfigurationJAXBImpl(CpeCasProcessor aCasProcessorConfig, ResourceManager aResourceManager) Initializes instance and copies configuration from CPE descriptor.
- 
Method SummaryModifier and TypeMethodDescriptionReturns an action as String to identify an action to take in case of excessive Cas Processor errors.Returns an action as String to identify an action to take in case of excessive Cas Processor restarts.intReturns configured batch size setup for this Cas ProcessorgetDeploymentParameter(String aDeployParameter) Returns a value for a given deployment parameterReturns a list of deployment parameters associated with this CAS ProcessorReturns deployment type associated with this CAS Processor integrated local remoteReturns descriptor associated with this Cas ProcessorintlongReturns executable section of the CAS Processor configuration.Returns parsed filter expressions as List.String[]Returns an array of types that should not be sent to CAS Processor.intReturns max number of tolerated errorsintReturns max number of Cas Processor restartsintReturns max number of tries to process each bundle of CasintReturns how long to wait between re-sending CAS after failuregetName()Returns Cas Processor namelongReturns the max amount of time the CPE will wait for CAS Processor response.booleanReturns true it the CAS Processor is written in java and will be run with Java JVM.booleanReturns if the Cas Processor is able to run in parallelbooleanreadOnly()Returns if the Cas Processor is read onlybooleanReturns true if this CAS Processor will run in its own process
- 
Constructor Details- 
CasProcessorConfigurationJAXBImplpublic CasProcessorConfigurationJAXBImpl(CpeCasProcessor aCasProcessorConfig, ResourceManager aResourceManager) throws ResourceConfigurationException Initializes instance and copies configuration from CPE descriptor.- Parameters:
- aCasProcessorConfig- - configuration object containing CAS Processor configuration
- aResourceManager- - needed to resolve import by name
- Throws:
- ResourceConfigurationException- if descriptor error
 
 
- 
- 
Method Details- 
getMaxTimeToWaitBetweenRetriespublic int getMaxTimeToWaitBetweenRetries()Returns how long to wait between re-sending CAS after failure- Specified by:
- getMaxTimeToWaitBetweenRetriesin interface- CasProcessorConfiguration
 
- 
isParallelizablepublic boolean isParallelizable()Returns if the Cas Processor is able to run in parallel- Returns:
- - true if the component can run in parallel, false otherwise
 
- 
readOnlypublic boolean readOnly()Returns if the Cas Processor is read only- Returns:
- - true if read only, false otherwise
 
- 
getActionOnErrorReturns an action as String to identify an action to take in case of excessive Cas Processor errors.- continue
- terminate
- disable
 - Specified by:
- getActionOnErrorin interface- CasProcessorConfiguration
- Returns:
- - action
 
- 
getActionOnMaxRestartReturns an action as String to identify an action to take in case of excessive Cas Processor restarts.- continue
- terminate
- disable
 - Specified by:
- getActionOnMaxRestartin interface- CasProcessorConfiguration
- Returns:
- - action
 
- 
getErrorRatepublic int getErrorRate()- Specified by:
- getErrorRatein interface- CasProcessorConfiguration
 
- 
getErrorSampleSizepublic long getErrorSampleSize()- Specified by:
- getErrorSampleSizein interface- CasProcessorConfiguration
 
- 
getMaxErrorCountpublic int getMaxErrorCount()Returns max number of tolerated errors- Specified by:
- getMaxErrorCountin interface- CasProcessorConfiguration
- Returns:
- - max number of allowed errors
 
- 
getMaxRestartCountpublic int getMaxRestartCount()Returns max number of Cas Processor restarts- Specified by:
- getMaxRestartCountin interface- CasProcessorConfiguration
- Returns:
- - max number of restarts
 
- 
getMaxRetryCountpublic int getMaxRetryCount()Returns max number of tries to process each bundle of Cas- Specified by:
- getMaxRetryCountin interface- CasProcessorConfiguration
- Returns:
- - max retry count
 
- 
getNameReturns Cas Processor name- Specified by:
- getNamein interface- CasProcessorConfiguration
- Returns:
- - Name
 
- 
getTimeoutpublic long getTimeout()Returns the max amount of time the CPE will wait for CAS Processor response.- Specified by:
- getTimeoutin interface- CasProcessorConfiguration
- Returns:
- - value for timeout
 
- 
getDeploymentParametersReturns a list of deployment parameters associated with this CAS Processor- Specified by:
- getDeploymentParametersin interface- CasProcessorConfiguration
- Returns:
- - deployment parameters as List
 
- 
getDeploymentTypeReturns deployment type associated with this CAS Processor- integrated
- local
- remote
 - Specified by:
- getDeploymentTypein interface- CasProcessorConfiguration
- Returns:
- - deployment type
 
- 
getFilterString- Specified by:
- getFilterStringin interface- CasProcessorConfiguration
- Returns:
- unparsed filter expression
 
- 
getFilterReturns parsed filter expressions as List.- Specified by:
- getFilterin interface- CasProcessorConfiguration
- Throws:
- ResourceConfigurationException
 
- 
getKeysToDropReturns an array of types that should not be sent to CAS Processor. The drop types are defined in the CPE descriptor.- Specified by:
- getKeysToDropin interface- CasProcessorConfiguration
- Throws:
- ResourceConfigurationException
 
- 
getBatchSizepublic int getBatchSize()Returns configured batch size setup for this Cas Processor- Specified by:
- getBatchSizein interface- CasProcessorConfiguration
- Returns:
- - batch size
 
- 
getDescriptorUrlReturns descriptor associated with this Cas Processor- Specified by:
- getDescriptorUrlin interface- CasProcessorConfiguration
- Returns:
- object that identifies location of descriptor
- Throws:
- ResourceConfigurationException- if an import could not be resolved
 
- 
getDeploymentParameterReturns a value for a given deployment parameter- Specified by:
- getDeploymentParameterin interface- CasProcessorConfiguration
- Parameters:
- aDeployParameter- - name of the parameter
- Returns:
- - value for parameter name
 
- 
runInSeparateProcesspublic boolean runInSeparateProcess()Returns true if this CAS Processor will run in its own process- Specified by:
- runInSeparateProcessin interface- CasProcessorConfiguration
- Returns:
- - true if running in separate process
 
- 
isJavaProcesspublic boolean isJavaProcess()Returns true it the CAS Processor is written in java and will be run with Java JVM.- Specified by:
- isJavaProcessin interface- CasProcessorConfiguration
 
- 
getExecSpecReturns executable section of the CAS Processor configuration. It contains the name of executable program to be used when launching a separate process with CAS Processor running as Vinci service.- Specified by:
- getExecSpecin interface- CasProcessorConfiguration
- Returns:
- - Execute object
 
 
-