Class SshConfiguration
java.lang.Object
org.sentrysoftware.metricshub.engine.configuration.OsCommandConfiguration
org.sentrysoftware.metricshub.engine.configuration.SshConfiguration
- All Implemented Interfaces:
IConfiguration
Configuration class for SSH connections. It represents the configuration for SSH (Secure Shell) connections
in the MetricsHub engine.
-
Field Summary
Fields inherited from class org.sentrysoftware.metricshub.engine.configuration.OsCommandConfiguration
DEFAULT_TIMEOUT -
Constructor Summary
ConstructorsConstructorDescriptionSshConfiguration(boolean useSudo, Set<String> useSudoCommands, String sudoCommand, Long timeout, String username, char[] password, File privateKey) Builder for creating instances ofSshConfiguration. -
Method Summary
-
Constructor Details
-
SshConfiguration
public SshConfiguration(boolean useSudo, Set<String> useSudoCommands, String sudoCommand, Long timeout, String username, char[] password, File privateKey) Builder for creating instances ofSshConfiguration.- Parameters:
useSudo- Flag indicating whether to use sudo for commands.useSudoCommands- Set of sudo commands to be used.sudoCommand- The sudo command to execute.timeout- The timeout for command execution in seconds.username- The SSH username for authentication.password- The SSH password for authentication.privateKey- The private key file for SSH key-based authentication.
-
-
Method Details
-
toString
- Overrides:
toStringin classOsCommandConfiguration
-