Classes | |
class | DataManagerStrategy |
class | DataReader |
class | FileManager |
class | FileManagerStrategy |
struct | FileManagerStrategyOptions |
class | FileObject |
class | FileTokenInfo |
class | FileUploadStreamer |
struct | FileUploadStreamerOptions |
class | FileUploadTask |
class | FileUploadTaskAsync |
class | TokenStore |
struct | TokenStoreOptions |
Typedefs | |
using | DataToken = uint64_t |
template<typename T > | |
using | FileUploadTaskPtr = std::shared_ptr< FileUploadTask< T >> |
template<typename T > | |
using | TaskObservedBlockingQueue = Aws::DataFlow::ObservedBlockingQueue< TaskPtr< T >> |
template<typename T > | |
using | TaskObservedQueue = Aws::DataFlow::ObservedQueue< TaskPtr< T >> |
template<typename T > | |
using | TaskPtr = std::shared_ptr< Aws::DataFlow::Task< T >> |
template<typename T > | |
using | TaskSink = Aws::DataFlow::Sink< TaskPtr< T >> |
Enumerations | |
enum | TokenStatus { ACTIVE, INACTIVE } |
Functions | |
template<typename T , typename O , class = typename std::enable_if<std::is_base_of<DataReader<T>, O>::value, O>::type> | |
std::shared_ptr< FileUploadStreamer< T > > | createFileUploadStreamer (std::shared_ptr< O > file_manager, FileUploadStreamerOptions file_manager_options) |
static const std::string | kTokenStoreFile ("token_store.info") |
bool | operator!= (const FileTokenInfo &lhs, const FileTokenInfo &rhs) |
bool | operator== (const FileTokenInfo &lhs, const FileTokenInfo &rhs) |
void | printCache (std::unordered_map< DataToken, FileTokenInfo > token_store, std::unordered_map< std::string, std::list< DataToken >> file_tokens, std::unordered_map< std::string, FileTokenInfo > staged_tokens_) |
void | sanitizePath (std::string &path) |
Variables | |
static const FileManagerStrategyOptions | kDefaultFileManagerStrategyOptions {"~/.ros/cwlogs", "cwlog", ".log", 1024, 1024*1024, false} |
static constexpr const char * | kEofKey = "eof" |
static constexpr const char * | kFilePathKey = "file_path" |
static constexpr const char * | kPositionKey = "position" |
static constexpr std::chrono::milliseconds | kTimeout = std::chrono::minutes(5) |
using Aws::FileManagement::DataToken = typedef uint64_t |
Definition at line 39 of file file_manager_strategy.h.
using Aws::FileManagement::FileUploadTaskPtr = typedef std::shared_ptr<FileUploadTask<T>> |
Definition at line 108 of file file_upload_task.h.
using Aws::FileManagement::TaskObservedBlockingQueue = typedef Aws::DataFlow::ObservedBlockingQueue<TaskPtr<T>> |
Definition at line 114 of file file_upload_task.h.
using Aws::FileManagement::TaskObservedQueue = typedef Aws::DataFlow::ObservedQueue<TaskPtr<T>> |
Definition at line 111 of file file_upload_task.h.
using Aws::FileManagement::TaskPtr = typedef std::shared_ptr<Aws::DataFlow::Task<T>> |
Definition at line 105 of file file_upload_task.h.
using Aws::FileManagement::TaskSink = typedef Aws::DataFlow::Sink<TaskPtr<T>> |
Definition at line 117 of file file_upload_task.h.
Enumerator | |
---|---|
ACTIVE | |
INACTIVE |
Definition at line 34 of file file_manager_strategy.h.
std::shared_ptr<FileUploadStreamer<T> > Aws::FileManagement::createFileUploadStreamer | ( | std::shared_ptr< O > | file_manager, |
FileUploadStreamerOptions | file_manager_options | ||
) |
Create a file upload manager complete with a file status monitor attached to the file_manager, and a task based queue.
T | the type of messages the file uploader will handle |
file_manager | to use as the source of these messages |
Invalid | Argument for the file manager |
Definition at line 40 of file file_management_factory.h.
|
static |
|
inline |
Definition at line 135 of file file_manager_strategy.h.
|
inline |
Definition at line 131 of file file_manager_strategy.h.
void Aws::FileManagement::printCache | ( | std::unordered_map< DataToken, FileTokenInfo > | token_store, |
std::unordered_map< std::string, std::list< DataToken >> | file_tokens, | ||
std::unordered_map< std::string, FileTokenInfo > | staged_tokens_ | ||
) |
Definition at line 79 of file file_manager_strategy.cpp.
void Aws::FileManagement::sanitizePath | ( | std::string & | path | ) |
Sanitizes the path provided by making sure it ends with a '/' character and also replacing the '~', if it's at the front of the string, with the value of the $HOME environment variable. If $HOME is not set it attempts to use $ROS_HOME. If niether is set then it throws a runtime exception.
Definition at line 34 of file file_manager_strategy.cpp.
|
static |
Definition at line 75 of file file_manager_options.h.
|
static |
Definition at line 42 of file file_manager_strategy.h.
|
static |
Definition at line 43 of file file_manager_strategy.h.
|
static |
Definition at line 41 of file file_manager_strategy.h.
|
static |
Definition at line 39 of file file_upload_streamer.h.