/////////////////////////////////////////////////////////////////////
| 221 | |
| 222 | ////////////////////////////////////////////////////////////////////////// |
| 223 | TMaster::TMaster(TRemoteQueryProcessor* queryProc, TContextDistributor* contextMaster) |
| 224 | : QueryProc(queryProc) |
| 225 | , ContextMaster(contextMaster) |
| 226 | { |
| 227 | int hostCount = contextMaster->GetSlaveCount(); |
| 228 | TVector<int> hostIds; |
| 229 | hostIds.resize(hostCount, 0); |
| 230 | Anywhere = CreateEnvironment(ENVID_ANYWHERE, hostIds); |
| 231 | |
| 232 | for (int i = 0; i < hostCount; ++i) |
| 233 | hostIds[i] = i; |
| 234 | Everywhere = CreateEnvironment(ENVID_EVERYWHERE, hostIds); |
| 235 | } |
| 236 | |
| 237 | IEnvironment* TMaster::CreateEnvironment(int envId, const TVector<int>& hostIds) { |
| 238 | return new TEnvironment(QueryProc.Get(), ContextMaster.Get(), envId, 0, hostIds); |
nothing calls this directly
no test coverage detected