Apache Mesos
Functions
mesos::internal::master::maintenance::validation Namespace Reference

Functions

Try< Nothingschedule (const mesos::maintenance::Schedule &schedule, const hashmap< MachineID, Machine > &machines)
 Performs the following checks on the new maintenance schedule: More...
 
Try< Nothingunavailability (const Unavailability &unavailability)
 
Try< Nothingmachines (const google::protobuf::RepeatedPtrField< MachineID > &ids)
 Performs the following checks on a list of machines: More...
 
Try< Nothingmachine (const MachineID &id)
 Performs the following checks on a single machine: More...
 

Function Documentation

Try<Nothing> mesos::internal::master::maintenance::validation::machine ( const MachineID &  id)

Performs the following checks on a single machine:

  • The machine has at least a hostname or IP.
  • IP is correctly formed.
Try<Nothing> mesos::internal::master::maintenance::validation::machines ( const google::protobuf::RepeatedPtrField< MachineID > &  ids)

Performs the following checks on a list of machines:

  • Each machine appears in the list once and only once.
  • The list is non-empty.
  • All checks in the machine method below.
Try<Nothing> mesos::internal::master::maintenance::validation::schedule ( const mesos::maintenance::Schedule &  schedule,
const hashmap< MachineID, Machine > &  machines 
)

Performs the following checks on the new maintenance schedule:

  • Each window in the new schedule has at least one machine.
  • All unavailabilities adhere to the unavailability method below.
  • Each machine appears in the schedule once and only once.
  • All currently DOWN machines are present in the schedule.
  • All checks in the machine method below.
Try<Nothing> mesos::internal::master::maintenance::validation::unavailability ( const Unavailability &  unavailability)