17 #ifndef __INTERNAL_EVOLVE_HPP__ 18 #define __INTERNAL_EVOLVE_HPP__ 20 #include <google/protobuf/message.h> 63 v1::AgentID
evolve(
const SlaveID& slaveId);
64 v1::AgentInfo
evolve(
const SlaveInfo& slaveInfo);
65 v1::ContainerInfo
evolve(
const ContainerInfo& containerInfo);
66 v1::DomainInfo
evolve(
const DomainInfo& domainInfo);
67 v1::DrainInfo
evolve(
const DrainInfo& drainInfo);
68 v1::ExecutorID
evolve(
const ExecutorID& executorId);
69 v1::ExecutorInfo
evolve(
const ExecutorInfo& executorInfo);
70 v1::FileInfo
evolve(
const FileInfo& fileInfo);
71 v1::FrameworkID
evolve(
const FrameworkID& frameworkId);
72 v1::FrameworkInfo
evolve(
const FrameworkInfo& frameworkInfo);
73 v1::InverseOffer
evolve(
const InverseOffer& inverseOffer);
74 v1::KillPolicy
evolve(
const KillPolicy& killPolicy);
75 v1::MachineID
evolve(
const MachineID& machineId);
76 v1::MasterInfo
evolve(
const MasterInfo& masterInfo);
77 v1::Offer
evolve(
const Offer& offer);
78 v1::OfferID
evolve(
const OfferID& offerId);
79 v1::OperationStatus
evolve(
const OperationStatus&
status);
80 v1::Resource
evolve(
const Resource& resource);
81 v1::ResourceProviderID
evolve(
const ResourceProviderID& resourceProviderId);
82 v1::Resources
evolve(
const Resources& resources);
83 v1::Task
evolve(
const Task& task);
84 v1::TaskID
evolve(
const TaskID& taskId);
85 v1::TaskInfo
evolve(
const TaskInfo& taskInfo);
87 v1::UUID
evolve(
const UUID& uuid);
91 v1::agent::ProcessIO
evolve(
const agent::ProcessIO& processIO);
95 v1::maintenance::ClusterStatus
evolve(
96 const maintenance::ClusterStatus& cluster);
97 v1::maintenance::Schedule
evolve(
const maintenance::Schedule&
schedule);
105 template <
typename T1,
typename T2>
106 google::protobuf::RepeatedPtrField<T1>
evolve(
107 const google::protobuf::RepeatedPtrField<T2>& t2s)
109 google::protobuf::RepeatedPtrField<T1> t1s;
110 t1s.Reserve(t2s.size());
112 foreach (
const T2& t2, t2s) {
167 template <v1::master::Response::Type T>
173 template <v1::agent::Response::Type T>
177 template <v1::agent::Response::Type T>
183 #endif // __INTERNAL_EVOLVE_HPP__
v1::AgentID evolve(const SlaveID &slaveId)
Result< ProcessStatus > status(pid_t pid)
Definition: proc.hpp:166
mesos::v1::scheduler::Call Call
Definition: mesos.hpp:2851
mesos::v1::scheduler::Event Event
Definition: mesos.hpp:2852
Definition: attributes.hpp:24
mesos::v1::scheduler::Response Response
Definition: mesos.hpp:2854
Try< Nothing > schedule(const mesos::maintenance::Schedule &schedule, const hashmap< MachineID, Machine > &machines)
Performs the following checks on the new maintenance schedule: