Safe Haskell | None |
---|
Objects in the job queue.
Synopsis
- type Timestamp = (Int, Int)
- data InputOpCode
- = ValidOpCode MetaOpCode
- | InvalidOpCode JSValue
- data QueuedOpCode = QueuedOpCode {
- qoInput :: InputOpCode
- qoStatus :: OpStatus
- qoResult :: JSValue
- qoLog :: [(Int, Timestamp, ELogType, JSValue)]
- qoPriority :: Int
- qoStartTimestamp :: (Maybe Timestamp)
- qoExecTimestamp :: (Maybe Timestamp)
- qoEndTimestamp :: (Maybe Timestamp)
- loadQueuedOpCode :: JSValue -> Result QueuedOpCode
- saveQueuedOpCode :: QueuedOpCode -> JSValue
- data QueuedJob = QueuedJob {
- qjId :: JobId
- qjOps :: [QueuedOpCode]
- qjReceivedTimestamp :: (Maybe Timestamp)
- qjStartTimestamp :: (Maybe Timestamp)
- qjEndTimestamp :: (Maybe Timestamp)
- qjLivelock :: (Maybe FilePath)
- qjProcessId :: (Maybe ProcessID)
- loadQueuedJob :: JSValue -> Result QueuedJob
- saveQueuedJob :: QueuedJob -> JSValue
Documentation
type Timestamp = (Int, Int) Source #
The ganeti queue timestamp type. It represents the time as the pair of seconds since the epoch and microseconds since the beginning of the second.
data InputOpCode Source #
An input opcode.
ValidOpCode MetaOpCode | OpCode was parsed successfully |
InvalidOpCode JSValue | Invalid opcode |
Instances
Eq InputOpCode # | |
Defined in Ganeti.JQueue.Objects (==) :: InputOpCode -> InputOpCode -> Bool (/=) :: InputOpCode -> InputOpCode -> Bool | |
Ord InputOpCode # | |
Defined in Ganeti.JQueue.Objects compare :: InputOpCode -> InputOpCode -> Ordering (<) :: InputOpCode -> InputOpCode -> Bool (<=) :: InputOpCode -> InputOpCode -> Bool (>) :: InputOpCode -> InputOpCode -> Bool (>=) :: InputOpCode -> InputOpCode -> Bool max :: InputOpCode -> InputOpCode -> InputOpCode min :: InputOpCode -> InputOpCode -> InputOpCode | |
Show InputOpCode # | |
Defined in Ganeti.JQueue.Objects showsPrec :: Int -> InputOpCode -> ShowS show :: InputOpCode -> String showList :: [InputOpCode] -> ShowS | |
JSON InputOpCode # | JSON instance for |
Defined in Ganeti.JQueue.Objects readJSON :: JSValue -> Result InputOpCode showJSON :: InputOpCode -> JSValue readJSONs :: JSValue -> Result [InputOpCode] showJSONs :: [InputOpCode] -> JSValue |
data QueuedOpCode Source #
QueuedOpCode | |
|
Instances
loadQueuedOpCode :: JSValue -> Result QueuedOpCode Source #
saveQueuedOpCode :: QueuedOpCode -> JSValue Source #
QueuedJob | |
|
Instances
Eq QueuedJob # | |
Ord QueuedJob # | |
Defined in Ganeti.JQueue.Objects | |
Show QueuedJob # | |
JSON QueuedJob # | |
ArrayObject QueuedJob # | |
Defined in Ganeti.JQueue.Objects | |
DictObject QueuedJob # | |
Arbitrary QueuedJob | |
loadQueuedJob :: JSValue -> Result QueuedJob Source #
saveQueuedJob :: QueuedJob -> JSValue Source #