Class SystemSampler

    • Constructor Detail

      • SystemSampler

        public SystemSampler()
        Create a SystemSampler.
    • Method Detail

      • sample

        public SampleResult sample​(Entry entry)
        Performs a test sample.
        Parameters:
        entry - the Entry for this sample
        Returns:
        test SampleResult
      • getDirectory

        public String getDirectory()
        Returns:
        working directory to use for system commands
      • setDirectory

        public void setDirectory​(String directory)
        Set the working directory to use for system commands
        Parameters:
        directory - working directory to use for system commands
      • setCommand

        public void setCommand​(String command)
        Sets the Command attribute of the JavaConfig object
        Parameters:
        command - the new Command value
      • getCommand

        public String getCommand()
        Gets the Command attribute of the JavaConfig object
        Returns:
        the Command value
      • setArguments

        public void setArguments​(Arguments args)
        Set the arguments (parameters) for the JavaSamplerClient to be executed with.
        Parameters:
        args - the new arguments. These replace any existing arguments.
      • getArguments

        public Arguments getArguments()
        Get the arguments (parameters) for the JavaSamplerClient to be executed with.
        Returns:
        the arguments
      • setCheckReturnCode

        public void setCheckReturnCode​(boolean checkit)
        Parameters:
        checkit - boolean indicates if we check or not return code
      • getCheckReturnCode

        public boolean getCheckReturnCode()
        Returns:
        boolean indicating if we check or not return code
      • setExpectedReturnCode

        public void setExpectedReturnCode​(int code)
        Parameters:
        code - expected return code
      • getExpectedReturnCode

        public int getExpectedReturnCode()
        Returns:
        expected return code
      • setEnvironmentVariables

        public void setEnvironmentVariables​(Arguments arguments)
        Parameters:
        arguments - Env vars
      • getEnvironmentVariables

        public Arguments getEnvironmentVariables()
        Get the env variables
        Returns:
        the arguments
      • getStdout

        public String getStdout()
      • setStdout

        public void setStdout​(String filename)
      • getStderr

        public String getStderr()
      • setStderr

        public void setStderr​(String filename)
      • getStdin

        public String getStdin()
      • setStdin

        public void setStdin​(String filename)
      • getTimeout

        public long getTimeout()
      • setTimout

        public void setTimout​(long timeoutMs)