Class OsCommandConfiguration
java.lang.Object
org.sentrysoftware.metricshub.extension.oscommand.OsCommandConfiguration
- All Implemented Interfaces:
IConfiguration
- Direct Known Subclasses:
SshConfiguration
Configuration class for handling OS command execution settings. This class provides options to configure
command execution specifics.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOsCommandConfiguration(boolean useSudo, Set<String> useSudoCommands, String sudoCommand, Long timeout) Creates a new instance of OsCommandConfiguration using the provided parameters. -
Method Summary
-
Field Details
-
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
-
validateConfiguration
- Specified by:
validateConfigurationin interfaceIConfiguration- Throws:
InvalidConfigurationException
-
toString
-