Class AbstractCompareFunctionType<P extends step.functions.Function>

    • Field Detail

      • handlerJar

        protected step.grid.filemanager.FileVersionId handlerJar
      • scenarioDir

        protected final File scenarioDir
      • configuration

        protected final ch.exense.commons.app.Configuration configuration
    • Constructor Detail

      • AbstractCompareFunctionType

        public AbstractCompareFunctionType​(File scenarioDir,
                                           ch.exense.commons.app.Configuration configuration)
    • Method Detail

      • getHandlerJar

        protected abstract String getHandlerJar()
      • getHandlerChain

        protected abstract String getHandlerChain()
      • getScenarioDirProperty

        protected abstract String getScenarioDirProperty()
      • getAgentScenarioDirProperty

        protected abstract String getAgentScenarioDirProperty()
      • getActualFileName

        protected abstract String getActualFileName()
      • getExpectedFileName

        protected abstract String getExpectedFileName()
      • init

        public void init()
        Overrides:
        init in class step.functions.type.AbstractFunctionType<CompareFunction>
      • getHandlerPackage

        public step.grid.filemanager.FileVersionId getHandlerPackage​(CompareFunction function)
        Overrides:
        getHandlerPackage in class step.functions.type.AbstractFunctionType<CompareFunction>
      • beforeFunctionCall

        public void beforeFunctionCall​(CompareFunction function,
                                       step.functions.io.Input<?> input,
                                       Map<String,​String> properties)
                                throws step.functions.type.FunctionExecutionException
        Overrides:
        beforeFunctionCall in class step.functions.type.AbstractFunctionType<CompareFunction>
        Throws:
        step.functions.type.FunctionExecutionException
      • checkAndAttachFiles

        protected void checkAndAttachFiles​(step.functions.io.Input<?> input)
                                    throws step.functions.type.FunctionExecutionException
        Throws:
        step.functions.type.FunctionExecutionException
      • addFileAsAttachment

        protected void addFileAsAttachment​(step.functions.io.Input<?> input,
                                           File file,
                                           String attachmentName)
      • newFunction

        public abstract CompareFunction newFunction()
        Specified by:
        newFunction in class step.functions.type.AbstractFunctionType<CompareFunction>
      • setupFunction

        public void setupFunction​(CompareFunction function)
                           throws step.functions.type.SetupFunctionException
        Overrides:
        setupFunction in class step.functions.type.AbstractFunctionType<CompareFunction>
        Throws:
        step.functions.type.SetupFunctionException
      • createScenarioFile

        protected String createScenarioFile​(CompareFunction function)
                                     throws step.functions.type.SetupFunctionException
        Throws:
        step.functions.type.SetupFunctionException
      • updateFunction

        public CompareFunction updateFunction​(CompareFunction function)
                                       throws step.functions.type.FunctionTypeException
        Overrides:
        updateFunction in class step.functions.type.AbstractFunctionType<CompareFunction>
        Throws:
        step.functions.type.FunctionTypeException
      • updateScenarioName

        protected void updateScenarioName​(CompareFunction function)
                                   throws step.functions.type.FunctionTypeException
        Throws:
        step.functions.type.FunctionTypeException
      • copyFunction

        public CompareFunction copyFunction​(CompareFunction function)
                                     throws step.functions.type.FunctionTypeException
        Overrides:
        copyFunction in class step.functions.type.AbstractFunctionType<CompareFunction>
        Throws:
        step.functions.type.FunctionTypeException
      • deleteFunction

        public void deleteFunction​(CompareFunction function)
        Overrides:
        deleteFunction in class step.functions.type.AbstractFunctionType<CompareFunction>