Apache Mesos
Public Member Functions | List of all members
mesos::internal::slave::EphemeralPortsAllocator Class Reference

#include <port_mapping.hpp>

Public Member Functions

 EphemeralPortsAllocator (const IntervalSet< uint16_t > &total, size_t _portsPerContainer)
 
size_t portsPerContainer () const
 
Try< Interval< uint16_t > > allocate ()
 
void allocate (const Interval< uint16_t > &ports)
 
void deallocate (const Interval< uint16_t > &ports)
 
bool isManaged (const Interval< uint16_t > &ports)
 

Constructor & Destructor Documentation

mesos::internal::slave::EphemeralPortsAllocator::EphemeralPortsAllocator ( const IntervalSet< uint16_t > &  total,
size_t  _portsPerContainer 
)
inline

Member Function Documentation

Try<Interval<uint16_t> > mesos::internal::slave::EphemeralPortsAllocator::allocate ( )
void mesos::internal::slave::EphemeralPortsAllocator::allocate ( const Interval< uint16_t > &  ports)
void mesos::internal::slave::EphemeralPortsAllocator::deallocate ( const Interval< uint16_t > &  ports)
bool mesos::internal::slave::EphemeralPortsAllocator::isManaged ( const Interval< uint16_t > &  ports)
inline
size_t mesos::internal::slave::EphemeralPortsAllocator::portsPerContainer ( ) const
inline

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