Apache Mesos
Classes | Namespaces | Functions
state.hpp File Reference
#include <unistd.h>
#include <vector>
#include <mesos/resources.hpp>
#include <mesos/type_utils.hpp>
#include <process/pid.hpp>
#include <stout/hashmap.hpp>
#include <stout/hashset.hpp>
#include <stout/path.hpp>
#include <stout/protobuf.hpp>
#include <stout/try.hpp>
#include <stout/utils.hpp>
#include <stout/uuid.hpp>
#include <stout/os/mkdir.hpp>
#include <stout/os/mktemp.hpp>
#include <stout/os/rename.hpp>
#include <stout/os/rm.hpp>
#include <stout/os/write.hpp>
#include "common/resources_utils.hpp"
#include "messages/messages.hpp"

Go to the source code of this file.

Classes

struct  mesos::internal::slave::state::TaskState
 
struct  mesos::internal::slave::state::RunState
 
struct  mesos::internal::slave::state::ExecutorState
 
struct  mesos::internal::slave::state::FrameworkState
 
struct  mesos::internal::slave::state::ResourcesState
 
struct  mesos::internal::slave::state::SlaveState
 
struct  mesos::internal::slave::state::State
 

Namespaces

 mesos
 
 mesos::internal
 
 mesos::internal::slave
 
 mesos::internal::slave::state
 
 mesos::internal::slave::state::internal
 

Functions

Try< State > mesos::internal::slave::state::recover (const std::string &rootDir, bool strict)
 
template<typename T >
Result< T > mesos::internal::slave::state::read (const std::string &path)
 
template<>
Result< std::string > mesos::internal::slave::state::read< std::string > (const std::string &path)
 
template<>
Result< Resources > mesos::internal::slave::state::read< Resources > (const std::string &path)
 
Try< Nothingmesos::internal::slave::state::internal::checkpoint (const std::string &path, const std::string &message, bool sync, bool downgradeResources)
 
template<typename T , typename std::enable_if< std::is_convertible< T *, google::protobuf::Message * >::value, int >::type = 0>
Try< Nothingmesos::internal::slave::state::internal::checkpoint (const std::string &path, T message, bool sync, bool downgrade)
 
Try< Nothingmesos::internal::slave::state::internal::checkpoint (const std::string &path, google::protobuf::RepeatedPtrField< Resource > resources, bool sync, bool downgrade)
 
Try< Nothingmesos::internal::slave::state::internal::checkpoint (const std::string &path, const Resources &resources, bool sync, bool downgrade)
 
template<typename T >
Try< Nothingmesos::internal::slave::state::checkpoint (const std::string &path, const T &t, bool sync=false, bool downgrade=true)