|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.collection.impl.cpm.container.CasProcessorConfigurationJAXBImpl
public class CasProcessorConfigurationJAXBImpl
A wrapper containing Cas Processor configuration. An instance of this class is associated with each Cas Processor.
Constructor Summary | |
---|---|
CasProcessorConfigurationJAXBImpl(CpeCasProcessor aCasProcessorConfig,
ResourceManager aResourceManager)
Initializes instance and copies configuation from cpe descriptor. |
Method Summary | |
---|---|
java.lang.String |
getActionOnError()
Returns an action as String to identify an action to take in case of excessive Cas Processor errors. |
java.lang.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 |
java.lang.String |
getDeploymentParameter(java.lang.String aDeployParameter)
Returns a value for a given deployment parameter |
java.util.List |
getDeploymentParameters()
Returns a list of deployment parameters ssociated with this Cas Processor |
java.lang.String |
getDeploymentType()
Returns deployment type associated with this Cas Processor |
java.net.URL |
getDescriptorUrl()
Returns descriptor associated with this Cas Processor |
int |
getErrorRate()
|
long |
getErrorSampleSize()
|
Execute |
getExecSpec()
Returns executable section of the Cas Processor configuration. |
java.util.LinkedList |
getFilter()
Returns parsed filter expressions as List. |
java.lang.String |
getFilterString()
Returns unparsed filter expression |
java.lang.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 |
java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CasProcessorConfigurationJAXBImpl(CpeCasProcessor aCasProcessorConfig, ResourceManager aResourceManager) throws ResourceConfigurationException
aJaxbCasProcessorConfig
- - -
configuration object containing Cas Processor configurationaResourceManager
- -
needed to resolve import by name
ResourceConfigurationException
Method Detail |
---|
public int getMaxTimeToWaitBetweenRetries()
getMaxTimeToWaitBetweenRetries
in interface CasProcessorConfiguration
public boolean isParallelizable()
public boolean readOnly()
public java.lang.String getActionOnError()
getActionOnError
in interface CasProcessorConfiguration
public java.lang.String getActionOnMaxRestart()
getActionOnMaxRestart
in interface CasProcessorConfiguration
public int getErrorRate()
getErrorRate
in interface CasProcessorConfiguration
public long getErrorSampleSize()
getErrorSampleSize
in interface CasProcessorConfiguration
public int getMaxErrorCount()
getMaxErrorCount
in interface CasProcessorConfiguration
public int getMaxRestartCount()
getMaxRestartCount
in interface CasProcessorConfiguration
public int getMaxRetryCount()
getMaxRetryCount
in interface CasProcessorConfiguration
public java.lang.String getName()
getName
in interface CasProcessorConfiguration
public long getTimeout()
getTimeout
in interface CasProcessorConfiguration
public java.util.List getDeploymentParameters()
getDeploymentParameters
in interface CasProcessorConfiguration
public java.lang.String getDeploymentType()
getDeploymentType
in interface CasProcessorConfiguration
public java.lang.String getFilterString()
getFilterString
in interface CasProcessorConfiguration
public java.util.LinkedList getFilter() throws ResourceConfigurationException
getFilter
in interface CasProcessorConfiguration
ResourceConfigurationException
public java.lang.String[] getKeysToDrop() throws ResourceConfigurationException
getKeysToDrop
in interface CasProcessorConfiguration
ResourceConfigurationException
public int getBatchSize()
getBatchSize
in interface CasProcessorConfiguration
public java.net.URL getDescriptorUrl() throws ResourceConfigurationException
getDescriptorUrl
in interface CasProcessorConfiguration
ResourceConfigurationException
- if an import could not be resolvedpublic java.lang.String getDeploymentParameter(java.lang.String aDeployParameter)
getDeploymentParameter
in interface CasProcessorConfiguration
-
- aDeployParameter - name of the parameter
public boolean runInSeparateProcess()
runInSeparateProcess
in interface CasProcessorConfiguration
public boolean isJavaProcess()
isJavaProcess
in interface CasProcessorConfiguration
public Execute getExecSpec()
getExecSpec
in interface CasProcessorConfiguration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |