Apache Mesos
Public Member Functions | Protected Attributes | List of all members
mesos::internal::logger::LogrotateContainerLogger Class Reference

#include <lib_logrotate.hpp>

Inheritance diagram for mesos::internal::logger::LogrotateContainerLogger:
mesos::slave::ContainerLogger

Public Member Functions

 LogrotateContainerLogger (const Flags &_flags)
 
 ~LogrotateContainerLogger () override
 
Try< Nothinginitialize () override
 Initializes this container logger. More...
 
process::Future< mesos::slave::ContainerIOprepare (const ContainerID &containerId, const mesos::slave::ContainerConfig &containerConfig) override
 
- Public Member Functions inherited from mesos::slave::ContainerLogger
virtual ~ContainerLogger ()
 
virtual process::Future< ContainerIOprepare (const ContainerID &containerId, const ContainerConfig &containerConfig)=0
 Called before Mesos creates a container. More...
 

Protected Attributes

Flags flags
 
process::Owned< LogrotateContainerLoggerProcess > process
 

Additional Inherited Members

- Static Public Member Functions inherited from mesos::slave::ContainerLogger
static Try< ContainerLogger * > create (const Option< std::string > &type)
 Create and initialize a container logger instance of the given type, specified by the container_logger agent flag. More...
 

Constructor & Destructor Documentation

mesos::internal::logger::LogrotateContainerLogger::LogrotateContainerLogger ( const Flags _flags)
mesos::internal::logger::LogrotateContainerLogger::~LogrotateContainerLogger ( )
override

Member Function Documentation

Try<Nothing> mesos::internal::logger::LogrotateContainerLogger::initialize ( )
overridevirtual

Initializes this container logger.

This method must be called before any other member function is called.

The container logger module should return an error if the particular module is not supported. For example, if the module implements log rotation via the logrotate utility, the module can return an error if the utility is not found.

Implements mesos::slave::ContainerLogger.

process::Future<mesos::slave::ContainerIO> mesos::internal::logger::LogrotateContainerLogger::prepare ( const ContainerID &  containerId,
const mesos::slave::ContainerConfig &  containerConfig 
)
override

Member Data Documentation

Flags mesos::internal::logger::LogrotateContainerLogger::flags
protected
process::Owned<LogrotateContainerLoggerProcess> mesos::internal::logger::LogrotateContainerLogger::process
protected

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