Apache Mesos
Public Types | Public Member Functions | Static Public Member Functions | List of all members
mesos::internal::slave::Containerizer Class Referenceabstract

#include <containerizer.hpp>

Inheritance diagram for mesos::internal::slave::Containerizer:
mesos::internal::slave::ComposingContainerizer mesos::internal::slave::DockerContainerizer mesos::internal::slave::MesosContainerizer mesos::internal::tests::MockContainerizer mesos::internal::tests::TestContainerizer mesos::internal::tests::MockDockerContainerizer

Public Types

enum  LaunchResult { LaunchResult::SUCCESS, LaunchResult::ALREADY_LAUNCHED, LaunchResult::NOT_SUPPORTED }
 

Public Member Functions

virtual ~Containerizer ()
 
virtual process::Future< Nothingrecover (const Option< state::SlaveState > &state)=0
 
virtual process::Future< LaunchResultlaunch (const ContainerID &containerId, const mesos::slave::ContainerConfig &containerConfig, const std::map< std::string, std::string > &environment, const Option< std::string > &pidCheckpointPath)=0
 
virtual process::Future< process::http::Connectionattach (const ContainerID &containerId)
 
virtual process::Future< Nothingupdate (const ContainerID &containerId, const Resources &resourceRequests, const google::protobuf::Map< std::string, Value::Scalar > &resourceLimits={})=0
 
virtual process::Future< ResourceStatistics > usage (const ContainerID &containerId)=0
 
virtual process::Future< ContainerStatus > status (const ContainerID &containerId)
 
virtual process::Future< Option< mesos::slave::ContainerTermination > > wait (const ContainerID &containerId)=0
 
virtual process::Future< Option< mesos::slave::ContainerTermination > > destroy (const ContainerID &containerId)=0
 
virtual process::Future< bool > kill (const ContainerID &containerId, int signal)
 
virtual process::Future< hashset< ContainerID > > containers ()=0
 
virtual process::Future< Nothingremove (const ContainerID &containerId)
 
virtual process::Future< NothingpruneImages (const std::vector< Image > &excludedImages)=0
 

Static Public Member Functions

static Try< Containerizer * > create (const Flags &flags, bool local, Fetcher *fetcher, GarbageCollector *gc, SecretResolver *secretResolver=nullptr, VolumeGidManager *volumeGidManager=nullptr, PendingFutureTracker *futureTracker=nullptr, CSIServer *csiServer=nullptr)
 
static Try< Resourcesresources (const Flags &flags)
 

Member Enumeration Documentation

Enumerator
SUCCESS 
ALREADY_LAUNCHED 
NOT_SUPPORTED 

Constructor & Destructor Documentation

virtual mesos::internal::slave::Containerizer::~Containerizer ( )
inlinevirtual

Member Function Documentation

virtual process::Future<process::http::Connection> mesos::internal::slave::Containerizer::attach ( const ContainerID &  containerId)
inlinevirtual
virtual process::Future<hashset<ContainerID> > mesos::internal::slave::Containerizer::containers ( )
pure virtual
static Try<Containerizer*> mesos::internal::slave::Containerizer::create ( const Flags flags,
bool  local,
Fetcher fetcher,
GarbageCollector gc,
SecretResolver secretResolver = nullptr,
VolumeGidManager volumeGidManager = nullptr,
PendingFutureTracker futureTracker = nullptr,
CSIServer csiServer = nullptr 
)
static
virtual process::Future<Option<mesos::slave::ContainerTermination> > mesos::internal::slave::Containerizer::destroy ( const ContainerID &  containerId)
pure virtual
virtual process::Future<bool> mesos::internal::slave::Containerizer::kill ( const ContainerID &  containerId,
int  signal 
)
inlinevirtual
virtual process::Future<LaunchResult> mesos::internal::slave::Containerizer::launch ( const ContainerID &  containerId,
const mesos::slave::ContainerConfig &  containerConfig,
const std::map< std::string, std::string > &  environment,
const Option< std::string > &  pidCheckpointPath 
)
pure virtual
virtual process::Future<Nothing> mesos::internal::slave::Containerizer::pruneImages ( const std::vector< Image > &  excludedImages)
pure virtual
virtual process::Future<Nothing> mesos::internal::slave::Containerizer::recover ( const Option< state::SlaveState > &  state)
pure virtual
virtual process::Future<Nothing> mesos::internal::slave::Containerizer::remove ( const ContainerID &  containerId)
inlinevirtual
static Try<Resources> mesos::internal::slave::Containerizer::resources ( const Flags flags)
static
virtual process::Future<ContainerStatus> mesos::internal::slave::Containerizer::status ( const ContainerID &  containerId)
inlinevirtual
virtual process::Future<Nothing> mesos::internal::slave::Containerizer::update ( const ContainerID &  containerId,
const Resources resourceRequests,
const google::protobuf::Map< std::string, Value::Scalar > &  resourceLimits = {} 
)
pure virtual
virtual process::Future<ResourceStatistics> mesos::internal::slave::Containerizer::usage ( const ContainerID &  containerId)
pure virtual
virtual process::Future<Option<mesos::slave::ContainerTermination> > mesos::internal::slave::Containerizer::wait ( const ContainerID &  containerId)
pure virtual

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