Interface JMadKernelConfig

  • All Known Implementing Classes:
    JMadKernelImpl

    public interface JMadKernelConfig
    Interface to configure JMadKernel behavior
    • Method Detail

      • getTimeout

        java.lang.Long getTimeout()
        Returns:
        the actual set timeout
      • setTimeout

        void setTimeout​(java.lang.Long timeout)
        sets the actual timeout in ms. If null then the kernel waits forever for Madx.
        Parameters:
        timeout - the timeout to set
      • setKeepOutputFile

        void setKeepOutputFile​(boolean keepOutputFile)
        sets the flag, if the output-file shall be kept or deleted after task/command execution.
        Parameters:
        keepOutputFile - true if the output-file shall be kept, false otherwise
      • isKeepOutputFile

        boolean isKeepOutputFile()
        Returns:
        true, if the outputfile shall be kept or false if it shall be deleted after command/task execution.
      • setCleanupDirs

        void setCleanupDirs​(boolean cleanupDirs)
        enable automatic deletion of JMadKernel tmpDir during shutdown
        Parameters:
        cleanupDirs - true if tempDirectory should be deleted
      • isCleanupDirs

        boolean isCleanupDirs()
        Returns:
        true if the JMadKernel tempDirectory is going to be deleted on Shutdown