equal
deleted
inserted
replaced
144 sealed case class Node_Status( |
144 sealed case class Node_Status( |
145 unprocessed: Int, running: Int, warned: Int, failed: Int, finished: Int, consolidated: Boolean) |
145 unprocessed: Int, running: Int, warned: Int, failed: Int, finished: Int, consolidated: Boolean) |
146 { |
146 { |
147 def total: Int = unprocessed + running + warned + failed + finished |
147 def total: Int = unprocessed + running + warned + failed + finished |
148 def ok: Boolean = failed == 0 |
148 def ok: Boolean = failed == 0 |
|
149 |
|
150 def json: JSON.Object.T = |
|
151 JSON.Object("unprocessed" -> unprocessed, "running" -> running, "warned" -> warned, |
|
152 "failed" -> failed, "finished" -> finished, "consolidated" -> consolidated, |
|
153 "total" -> total, "ok" -> ok) |
149 } |
154 } |
150 |
155 |
151 def node_status( |
156 def node_status( |
152 state: Document.State, |
157 state: Document.State, |
153 version: Document.Version, |
158 version: Document.Version, |