Manages MsgStorages.
More...
#include <B2BITS_StorageMgr.h>
|
virtual MsgStorage * | create (const std::string &sender, const std::string &target, FIXVersion version, System::u64 sessionGlobalID, System::u64 sessionInternalState, int outgoingStorageSize, StorageMgr::PersistentSessionInfo *info, const std::string &location="", const std::string &baseFilePath="")=0 |
| Creates new MsgStorage object at subFolder. More...
|
|
virtual MsgStorage * | create (PersistentSessionInfo *info, int outgoingStorageSize)=0 |
| Creates new MsgStorage object. More...
|
|
virtual bool | existStorage (const std::string &sender, const std::string &target, bool *reuse)=0 |
| Loads information about sessions that were terminated non-gracefully. More...
|
|
virtual bool | load (const std::string &sender, const std::string &target, PersistentSessionInfo *info)=0 |
| Loads information about the session that was terminated non-gracefully. More...
|
|
virtual bool | load (const std::string &sender, const std::string &target, FIXVersion version, PersistentSessionInfo *info)=0 |
| Loads information about the session that was terminated non-gracefully. More...
|
|
virtual bool | load (const std::string &baseFilePath, PersistentSessionInfo *info)=0 |
| Loads information about the session that was terminated non-gracefully. More...
|
|
virtual bool | load (const std::string &sender, const std::string &target, FIXVersion version, Session::ActiveConnection type, PersistentSessionInfo *info) |
| Loads information about the session that was terminated non-gracefully. More...
|
|
virtual MessageStorageType | type () const =0 |
| Return storage type. More...
|
|
Information about the persistent sessions that were non-gracefully terminated.
Engine::StorageMgr::StorageMgr |
( |
| ) |
|
|
protected |
virtual Engine::StorageMgr::~StorageMgr |
( |
| ) |
|
|
protectedvirtual |
Creates new MsgStorage object at subFolder.
- Parameters
-
sender | - session sender |
target | - session target |
version | - session's version |
outgoingStorageSize | - Specifies size of the transient message storage |
location | - path to the folder where files have to be created. When empty - files will be created in log folder. |
baseFilePath | Path to the storage without etension. if empty, path will be calculated based on sender, target and engine log directory parameters. |
- Returns
- new MsgStorage object
Implemented in Engine::FileStorageMgrT< FileT >, and Engine::FileStorageMgrT< System::MCachedFile >.
static void Engine::StorageMgr::destroy |
( |
| ) |
|
|
static |
virtual bool Engine::StorageMgr::existStorage |
( |
const std::string & |
sender, |
|
|
const std::string & |
target, |
|
|
bool * |
reuse |
|
) |
| |
|
pure virtual |
Loads information about sessions that were terminated non-gracefully.
- Returns
- the number of found sessions. Search for the session's <Sender, Target> storage and read it.
- Parameters
-
sender | - session's sender name |
target | - session's target name |
- Returns
- 'true' if the information was found, otherwise - false.
Implemented in Engine::FileStorageMgrT< FileT >, and Engine::FileStorageMgrT< System::MCachedFile >.
static void Engine::StorageMgr::init |
( |
| ) |
|
|
static |
virtual bool Engine::StorageMgr::load |
( |
const std::string & |
sender, |
|
|
const std::string & |
target, |
|
|
PersistentSessionInfo * |
info |
|
) |
| |
|
pure virtual |
Loads information about the session that was terminated non-gracefully.
- Parameters
-
sender | - session's sender name |
target | - session's target name |
version | - fix protocol version |
type | - active connection type |
info | - Information about the persistent session |
- Returns
- 'true' if the information was found, otherwise - false.
Reimplemented in Engine::FileStorageMgrT< FileT >, and Engine::FileStorageMgrT< System::MCachedFile >.
Returns the pointer to the instance of StorageMgr.