#include <log_file_manager.h>
Public Types | |
using | Timestamp = long |
Public Member Functions | |
LogFileManager ()=default | |
LogFileManager (const Aws::FileManagement::FileManagerStrategyOptions &options) | |
LogFileManager (const std::shared_ptr< Aws::FileManagement::DataManagerStrategy > &file_manager_strategy) | |
FileObject< LogCollection > | readBatch (size_t batch_size) override |
void | write (const LogCollection &data) override |
~LogFileManager () override=default | |
![]() | |
void | deleteStaleData () |
FileManager () | |
FileManager (std::shared_ptr< DataManagerStrategy > file_manager_strategy) | |
FileManager (const FileManagerStrategyOptions &options) | |
void | fileUploadCompleteStatus (const Aws::DataFlow::UploadStatus &upload_status, const FileObject< T > &log_messages) override |
bool | isDataAvailableToRead () override |
DataToken | read (std::string &data) |
void | setStatusMonitor (std::shared_ptr< StatusMonitor > status_monitor) override |
bool | shutdown () override |
bool | start () override |
virtual void | write (const T &data)=0 |
virtual | ~FileManager ()=default |
![]() | |
ServiceState | getState () |
virtual std::string | getStatusString () |
Service () | |
virtual | ~Service ()=default |
Public Attributes | |
Timestamp | latestTime = 0 |
Additional Inherited Members | |
![]() | |
void | setState (ServiceState new_state) |
![]() | |
std::mutex | active_delete_stale_data_mutex_ |
std::shared_ptr< DataManagerStrategy > | file_manager_strategy_ |
std::shared_ptr< StatusMonitor > | file_status_monitor_ |
std::vector< FileManagement::DataToken > | stale_data_ |
size_t | total_logs_uploaded_ |
The log specific file manager. Handles the specific writes of log data.
Definition at line 36 of file log_file_manager.h.
Definition at line 70 of file log_file_manager.h.
|
default |
Default Constructor.
|
inline |
Definition at line 45 of file log_file_manager.h.
|
inlineexplicit |
Definition at line 49 of file log_file_manager.h.
|
overridedefault |
|
overridevirtual |
Implements Aws::FileManagement::DataReader< T >.
Definition at line 36 of file log_file_manager.cpp.
|
override |
Definition at line 92 of file log_file_manager.cpp.
Timestamp Aws::CloudWatchLogs::Utils::LogFileManager::latestTime = 0 |
Definition at line 71 of file log_file_manager.h.