+ // returns a tuple ( label, class)
+ // $node needs at least 'run_level' 'boot_state'
+ function status_label_class () {
+ $label= $this->run_level ? $this->run_level : ( $this->boot_state . '*' ) ;
+ if ($this->stale()) $label .= '...';
+ $class=($label=="boot") ? 'node-ok' : 'node-ko';
+ return array($label,$class);
+ }
+
+ static function status_footnote () {
+ return "state; * if node doesn't have an observed state; ... if status is stale (" . Node::stale_text() . ")";
+ }
+