Class OsCommandConfiguration
java.lang.Object
org.sentrysoftware.metricshub.engine.configuration.OsCommandConfiguration
- All Implemented Interfaces:
IConfiguration
- Direct Known Subclasses:
SshConfiguration
The OsCommandConfiguration class represents the configuration for executing OS commands in the MetricsHub engine.
-
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 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