Host Service

@Serializable
data class HostService(val id: String, val name: String, var pid: Long, var status: ServiceStatus, val configuration: HostService.ServiceConfiguration, val events: List<HostService.ServiceEvent> = emptyList(), val insertionDate: Long)

The HostService class represent the information about a service

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor(id: String, name: String, pid: Long, status: ServiceStatus, configuration: HostService.ServiceConfiguration, events: List<HostService.ServiceEvent> = emptyList(), insertionDate: Long)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@Serializable
data class ServiceConfiguration(val id: String, val programArguments: String = "", val purgeNohupOutAfterReboot: Boolean = true, val autoRunAfterHostReboot: Boolean = false)

The ServiceConfiguration class represent the configuration of a service

Link copied to clipboard
@Serializable
data class ServiceEvent(val id: String, val type: ServiceEventType, val eventDate: Long, val extra: JsonElement? = null)

The ServiceEvent class represent the information related to a service event

Properties

Link copied to clipboard

The configuration data of the service

Link copied to clipboard
@SerialName(value = "service_events" )
val events: List<HostService.ServiceEvent>

The events related to the service lifecycle

Link copied to clipboard
val id: String

The identifier of the service

Link copied to clipboard
@SerialName(value = "insertion_date" )
val insertionDate: Long

The date when the service has been registered

Link copied to clipboard
val name: String

The name of the service

Link copied to clipboard
var pid: Long

The pid of the service

Link copied to clipboard
var status: ServiceStatus

The status of the service