| 43 | namespace impala { |
| 44 | |
| 45 | int ProcessStateInfo::GetInt(const string& state_key) const { |
| 46 | ProcessStateMap::const_iterator it = process_state_map_.find(state_key); |
| 47 | if (it != process_state_map_.end()) return atoi(it->second.c_str()); |
| 48 | return -1; |
| 49 | } |
| 50 | |
| 51 | int64_t ProcessStateInfo::GetInt64(const string& state_key) const { |
| 52 | ProcessStateMap::const_iterator it = process_state_map_.find(state_key); |