Apache Mesos
Public Types | Public Member Functions | Public Attributes | List of all members
mesos::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::ResourceConversion::ResourceConversion ( const Resources _consumed,
const Resources _converted,
const Option< PostValidation > &  _postValidation = None() 
)
inline

Member Function Documentation

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

Member Data Documentation

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

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