Package-level declarations

Types

Link copied to clipboard
object Daemon : CoroutineScope

The Grader Daemon singleton that is always running to handle database and messaging operations

Link copied to clipboard
open class Job<PayloadT : Payload>(val jobName: String) : CoroutineScope

Represents an executable job taking its corresponding payload

Link copied to clipboard
data class JobMessage(val job: String, val payload: String)

Represents a message containing the job name and the job payload

Link copied to clipboard
Link copied to clipboard
data class JobRequest(val job: Job<Payload>, val payload: Payload, val reservedRawJobMessage: String)

Represents a job containing the Job, the Payload this job accepts, and the original reservedRawJobMessage

Link copied to clipboard
object MessagingManager : Messenger, CoroutineScope

Contains methods for processing jobs from worker queues and subscribed channels

Link copied to clipboard

Abstraction for the message broker used in MessagingManager

Properties

Link copied to clipboard
private val dispatcher: ExecutorCoroutineDispatcher
private val dispatcher: ExecutorCoroutineDispatcher
Link copied to clipboard
private const val numThreads: Int = 2