| 207 | } |
| 208 | |
| 209 | IdState MultiClientSessionContext::GetIdState() { |
| 210 | CHECK(Singleton<IDMgr>::Get() != nullptr); |
| 211 | CHECK(Singleton<TaskStreamIndexManager>::Get() != nullptr); |
| 212 | CHECK(Singleton<LazyJobBuildAndInferCtxMgr>::Get() != nullptr); |
| 213 | IdState id_state; |
| 214 | |
| 215 | id_state.job_id_state_ = Singleton<LazyJobBuildAndInferCtxMgr>::Get()->GetJobIdCount(); |
| 216 | Singleton<IDMgr>::Get()->SaveIdAndTaskIndex(&id_state); |
| 217 | Singleton<TaskStreamIndexManager>::Get()->GetTaskStreamIndex(&id_state.stream_index_state_); |
| 218 | return id_state; |
| 219 | } |
| 220 | |
| 221 | void MultiClientSessionContext::SetIdState(const IdState& id_state) { |
| 222 | CHECK(Singleton<IDMgr>::Get() != nullptr); |
no test coverage detected