omegalib
13.1
|
The asset cache service manages a set of caches. More...
#include <AssetCacheService.h>
Public Member Functions | |
AssetCacheService () | |
virtual | ~AssetCacheService () |
virtual void | initialize () |
virtual void | dispose () |
virtual TcpConnection * | createConnection (const ConnectionInfo &ci) |
Called when a new client connected. More... | |
void | closeConnection (AssetCacheConnection *conn) |
void | setCacheRoot (const String &value) |
Sets the cache root. More... | |
String | getCacheRoot () |
Public Member Functions inherited from omicron::TcpServer | |
TcpServer () | |
~TcpServer () | |
void | setPort (int value) |
int | getPort () |
virtual void | start () |
virtual void | stop () |
virtual void | poll () |
TcpConnection * | getConnection (int id) |
Public Member Functions inherited from omicron::Service | |
Service () | |
int | getServiceId () |
virtual | ~Service () |
ServiceManager * | getManager () |
String | getName () |
bool | isInitialized () |
bool | isDebugEnabled () |
Returns true if debug mode is enabled for this service. More... | |
ServicePollPriority | getPollPriority () |
void | setPollPriority (ServicePollPriority value) |
virtual void | setup (Setting &settings) |
void | lockEvents () |
void | unlockEvents () |
Event * | writeHead () |
Event * | readHead () |
Event * | readTail () |
Event * | getEvent (int index) |
void | doSetup (ServiceManager *mng, Setting &settings) |
void | doInitialize (ServiceManager *sm, int serviceId) |
Public Member Functions inherited from omicron::ReferenceType | |
ReferenceType () | |
virtual | ~ReferenceType () |
void | ref () |
void | unref () |
long | refCount () |
Static Public Attributes | |
static const int | DefaultPort = 22500 |
Additional Inherited Members | |
Public Types inherited from omicron::Service | |
enum | ServiceType { Pointer = EventBase::ServiceTypePointer, Mocap = EventBase::ServiceTypeMocap, Keyboard = EventBase::ServiceTypeKeyboard, Controller = EventBase::ServiceTypeController, Ui = EventBase::ServiceTypeUi, Generic = EventBase::ServiceTypeGeneric, Brain = EventBase::ServiceTypeBrain, Wand = EventBase::ServiceTypeWand, Speech = EventBase::ServiceTypeSpeech } |
This enumeration is kept for compatibility reason and may be removed in the future. More... | |
enum | ServicePollPriority { PollFirst, PollNormal, PollLast } |
Static Public Member Functions inherited from omicron::ReferenceType | |
static void | printObjCounts () |
Protected Member Functions inherited from omicron::TcpServer | |
virtual void | accept () |
virtual void | handleAccept (TcpConnection *newConnection, const asio::error_code &error) |
Static Protected Attributes inherited from omicron::ReferenceType | |
static List< ReferenceType * > | mysObjList |
The asset cache service manages a set of caches.
A cache is a group of files that can be updated by a remote asset cache manager. The asset cache is used to synchronize files between machines: for instance, the head node on a cluster can use it to send sound assets to a sound server.
omicron::AssetCacheService::AssetCacheService | ( | ) |
|
virtual |
void omicron::AssetCacheService::closeConnection | ( | AssetCacheConnection * | conn | ) |
|
virtual |
Called when a new client connected.
Creates a TcpConnection instance to handle communication User code should reimplement this method.
Reimplemented from omicron::TcpServer.
|
virtual |
Reimplemented from omicron::Service.
|
inline |
|
virtual |
Reimplemented from omicron::TcpServer.
|
inline |
Sets the cache root.
The cache root directory contains one subdirectory for each cache managed by the service.
|
static |