本文整理汇总了C++中MasterInfo::pid方法的典型用法代码示例。如果您正苦于以下问题:C++ MasterInfo::pid方法的具体用法?C++ MasterInfo::pid怎么用?C++ MasterInfo::pid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MasterInfo
的用法示例。
在下文中一共展示了MasterInfo::pid方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
bool operator == (const MasterInfo& left, const MasterInfo& right)
{
return left.id() == right.id() &&
left.ip() == right.ip() &&
left.port() == right.port() &&
left.pid() == right.pid() &&
left.hostname() == right.hostname();
}
示例2: reregistered
void reregistered(
SchedulerDriver* driver,
const MasterInfo& masterInfo) override
{
LOG(INFO) << "Reregistered with " << masterInfo.pid();
if (generator == nullptr) {
LOG(INFO) << "Starting LoadGenerator at QPS: " << qps;
generator = new LoadGenerator(driver, qps, duration);
}
}
示例3: registered
virtual void registered(SchedulerDriver* driver,
const FrameworkID&,
const MasterInfo& masterInfo)
{
LOG(INFO) << "Registered with " << masterInfo.pid();
if (generator == NULL) {
LOG(INFO) << "Starting LoadGenerator at QPS: " << qps;
generator = new LoadGenerator(driver, qps, duration);
}
}