当前位置: 首页>>代码示例>>C++>>正文


C++ SlaveInfo::hostname方法代码示例

本文整理汇总了C++中SlaveInfo::hostname方法的典型用法代码示例。如果您正苦于以下问题:C++ SlaveInfo::hostname方法的具体用法?C++ SlaveInfo::hostname怎么用?C++ SlaveInfo::hostname使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SlaveInfo的用法示例。


在下文中一共展示了SlaveInfo::hostname方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Resources

bool operator==(const SlaveInfo& left, const SlaveInfo& right)
{
  return left.hostname() == right.hostname() &&
    Resources(left.resources()) == Resources(right.resources()) &&
    Attributes(left.attributes()) == Attributes(right.attributes()) &&
    left.id() == right.id() &&
    left.checkpoint() == right.checkpoint() &&
    left.port() == right.port();
}
开发者ID:davelester,项目名称:mesos,代码行数:9,代码来源:type_utils.cpp

示例2: Resources

inline bool operator == (const SlaveInfo& left, const SlaveInfo& right)
{
  return left.hostname() == right.hostname() &&
    left.webui_hostname() == right.webui_hostname() &&
    Resources(left.resources()) == Resources(right.resources()) &&
    internal::Attributes(left.attributes()) ==
    internal::Attributes(right.attributes()) &&
    left.has_webui_port() == right.has_webui_port() &&
    (!left.has_webui_port() || (left.webui_port() == right.webui_port())) &&
    left.has_id() == right.has_id() &&
    (!left.has_id() || (left.id() == right.id())) &&
    left.has_checkpoint() == right.has_checkpoint() &&
    (!left.has_checkpoint() || (left.checkpoint() == right.checkpoint()));
}
开发者ID:WuErPing,项目名称:mesos,代码行数:14,代码来源:type_utils.hpp

示例3: registered

 virtual void registered(ExecutorDriver* driver,
                         const ExecutorInfo& executorInfo,
                         const FrameworkInfo& frameworkInfo,
                         const SlaveInfo& slaveInfo)
 {
   cout << "Registered executor on " << slaveInfo.hostname() << endl;
 }
开发者ID:447327642,项目名称:mesos,代码行数:7,代码来源:test_executor.cpp

示例4: registered

  virtual void registered(ExecutorDriver* driver,
                          const ExecutorInfo& executorInfo,
                          const FrameworkInfo& frameworkInfo,
                          const SlaveInfo& slaveInfo)
  {
	host_name= slaveInfo.hostname();
	localPeerCount = 0;
	totalPeerCount = 0;
  }
开发者ID:DaMSL,项目名称:K3,代码行数:9,代码来源:k3_executor.cpp

示例5: registered

void CephExecutor::registered(
      ExecutorDriver* driver,
      const ExecutorInfo& executorInfo,
      const FrameworkInfo& frameworkInfo,
      const SlaveInfo& slaveInfo)
{
  //set class member myHostname
  myHostname = slaveInfo.hostname();
  LOG(INFO) << "Registered executor on " << myHostname;
  //sandboxAbsolutePath
  char temp[4096];
  sandboxAbsolutePath = getcwd(temp, 4096) ? string(temp) : std::string("");
  LOG(INFO) << "sandbox absolute path: " << sandboxAbsolutePath;
}
开发者ID:depay,项目名称:ceph-mesos,代码行数:14,代码来源:CephExecutor.cpp

示例6: registered

    void registered (ExecutorDriver* driver,
                     const ExecutorInfo& executorInfo,
                     const FrameworkInfo& frameworkInfo,
                     const SlaveInfo& slaveInfo)  override {
      _executorId = executorInfo.executor_id().value();

      cout
      << "Registered executor " << _executorId << " on "
      << slaveInfo.hostname()
      << endl;

      string data;
      slaveInfo.SerializeToString(&data);

      driver->sendFrameworkMessage(data);
    }
开发者ID:joerg84,项目名称:arangodb-mesos,代码行数:16,代码来源:executor.cpp

示例7: reregistered

 virtual void reregistered(ExecutorDriver* driver,
                           const SlaveInfo& slaveInfo)
 {
   cout << "Re-registered executor on " << slaveInfo.hostname() << endl;
 }
开发者ID:447327642,项目名称:mesos,代码行数:5,代码来源:test_executor.cpp


注:本文中的SlaveInfo::hostname方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。