Brownie Host Service

@Entity
open class BrownieHostService : EquinoxItem

The BrownieHostService class is useful to represent a Brownie's host service

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxItem

Constructors

Link copied to clipboard
constructor()
Constructor to instantiate the object
constructor(id: String, status: ServiceStatus, name: String, servicePath: String, pid: Long, insertionDate: Long, configuration: BrownieHostService.ServiceConfiguration, events: List<ServiceEvent>)
Constructor to instantiate the object

Types

Link copied to clipboard
@Entity
open class ServiceConfiguration : EquinoxItem
The ServiceConfiguration class is useful to represent the configuration related to a BrownieHostService

Properties

Link copied to clipboard
configuration the configuration of the service
Link copied to clipboard
Link copied to clipboard
events the events related to service lifecycle
Link copied to clipboard
protected val hItem: JsonHelper
Link copied to clipboard
private open var host: BrownieHost
host the host owner of the service
Link copied to clipboard
protected val id: String
Link copied to clipboard
insertionDate the date when the service has been inserted
Link copied to clipboard
val name: String
name the name of the service
Link copied to clipboard
val pid: Long
pid the pid of the service
Link copied to clipboard
servicePath the path of the service inside the filesystem of the host
Link copied to clipboard
status the status of the service

Functions

Link copied to clipboard
open fun getId(): String
Link copied to clipboard
open fun isRunning(): Boolean
Method to check whether the host is currently RUNNING
Link copied to clipboard
open fun isStopped(): Boolean
Method to check whether the host is currently STOPPED
Link copied to clipboard
open fun toString(): String