Class TestProcessingUnitRunnable

    • Constructor Detail

      • TestProcessingUnitRunnable

        protected TestProcessingUnitRunnable​(java.lang.Class<? extends IProcessingUnit> processingUnitClass,
                                             java.util.List<Parameter> parameterList,
                                             IProcessingUnitContext processingUnitContext)
        Constructor for TestProcessingUnitRunnable
        Parameters:
        processingUnitClass - the processing unit class
        parameterList - the parameter list
        processingUnitContext - the processing unit context
    • Method Detail

      • setSuspendAfterCycles

        public void setSuspendAfterCycles​(java.lang.Long suspendAfterCycles)
        Set the number of cycles after the number of cycles it will suspended
        Parameters:
        suspendAfterCycles - the number of cycles it will suspended
      • setSuspendSleepTime

        public void setSuspendSleepTime​(java.lang.Long suspendSleepTime)
        Set the suspend sleep time
        Parameters:
        suspendSleepTime - the suspend sleep time
      • setMaxNumberOfSuspends

        public void setMaxNumberOfSuspends​(java.lang.Integer maxNumberOfSuspends)
        Set the max number of suspends
        Parameters:
        maxNumberOfSuspends - the max number of suspends
      • setNumberOfCyclesBeforeStop

        public void setNumberOfCyclesBeforeStop​(java.lang.Integer numberOfCyclesBeforeStop)
        Set the number of cycles before stop
        Parameters:
        numberOfCyclesBeforeStop - the number of cycles before stop
      • getSuspendCounter

        public int getSuspendCounter()
        Gets the suspend counter
        Returns:
        the suspend counter
      • getProcessingUnit

        public IProcessingUnit getProcessingUnit()
        Get the processing unit
        Returns:
        the processing unit