Class CasProcessorErrorRateThresholdImpl

    • Constructor Detail

      • CasProcessorErrorRateThresholdImpl

        public CasProcessorErrorRateThresholdImpl()
    • Method Detail

      • setMaxErrorCount

        public void setMaxErrorCount​(int aErrorCount)
        Description copied from interface: CasProcessorErrorRateThreshold
        Sets the max number of errors tolerated by the CPE. If the the threshold is exceeded the CPE will take an action based on defined strategy. Max Error is defined in terms of a quotient, like 3/1000. Where 3 is the actual max error tolerance and 1000 is a sample size. So the above is interpreted as 3 errors per thousand entities processed.
        Specified by:
        setMaxErrorCount in interface CasProcessorErrorRateThreshold
        Parameters:
        aErrorCount - - max tolerated errors for CasProcessor
      • getMaxErrorCount

        public int getMaxErrorCount()
        Description copied from interface: CasProcessorErrorRateThreshold
        Returns max number of errors tolerated by the CPE. If the the threshold is exceeded the CPE will take an action based on defined strategy. Max Error is defined in terms of a quotient, like 3/1000. Where 3 is the actual max error tolerance and 1000 is a sample size. So the above is interpreted as 3 errors per thousand entities processed.
        Specified by:
        getMaxErrorCount in interface CasProcessorErrorRateThreshold
        Returns:
        - max error count
      • setMaxErrorSampleSize

        public void setMaxErrorSampleSize​(int aSampleSize)
        Description copied from interface: CasProcessorErrorRateThreshold
        Sets the sample size. Max Error is defined in terms of a quotient, like 3/1000. Where 3 is the actual max error tolerance and 1000 is a sample size. So the above is interpreted as 3 errors per thousand entities processed.
        Specified by:
        setMaxErrorSampleSize in interface CasProcessorErrorRateThreshold
        Parameters:
        aSampleSize - the sample size
      • getMaxErrorSampleSize

        public int getMaxErrorSampleSize()
        Description copied from interface: CasProcessorErrorRateThreshold
        Returns sample size. Max Error is defined in terms of a quotient, like 3/1000. Where 3 is the actual max error tolerance and 1000 is a sample size. So the above is interpreted as 3 errors per thousand entities processed.
        Specified by:
        getMaxErrorSampleSize in interface CasProcessorErrorRateThreshold
        Returns:
        - sample size
      • setAction

        public void setAction​(java.lang.String aAction)
        Description copied from interface: CasProcessorErrorRateThreshold
        Sets a strategy for dealing with exceeding error thresholds. The three supported strategies are:
        • terminate - termines the CPE
        • continue - continue despite the error
        • disable - disable CasProcessor
        Specified by:
        setAction in interface CasProcessorErrorRateThreshold
        Parameters:
        aAction - - action to take
      • getAction

        public java.lang.String getAction()
        Description copied from interface: CasProcessorErrorRateThreshold
        Returns strategy for dealing with exceeding error thresholds. The three supported strategies are:
        • terminate - termines the CPE
        • continue - continue despite the error
        • disable - disable CasProcessor
        Specified by:
        getAction in interface CasProcessorErrorRateThreshold
        Returns:
        String - action to take
      • getXmlizationInfo

        protected XmlizationInfo getXmlizationInfo()
        Description copied from class: MetaDataObject_impl
        To be implemented by subclasses to return information describing how to represent this object in XML.
        Specified by:
        getXmlizationInfo in class MetaDataObject_impl
        Returns:
        information defining this object's XML representation
      • getValue

        public java.lang.String getValue()
        Returns:
        the value
      • setValue

        public void setValue​(java.lang.String string)
        Parameters:
        string -