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
      • TestProcessingUnitRunnable

        protected TestProcessingUnitRunnable​(byte[] suspendedState)
        Constructor for TestProcessingUnitRunnable
        Parameters:
        suspendedState - the suspended state
    • 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
      • setNumberOfCyclesBeforeStop

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

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