Hosts
Service
The HostsService class is useful to
manage all the BrownieHost
database operations
Author
N7ghtm4r3 - Tecknobit
Constructors
Link copied to clipboard
@Autowired
Constructor used to init the service
Properties
Functions
Link copied to clipboard
Method used to add a service to a host
Link copied to clipboard
open fun editService(host: BrownieHost, serviceId: String, serviceName: String, hPayload: JsonHelper)
Method used to edit an existing service of a
host
Link copied to clipboard
Method used to find the path of the service
inside the filesystem of the machine
Link copied to clipboard
Method used to check whether a host belongs
to the specified session
Link copied to clipboard
Method used to retrieve the current overview
of a host
Link copied to clipboard
Method used to get the current status of the
specified hosts
Link copied to clipboard
Link copied to clipboard
Method used to set the status of a host
Link copied to clipboard
Method used to handle the services of the
host has been rebooted or stopped
Link copied to clipboard
Method used to check whether a host belongs
to the specified session
Link copied to clipboard
Method used to reboot a host
Link copied to clipboard
Link copied to clipboard
Method used to restart a host after it has
been rebooted or stopped
Link copied to clipboard
private open fun safeguardHostData(hostId: String, sessionId: String, sshUser: String, sshPassword: String, hostAddress: String): RemoteHostData
Method used to safeguard the sensitive data
of a remote host
Link copied to clipboard
Method used to set the OFFLINE
status of a host and all its attached services
Link copied to clipboard
Method used to set the ONLINE
status of a host
Link copied to clipboard
Method used to set the REBOOTING
status of a host and all its attached services
Link copied to clipboard
Method used to start the remote host
Link copied to clipboard
Method used to stop a host
Link copied to clipboard
Method used to unregister a host from the
system