| 572 | std::string Node::get_type() { return type_; } |
| 573 | |
| 574 | std::string Node::get_status() { |
| 575 | switch (state_) { |
| 576 | case NodeState::PENDING: |
| 577 | return "PENDING"; |
| 578 | case NodeState::NOT_INITED: |
| 579 | return "NOT_INITED"; |
| 580 | case NodeState::RUNNING: |
| 581 | return "RUNNING"; |
| 582 | case NodeState::CLOSED: |
| 583 | return "CLOSE"; |
| 584 | case NodeState::PAUSE_DONE: |
| 585 | return "PAUSE_DONE"; |
| 586 | } |
| 587 | return "UNKNOWN"; |
| 588 | } |
| 589 | |
| 590 | void Node::set_status(NodeState state) { |
| 591 | mutex_.lock(); |
no outgoing calls
no test coverage detected