public class CasProcessorConfigurationJAXBImpl extends java.lang.Object implements CasProcessorConfiguration
| Constructor and Description |
|---|
CasProcessorConfigurationJAXBImpl(CpeCasProcessor aCasProcessorConfig,
ResourceManager aResourceManager)
Initializes instance and copies configuation from cpe descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public CasProcessorConfigurationJAXBImpl(CpeCasProcessor aCasProcessorConfig, ResourceManager aResourceManager) throws ResourceConfigurationException
aJaxbCasProcessorConfig - - -
configuration object containing Cas Processor configurationaResourceManager - -
needed to resolve import by nameResourceConfigurationExceptionpublic int getMaxTimeToWaitBetweenRetries()
getMaxTimeToWaitBetweenRetries in interface CasProcessorConfigurationpublic boolean isParallelizable()
public boolean readOnly()
public java.lang.String getActionOnError()
getActionOnError in interface CasProcessorConfigurationpublic java.lang.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 java.lang.String getName()
getName in interface CasProcessorConfigurationpublic long getTimeout()
getTimeout in interface CasProcessorConfigurationpublic java.util.List getDeploymentParameters()
getDeploymentParameters in interface CasProcessorConfigurationpublic java.lang.String getDeploymentType()
getDeploymentType in interface CasProcessorConfigurationpublic java.lang.String getFilterString()
getFilterString in interface CasProcessorConfigurationpublic java.util.LinkedList getFilter()
throws ResourceConfigurationException
getFilter in interface CasProcessorConfigurationResourceConfigurationExceptionpublic java.lang.String[] getKeysToDrop()
throws ResourceConfigurationException
getKeysToDrop in interface CasProcessorConfigurationResourceConfigurationExceptionpublic int getBatchSize()
getBatchSize in interface CasProcessorConfigurationpublic java.net.URL getDescriptorUrl()
throws ResourceConfigurationException
getDescriptorUrl in interface CasProcessorConfigurationResourceConfigurationException - if an import could not be resolvedpublic java.lang.String getDeploymentParameter(java.lang.String aDeployParameter)
getDeploymentParameter in interface CasProcessorConfiguration- - aDeployParameter - name of the parameterpublic boolean runInSeparateProcess()
runInSeparateProcess in interface CasProcessorConfigurationpublic boolean isJavaProcess()
isJavaProcess in interface CasProcessorConfigurationpublic Execute getExecSpec()
getExecSpec in interface CasProcessorConfigurationCopyright © 2013. All Rights Reserved.