示例#1
0
mesos::Resources arangodb::filterNotIsPorts (const mesos::Resources& resources) {
#if MESOS_FILTER
  return resources.filter(notIsPorts);
#else
  return filterResource(resources, notIsDisk);
#endif
}
示例#2
0
mesos::Resources arangodb::filterIsDisk (const mesos::Resources& resources) {
#if MESOS_FILTER
  return resources.filter(isDisk);
#else
  return filterResource(resources, isDisk);
#endif
}
示例#3
0
mesos::Resources arangodb::filterIsPersistentVolume (const mesos::Resources& resources) {
#if MESOS_FILTER
  return resources.filter(Resources::isPersistentVolume);
#else
  return filterResource(resources, mesos::Resources::isPersistentVolume);
#endif
}
mesos::Resources arangodb::filterIsDefaultRole (const mesos::Resources& resources) {
  return resources.filter(isDefaultRole);
}
mesos::Resources arangodb::filterNotIsPorts (const mesos::Resources& resources) {
  return resources.filter(notIsPorts);
}
mesos::Resources arangodb::filterIsPersistentVolume (const mesos::Resources& resources) {
  return resources.filter(mesos::Resources::isPersistentVolume);
}
mesos::Resources arangodb::filterNotIsDisk (const mesos::Resources& resources) {
  return resources.filter(notIsDisk);
}
mesos::Resources arangodb::filterNoRoundingError (const mesos::Resources& resources) {
  return resources.filter(isNoRoundingError);
}