Class AbstractCompareFunctionType<P extends step.functions.Function>

    • Field Detail

      • handlerJar

        protected step.grid.filemanager.FileVersionId handlerJar
      • scenarioDir

        protected final java.io.File scenarioDir
      • configuration

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

      • AbstractCompareFunctionType

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

      • getHandlerJar

        protected abstract java.lang.String getHandlerJar()
      • getHandlerChain

        protected abstract java.lang.String getHandlerChain()
      • getScenarioDirProperty

        protected abstract java.lang.String getScenarioDirProperty()
      • getAgentScenarioDirProperty

        protected abstract java.lang.String getAgentScenarioDirProperty()
      • getActualFileName

        protected abstract java.lang.String getActualFileName()
      • getExpectedFileName

        protected abstract java.lang.String getExpectedFileName()
      • init

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

        public java.lang.String getHandlerChain​(CompareFunction function)
        Specified by:
        getHandlerChain 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>
      • getHandlerProperties

        public java.util.Map<java.lang.String,​java.lang.String> getHandlerProperties​(CompareFunction function)
        Specified by:
        getHandlerProperties in class step.functions.type.AbstractFunctionType<CompareFunction>
      • beforeFunctionCall

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

        protected void checkFiles​(java.io.File actualFile,
                                  java.io.File expectedFile)
                           throws step.functions.type.FunctionExecutionException
        Throws:
        step.functions.type.FunctionExecutionException
      • addFileAsAttachment

        protected void addFileAsAttachment​(step.functions.io.Input<?> input,
                                           java.io.File file,
                                           java.lang.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 java.lang.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>
      • getSessionDir

        protected java.io.File getSessionDir​(CompareFunction function)