The asset cache manager connects to a remote cache service and synchronizes a list of files with it.
More...
#include <AssetCacheManager.h>
The asset cache manager connects to a remote cache service and synchronizes a list of files with it.
omicron::AssetCacheManager::AssetCacheManager |
( |
| ) |
|
virtual omicron::AssetCacheManager::~AssetCacheManager |
( |
| ) |
|
|
virtual |
void omicron::AssetCacheManager::addCacheHost |
( |
const String & |
| ) |
|
Sets the hostname of the machine running the cache service Must be done before starting a sync.
void omicron::AssetCacheManager::addFileToCacheList |
( |
const String & |
file | ) |
|
Add a file name to the list of files that need to be synchronized.
Must be done before starting a sync.
String omicron::AssetCacheManager::cacheName |
( |
| ) |
|
|
inline |
void omicron::AssetCacheManager::clearCacheFileList |
( |
| ) |
|
void omicron::AssetCacheManager::clearCacheHosts |
( |
| ) |
|
uint omicron::AssetCacheManager::getCachePort |
( |
| ) |
|
|
inline |
bool omicron::AssetCacheManager::isForceOverwriteEnabled |
( |
| ) |
|
|
inline |
bool omicron::AssetCacheManager::isSynching |
( |
| ) |
|
|
inline |
bool omicron::AssetCacheManager::isVerbose |
( |
| ) |
|
|
inline |
void omicron::AssetCacheManager::setCacheName |
( |
const String & |
value | ) |
|
|
inline |
Set the name of the cache handled by this manager.
Must be done before starting a sync.
void omicron::AssetCacheManager::setCachePort |
( |
uint |
value | ) |
|
|
inline |
Sets the listening port of the cache service.
Must be done before starting a sync.
void omicron::AssetCacheManager::setForceOverwrite |
( |
bool |
value | ) |
|
|
inline |
When set to true, forces overwriting of files in the cache.
Useful for replacing cache contents. Must be done before starting a sync.
void omicron::AssetCacheManager::setVerbose |
( |
bool |
value | ) |
|
|
inline |
When set to true, output detailed messages about synching.
void omicron::AssetCacheManager::startSync |
( |
| ) |
|
Start synching.
This call is nonblocking and will return immediately. Use isSynching to check for completion.
void omicron::AssetCacheManager::sync |
( |
| ) |
|
Start synching.
This is a blocking call. It will not return until synching is done.
friend class CacheConnection |
|
friend |
friend class CacheSyncThread |
|
friend |
The documentation for this class was generated from the following file: