Class SystemCommandExecuterFactory


  • public final class SystemCommandExecuterFactory
    extends java.lang.Object
    The system command excuter factory
    • Field Detail

      • INITIAL_DELAY

        public static final long INITIAL_DELAY
        Get the default initial delay of the folder cleanup service
        See Also:
        Constant Field Values
      • PERIOD

        public static final long PERIOD
        Get the default period of the folder cleanup service
        See Also:
        Constant Field Values
      • TIMEUNIT

        public static final java.util.concurrent.TimeUnit TIMEUNIT
        Get the default timeunit of the folder cleanup service
    • Method Detail

      • builder

        public static ISystemCommandExecuterTypeBuilder builder()
        Create a system command executer type builder
        Returns:
        the system command executer type builder
      • createSystemCommandExecuter

        public ISystemCommandExecuter createSystemCommandExecuter​(ISystemCommand... systemCommand)
        Create a system command executer
        Parameters:
        systemCommand - the system command
        Returns:
        the system command executer
      • createSystemCommandExecuter

        public ISystemCommandExecuter createSystemCommandExecuter​(ISystemCommandGroupList systemCommandGroupList)
        Create a system command executer
        Parameters:
        systemCommandGroupList - the system commandm group list
        Returns:
        the system command executer
      • startFolderCleanupService

        public void startFolderCleanupService()
        Start the folder cleanup service
      • startFolderCleanupService

        public void startFolderCleanupService​(long initialDelay,
                                              long period,
                                              java.util.concurrent.TimeUnit timeUnit)
        Start the folder cleanup service
        Parameters:
        initialDelay - the time to delay first execution
        period - the period between successive executions
        timeUnit - the time unit of the initialDelay and period parameters
      • startFolderCleanupService

        public void startFolderCleanupService​(long initialDelay,
                                              long period,
                                              java.util.concurrent.TimeUnit timeUnit,
                                              long lockFolderThreshold)
        Start the folder cleanup service
        Parameters:
        initialDelay - the time to delay first execution
        period - the period between successive executions
        timeUnit - the time unit of the initialDelay and period parameters
        lockFolderThreshold - the lock folder threshold
      • stopFolderCleanupService

        public void stopFolderCleanupService()
        Stop the folder cleanup service
      • getScriptFolderBasePath

        public java.nio.file.Path getScriptFolderBasePath()
        Get the script folder base path
        Returns:
        the script folder base path
      • setScriptFolderBasePath

        public void setScriptFolderBasePath​(java.nio.file.Path inputBasePath)
        Set the script folder base path
        Parameters:
        inputBasePath - the script folder base path