Remote
Host
Waiter
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
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
MAX_RETRY_ATTEMPTS the
maximum attempts to retry to connect to the rebooted host
Link copied to clipboard
MAX_RETRY_TIMEOUT the maximum
timeout to wait for a connection attempts
Functions
Link copied to clipboard
open fun waitForHostRestart(host: BrownieHost, attempts: AtomicInteger, onHostRestart: RemoteHostWaiter.OnHostRestart)
Method used to wait the restart of the host
to perform the post reboot routines