Apache Mesos
Namespaces | Enumerations | Functions
resources_utils.hpp File Reference
#include <vector>
#include <google/protobuf/repeated_field.h>
#include <mesos/mesos.hpp>
#include <mesos/resources.hpp>
#include <mesos/v1/mesos.hpp>
#include <mesos/v1/resources.hpp>
#include <stout/error.hpp>
#include <stout/nothing.hpp>
#include <stout/option.hpp>
#include <stout/try.hpp>

Go to the source code of this file.

Namespaces

 mesos
 

Enumerations

enum  mesos::ResourceFormat { mesos::PRE_RESERVATION_REFINEMENT, mesos::POST_RESERVATION_REFINEMENT, mesos::ENDPOINT }
 

Functions

bool mesos::needCheckpointing (const Resource &resource)
 
Try< Resources > mesos::applyCheckpointedResources (const Resources &resources, const Resources &checkpointedResources)
 
Result< ResourceProviderID > mesos::getResourceProviderId (const Offer::Operation &operation)
 
Try< std::vector
< ResourceConversion > > 
mesos::getResourceConversions (const Offer::Operation &operation)
 
Try< std::vector
< v1::ResourceConversion > > 
mesos::getResourceConversions (const v1::Offer::Operation &operation)
 
void mesos::convertResourceFormat (Resource *resource, ResourceFormat format)
 
void mesos::convertResourceFormat (google::protobuf::RepeatedPtrField< Resource > *resources, ResourceFormat format)
 
void mesos::convertResourceFormat (std::vector< Resource > *resources, ResourceFormat format)
 
void mesos::upgradeResource (Resource *resource)
 
void mesos::upgradeResources (google::protobuf::RepeatedPtrField< Resource > *resources)
 
void mesos::upgradeResources (std::vector< Resource > *resources)
 
void mesos::upgradeResources (google::protobuf::Message *message)
 
Option< Errormesos::validateAndUpgradeResources (Offer::Operation *operation)
 
Try< Nothingmesos::downgradeResource (Resource *resource)
 
Try< Nothingmesos::downgradeResources (google::protobuf::RepeatedPtrField< Resource > *resources)
 
Try< Nothingmesos::downgradeResources (std::vector< Resource > *resources)
 
Try< Nothingmesos::downgradeResources (google::protobuf::Message *message)