public class CasProcessorConfigurationJAXBImpl extends 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 |
---|---|
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(CpeCasProcessor aCasProcessorConfig, ResourceManager aResourceManager) throws ResourceConfigurationException
aCasProcessorConfig
- -
configuration object containing Cas Processor configurationaResourceManager
- -
needed to resolve import by nameResourceConfigurationException
- if descriptor errorpublic int getMaxTimeToWaitBetweenRetries()
getMaxTimeToWaitBetweenRetries
in interface CasProcessorConfiguration
public boolean isParallelizable()
public boolean readOnly()
public String getActionOnError()
getActionOnError
in interface CasProcessorConfiguration
public 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 String getName()
getName
in interface CasProcessorConfiguration
public long getTimeout()
getTimeout
in interface CasProcessorConfiguration
public List getDeploymentParameters()
getDeploymentParameters
in interface CasProcessorConfiguration
public String getDeploymentType()
getDeploymentType
in interface CasProcessorConfiguration
public String getFilterString()
getFilterString
in interface CasProcessorConfiguration
public LinkedList getFilter() throws ResourceConfigurationException
getFilter
in interface CasProcessorConfiguration
ResourceConfigurationException
public String[] getKeysToDrop() throws ResourceConfigurationException
getKeysToDrop
in interface CasProcessorConfiguration
ResourceConfigurationException
public int getBatchSize()
getBatchSize
in interface CasProcessorConfiguration
public URL getDescriptorUrl() throws ResourceConfigurationException
getDescriptorUrl
in interface CasProcessorConfiguration
ResourceConfigurationException
- if an import could not be resolvedpublic String getDeploymentParameter(String aDeployParameter)
getDeploymentParameter
in interface CasProcessorConfiguration
aDeployParameter
- - name of the parameterpublic boolean runInSeparateProcess()
runInSeparateProcess
in interface CasProcessorConfiguration
public boolean isJavaProcess()
isJavaProcess
in interface CasProcessorConfiguration
public Execute getExecSpec()
getExecSpec
in interface CasProcessorConfiguration
Copyright © 2017. All rights reserved.