Object FileCommand

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Path submit(String command)
      final Boolean check(String command, Long checkInterval) Check local command file to see if there are pending commands.
      final Boolean check(String command, Duration checkInterval, Function0<Unit> action) Check local command file to see if there are pending commands Supported local file commands can be found in AppConstants CMD_* General command options are supported: -perm: the command should be always keep in the file and execute every time the command file is checked, otherwise the command is executed only
      final Boolean check(String command, Duration checkInterval) Check local command file to see if there are pending commands Supported local file commands can be found in AppConstants CMD_* General command options are supported: -perm: the command should be always keep in the file and execute every time the command file is checked, otherwise the command is executed only
      final Boolean check(String command) Check local command file to see if there are pending commands Supported local file commands can be found in AppConstants CMD_* General command options are supported: -perm: the command should be always keep in the file and execute every time the command file is checked, otherwise the command is executed only
      final Path getCOMMAND_FILE()
      final Duration getCHECK_INTERVAL()
      final Map<String, Long> getLAST_CHECK_TIME()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • check

        @Synchronized() final Boolean check(String command, Long checkInterval)

        Check local command file to see if there are pending commands. Supported local file commands can be found in AppConstants CMD_* General command options are supported: -perm: the command should be always keep in the file and execute every time the command file is checked, otherwise the command is executed only

        Parameters:
        command - Check if the command exists
        checkInterval - The check interval in seconds
        Returns:

        true if the command is exists during this check period

      • check

        @JvmOverloads()@Synchronized() final Boolean check(String command, Duration checkInterval, Function0<Unit> action)

        Check local command file to see if there are pending commands Supported local file commands can be found in AppConstants CMD_* General command options are supported: -perm: the command should be always keep in the file and execute every time the command file is checked, otherwise the command is executed only

        Parameters:
        command - Check if the command exists
        checkInterval - The check interval
        Returns:

        true if the command is exists during this check period

      • check

        @JvmOverloads()@Synchronized() final Boolean check(String command, Duration checkInterval)

        Check local command file to see if there are pending commands Supported local file commands can be found in AppConstants CMD_* General command options are supported: -perm: the command should be always keep in the file and execute every time the command file is checked, otherwise the command is executed only

        Parameters:
        command - Check if the command exists
        checkInterval - The check interval
        Returns:

        true if the command is exists during this check period

      • check

        @JvmOverloads()@Synchronized() final Boolean check(String command)

        Check local command file to see if there are pending commands Supported local file commands can be found in AppConstants CMD_* General command options are supported: -perm: the command should be always keep in the file and execute every time the command file is checked, otherwise the command is executed only

        Parameters:
        command - Check if the command exists
        Returns:

        true if the command is exists during this check period