Apache Mesos
Public Types | Public Member Functions | Public Attributes | List of all members
mesos::v1::ResourceConversion Class Reference

Represents a resource conversion, usually as a result of an offer operation. More...

#include <resources.hpp>

Public Types

typedef lambda::function< Try< Nothing >const Resources &)> PostValidation
 

Public Member Functions

 ResourceConversion (const Resources &_consumed, const Resources &_converted, const Option< PostValidation > &_postValidation=None())
 
Try< Resourcesapply (const Resources &resources) const
 

Public Attributes

Resources consumed
 
Resources converted
 
Option< PostValidationpostValidation
 

Detailed Description

Represents a resource conversion, usually as a result of an offer operation.

See more details in Resources::apply method.

Member Typedef Documentation

Constructor & Destructor Documentation

mesos::v1::ResourceConversion::ResourceConversion ( const Resources _consumed,
const Resources _converted,
const Option< PostValidation > &  _postValidation = None() 
)
inline

Member Function Documentation

Try<Resources> mesos::v1::ResourceConversion::apply ( const Resources resources) const

Member Data Documentation

Resources mesos::v1::ResourceConversion::consumed
Resources mesos::v1::ResourceConversion::converted
Option<PostValidation> mesos::v1::ResourceConversion::postValidation

The documentation for this class was generated from the following file: