* Creates a ServiceMethod, used for tracking a single service method * invocation (via the ServiceTracker). The passed name of the * ServiceMethod is used to group statistics (e.g. counts and durations) * for similar invocations; the passed signature is used to uniquely * identify the particular invocation in the log. * * note: A version of this constructor is provided that automatically *
| 426 | * invocation (usually name plus parameters). |
| 427 | */ |
| 428 | ServiceMethod::ServiceMethod(ServiceTracker *tracker, |
| 429 | const string &name, |
| 430 | const string &signature, |
| 431 | bool featureLogOnly) |
| 432 | : tracker_(tracker), name_(name), signature_(signature), |
| 433 | featureLogOnly_(featureLogOnly) |
| 434 | { |
| 435 | // note: timer_ automatically starts at construction. |
| 436 | |
| 437 | // invoke tracker to start service |
| 438 | // note: Might throw. If it throws, then this object's destructor |
| 439 | // won't be called, which is according to plan: finishService() is |
| 440 | // only supposed to be matched to startService() if startService() |
| 441 | // returns without error. |
| 442 | tracker_->startService(*this); |
| 443 | } |
| 444 | |
| 445 | ServiceMethod::ServiceMethod(ServiceTracker *tracker, |
| 446 | const string &name, |
nothing calls this directly
no test coverage detected