Class OsCommandConfiguration

java.lang.Object
org.sentrysoftware.metricshub.extension.oscommand.OsCommandConfiguration
All Implemented Interfaces:
IConfiguration
Direct Known Subclasses:
SshConfiguration

public class OsCommandConfiguration extends Object implements IConfiguration
Configuration class for handling OS command execution settings. This class provides options to configure command execution specifics.
  • Field Details

    • DEFAULT_TIMEOUT

      public static final Long DEFAULT_TIMEOUT
      Default Os Command timeout
  • Constructor Details

    • OsCommandConfiguration

      public OsCommandConfiguration(boolean useSudo, Set<String> useSudoCommands, String sudoCommand, Long timeout)
      Creates a new instance of OsCommandConfiguration using the provided parameters.
      Parameters:
      useSudo - Indicates whether to use sudo for executing commands.
      useSudoCommands - The set of commands for which sudo will be used.
      sudoCommand - The sudo command to use.
      timeout - The timeout for executing commands.
  • Method Details