17 #ifndef __LOG_LOG_HPP__
18 #define __LOG_LOG_HPP__
48 const std::string& path,
49 const std::set<process::UPID>&
pids,
55 const std::string& path,
56 const std::string& servers,
58 const std::string& znode,
84 const std::set<zookeeper::Group::Membership>& memberships);
86 void failed(
const std::string&
message);
92 const bool autoInitialize;
97 std::list<process::Promise<process::Shared<Replica>>*> promises;
113 return network->
watch(0u)
158 const std::list<Action>& actions);
166 std::list<process::Promise<Nothing>*> promises;
177 const std::string& bytes);
201 void failed(
const std::string&
message,
const std::string& reason);
207 std::list<process::Promise<Nothing>*> promises;
217 #endif // __LOG_LOG_HPP__
LogWriterProcess(mesos::log::Log *log)
Try< Bytes > size(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
Definition: stat.hpp:100
process::Future< mesos::log::Log::Position > catchup()
process::Future< mesos::log::Log::Position > ending()
virtual void initialize()
Invoked when a process gets spawned.
Definition: duration.hpp:32
virtual void finalize()
Invoked when a process is terminated.
process::Future< mesos::log::Log::Position > beginning()
process::Future< size_t > watch(size_t size, WatchMode mode=NOT_EQUAL_TO) const
Definition: network.hpp:367
process::Future< process::Shared< Replica > > recover()
hashmap< std::string, MessageHandler > message
Definition: process.hpp:443
virtual void initialize()
Invoked when a process gets spawned.
An "untyped" PID, used to encapsulate the process ID for lower-layer abstractions (eg...
Definition: pid.hpp:39
virtual void finalize()
Invoked when a process is terminated.
virtual void finalize()
Invoked when a process is terminated.
LogProcess(size_t _quorum, const std::string &path, const std::set< process::UPID > &pids, bool _autoInitialize, const Option< std::string > &metricsPrefix)
process::Future< Option< mesos::log::Log::Position > > append(const std::string &bytes)
process::Future< std::list< mesos::log::Log::Entry > > read(const mesos::log::Log::Position &from, const mesos::log::Log::Position &to)
Future< X > then(lambda::CallableOnce< Future< X >(const T &)> f) const
Definition: future.hpp:1592
Definition: coordinator.hpp:40
void discarded(Future< U > future)
LogReaderProcess(mesos::log::Log *log)
Definition: process.hpp:493
virtual void initialize()
Invoked when a process gets spawned.
Definition: metrics.hpp:31
Try< std::set< pid_t > > pids()
Definition: freebsd.hpp:62
PID< MetricsProcess > metrics
process::Future< Option< mesos::log::Log::Position > > start()
process::Future< Option< mesos::log::Log::Position > > truncate(const mesos::log::Log::Position &to)
Definition: future.hpp:57