Remote Host Waiter

open class RemoteHostWaiter

The RemoteHostWaiter class is used to wait the remote host restart after a reboot to perform the post reboot routines such restart the services, etc...

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
interface OnHostRestart
The OnHostRestart interface used as callback to perform routines after a host restarted

Properties

Link copied to clipboard
private val CONNECTION_ERROR_MESSAGE: String = "Impossible reach the %s address, you need to restart manually as needed"
CONNECTION_ERROR_MESSAGE the error message to display when an error occurred during the connection attempts
Link copied to clipboard
private val MAX_RETRY_ATTEMPTS: Int = 10
MAX_RETRY_ATTEMPTS the maximum attempts to retry to connect to the rebooted host
Link copied to clipboard
private val MAX_RETRY_TIMEOUT: Int
MAX_RETRY_TIMEOUT the maximum timeout to wait for a connection attempts

Functions

Link copied to clipboard
Method used to wait the restart of the host to perform the post reboot routines