B2BITS FIX Antenna HFT  1.0.18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SessionLogJava Class Reference

#include <SessionLogJava.h>

+ Inheritance diagram for SessionLogJava:
+ Collaboration diagram for SessionLogJava:

Public Member Functions

virtual void clear ()
 
virtual bool defineLogFormat (SessionLog::LogFormat &logFormat)
 
virtual bool getCurrentSessionRecord (SessionRecord &sessionRecord)
 
virtual const SessionLog::Size getIndexFileSize ()
 
virtual bool moveNextMessage ()
 
SessionLogJavaoperator= (const SessionLogJava &)=delete
 
virtual void registerProperties (Utils::FileProperties &fileProp)
 
virtual bool seekTo (SessionLog::Offset offset)
 
 SessionLogJava (std::string const &baseName, std::string const &confBaseName, LogType logType, FileAccess fileAccess, LogFormat logFormat)
 
 SessionLogJava (const SessionLogJava &)=delete
 
virtual void setLogFormat (const SessionLog::LogFormat &logFormat)
 
virtual void toBegining ()
 
virtual void toEnd ()
 
virtual Offset write (const SessionLog::SessionRecord &sessionRecord)
 
- Public Member Functions inherited from SessionLog
std::string getBaseName () const
 
std::string getConfFileName () const
 
bool isIndexFormatDefined () const
 

Static Public Member Functions

static SessionLog::LogFormat getLogFormat (const std::string &filePath, SessionLog::LogType logTypeToUse=SessionLogRwBase::FileIn)
 

Protected Types

typedef Engine::IndexFileJava_Block IndexData
 
typedef Engine::IndexFileJava IndexFile
 

Protected Member Functions

bool getCurrentMessage (std::string &rawMsg, std::string &timestamp)
 
- Protected Member Functions inherited from SessionLog
 SessionLog (std::string const &baseName, std::string const &indexFileName, std::string const &logFileName, const FileAccess fileAccess, LogType logType)
 

Static Protected Member Functions

static std::string buildIndexFileName (std::string const &baseName, SessionLogJava::LogType logType)
 
static std::string buildLogFileName (std::string const &baseName, SessionLogJava::LogType logType)
 
static size_t calcTimestampSize (char *buf, int size)
 

Protected Attributes

const std::string baseName_
 
IndexData currentIndexData_
 
std::unique_ptr< IndexFileindexFile_
 
Offset m_currentOffset
 
bool validIndexData_
 
- Protected Attributes inherited from SessionLog
std::string _confFileName
 
const std::string m_baseName
 
const FileAccess m_fileAccess
 
std::shared_ptr< System::FileExm_indexFileStream
 
bool m_indexFormatDefined
 
std::shared_ptr< System::FileExm_logFileStream
 
const LogType m_logType
 

Static Protected Attributes

static const System::u32 FileStorageJava_TimestampSize_Micro = 27
 
static const System::u32 FileStorageJava_TimestampSize_Milli = 24
 
static const System::u32 FileStorageJava_TimestampSize_Nano = 30
 

Additional Inherited Members

- Public Types inherited from SessionLog
using FileAccess = SessionLogRwBase::FileAccess
 
typedef System::u64 Flags
 
typedef System::u8 Format
 
typedef struct
SessionLog::LogFormat 
LogFormat
 
typedef System::u8 LogSessionType
 
using LogType = SessionLogRwBase::LogType
 
typedef System::FileEx::offset_t Offset
 
typedef System::u32 SeqNum
 
typedef System::FileEx::offset_t Size
 
- Static Public Attributes inherited from SessionLog
static Format const FMT_MEM_MAPPED = 1
 
static Format const FMT_ORDINAL = 0
 
static Format const FMT_UNKNOWN = 99
 
static Flags const IDX_FLG_EOL_WIN = 2
 
static Flags const IDX_FLG_HAS_EOL = 1
 
static Flags const IDX_FLG_HAS_TIMESTAMP = 4
 
static const Flags IDX_FLGS_DEF = IDX_FLG_HAS_EOL
 
static LogSessionType const LOG_TYPE_CPP = 1
 
static LogSessionType const LOG_TYPE_JAVA = 2
 
static LogSessionType const LOG_TYPE_UNKNOWN = 0
 

Member Typedef Documentation

Constructor & Destructor Documentation

SessionLogJava::SessionLogJava ( std::string const &  baseName,
std::string const &  confBaseName,
LogType  logType,
FileAccess  fileAccess,
LogFormat  logFormat 
)
SessionLogJava::SessionLogJava ( const SessionLogJava )
delete

Member Function Documentation

static std::string SessionLogJava::buildIndexFileName ( std::string const &  baseName,
SessionLogJava::LogType  logType 
)
inlinestaticprotected
static std::string SessionLogJava::buildLogFileName ( std::string const &  baseName,
SessionLogJava::LogType  logType 
)
inlinestaticprotected
static size_t SessionLogJava::calcTimestampSize ( char *  buf,
int  size 
)
staticprotected
virtual void SessionLogJava::clear ( )
inlinevirtual

Implements SessionLog.

virtual bool SessionLogJava::defineLogFormat ( SessionLog::LogFormat logFormat)
virtual

Implements SessionLog.

bool SessionLogJava::getCurrentMessage ( std::string &  rawMsg,
std::string &  timestamp 
)
protected
virtual bool SessionLogJava::getCurrentSessionRecord ( SessionRecord sessionRecord)
virtual

Implements SessionLog.

virtual const SessionLog::Size SessionLogJava::getIndexFileSize ( )
virtual

Implements SessionLog.

static SessionLog::LogFormat SessionLogJava::getLogFormat ( const std::string &  filePath,
SessionLog::LogType  logTypeToUse = SessionLogRwBase::FileIn 
)
static
virtual bool SessionLogJava::moveNextMessage ( )
virtual

Implements SessionLog.

SessionLogJava& SessionLogJava::operator= ( const SessionLogJava )
delete
virtual void SessionLogJava::registerProperties ( Utils::FileProperties fileProp)
inlinevirtual

Implements SessionLog.

virtual bool SessionLogJava::seekTo ( SessionLog::Offset  offset)
virtual

Implements SessionLog.

virtual void SessionLogJava::setLogFormat ( const SessionLog::LogFormat logFormat)
virtual

Implements SessionLog.

virtual void SessionLogJava::toBegining ( )
virtual

Implements SessionLog.

virtual void SessionLogJava::toEnd ( )
virtual

Implements SessionLog.

virtual Offset SessionLogJava::write ( const SessionLog::SessionRecord sessionRecord)
virtual

Implements SessionLog.

Member Data Documentation

const std::string SessionLogJava::baseName_
protected
IndexData SessionLogJava::currentIndexData_
protected
const System::u32 SessionLogJava::FileStorageJava_TimestampSize_Micro = 27
staticprotected
const System::u32 SessionLogJava::FileStorageJava_TimestampSize_Milli = 24
staticprotected
const System::u32 SessionLogJava::FileStorageJava_TimestampSize_Nano = 30
staticprotected
std::unique_ptr<IndexFile> SessionLogJava::indexFile_
protected
Offset SessionLogJava::m_currentOffset
protected
bool SessionLogJava::validIndexData_
protected