public class CasProcessorConfigurationJAXBImpl extends Object implements CasProcessorConfiguration
| Constructor and Description |
|---|
CasProcessorConfigurationJAXBImpl(org.apache.uima.collection.metadata.CpeCasProcessor aCasProcessorConfig,
org.apache.uima.resource.ResourceManager aResourceManager)
Initializes instance and copies configuation from cpe descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getActionOnError()
Returns an action as String to identify an action to take in case of excessive Cas Processor
errors.
|
String |
getActionOnMaxRestart()
Returns an action as String to identify an action to take in case of excessive Cas Processor
restarts.
|
int |
getBatchSize()
Returns configured batch size setup for this Cas Processor
|
String |
getDeploymentParameter(String aDeployParameter)
Returns a value for a given deployment parameter
|
List |
getDeploymentParameters()
Returns a list of deployment parameters ssociated with this Cas Processor
|
String |
getDeploymentType()
Returns deployment type associated with this Cas Processor
integrated
local
remote
|
URL |
getDescriptorUrl()
Returns descriptor associated with this Cas Processor
|
int |
getErrorRate() |
long |
getErrorSampleSize() |
Execute |
getExecSpec()
Returns executable section of the Cas Processor configuration.
|
LinkedList |
getFilter()
Returns parsed filter expressions as List.
|
String |
getFilterString()
Returns unparsed filter expression
|
String[] |
getKeysToDrop()
Returns an array of types that should not be sent to Cas Processor.
|
int |
getMaxErrorCount()
Returns max number of tolerated errors
|
int |
getMaxRestartCount()
Returns max number of Cas Processor restarts
|
int |
getMaxRetryCount()
Returns max number of tries to process each bundle of Cas
|
int |
getMaxTimeToWaitBetweenRetries()
Returns how long to wait between resending CAS after failure
|
String |
getName()
Returns Cas Processor name
|
long |
getTimeout()
Returns the max amount of time the CPE will wait for Cas Processor reponse.
|
boolean |
isJavaProcess()
Returns true it the Cas Processor is written in java and will be run with java jvm.
|
boolean |
isParallelizable()
Returns if the Cas Processor is able to run in parallel
|
boolean |
readOnly()
Returns if the Cas Processor is read only
|
boolean |
runInSeparateProcess()
Returns true if this Cas Processor will run in its own process
|
public CasProcessorConfigurationJAXBImpl(org.apache.uima.collection.metadata.CpeCasProcessor aCasProcessorConfig,
org.apache.uima.resource.ResourceManager aResourceManager)
throws org.apache.uima.resource.ResourceConfigurationException
aCasProcessorConfig - -
configuration object containing Cas Processor configurationaResourceManager - -
needed to resolve import by nameorg.apache.uima.resource.ResourceConfigurationException - if descriptor errorpublic int getMaxTimeToWaitBetweenRetries()
getMaxTimeToWaitBetweenRetries in interface CasProcessorConfigurationpublic boolean isParallelizable()
public boolean readOnly()
public String getActionOnError()
getActionOnError in interface CasProcessorConfigurationpublic String getActionOnMaxRestart()
getActionOnMaxRestart in interface CasProcessorConfigurationpublic int getErrorRate()
getErrorRate in interface CasProcessorConfigurationpublic long getErrorSampleSize()
getErrorSampleSize in interface CasProcessorConfigurationpublic int getMaxErrorCount()
getMaxErrorCount in interface CasProcessorConfigurationpublic int getMaxRestartCount()
getMaxRestartCount in interface CasProcessorConfigurationpublic int getMaxRetryCount()
getMaxRetryCount in interface CasProcessorConfigurationpublic String getName()
getName in interface CasProcessorConfigurationpublic long getTimeout()
getTimeout in interface CasProcessorConfigurationpublic List getDeploymentParameters()
getDeploymentParameters in interface CasProcessorConfigurationpublic String getDeploymentType()
getDeploymentType in interface CasProcessorConfigurationpublic String getFilterString()
getFilterString in interface CasProcessorConfigurationpublic LinkedList getFilter() throws org.apache.uima.resource.ResourceConfigurationException
getFilter in interface CasProcessorConfigurationorg.apache.uima.resource.ResourceConfigurationExceptionpublic String[] getKeysToDrop() throws org.apache.uima.resource.ResourceConfigurationException
getKeysToDrop in interface CasProcessorConfigurationorg.apache.uima.resource.ResourceConfigurationExceptionpublic int getBatchSize()
getBatchSize in interface CasProcessorConfigurationpublic URL getDescriptorUrl() throws org.apache.uima.resource.ResourceConfigurationException
getDescriptorUrl in interface CasProcessorConfigurationorg.apache.uima.resource.ResourceConfigurationException - if an import could not be resolvedpublic String getDeploymentParameter(String aDeployParameter)
getDeploymentParameter in interface CasProcessorConfigurationaDeployParameter - - name of the parameterpublic boolean runInSeparateProcess()
runInSeparateProcess in interface CasProcessorConfigurationpublic boolean isJavaProcess()
isJavaProcess in interface CasProcessorConfigurationpublic Execute getExecSpec()
getExecSpec in interface CasProcessorConfigurationCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.