Package com.epam.fixengine.storage.file
Class MMFMessageStorage
java.lang.Object
com.epam.fixengine.storage.file.AbstractFileMessageStorage
com.epam.fixengine.storage.file.FlatFileMessageStorage
com.epam.fixengine.storage.file.MMFMessageStorage
- All Implemented Interfaces:
MessageStorage
WARNING: This implementation used class which is Sun proprietary API(HotSpot VM).
User: Mykhailo_Sereda
Date: 07.05.12
Time: 18:34
-
Field Summary
Fields inherited from class com.epam.fixengine.storage.file.FlatFileMessageStorage
buffer, channelLength, channelPosition, dateFormattedBuffer, DELTA, maxBufferSize, maxStorageGrowSize, storageGrowSize, timestamp, timestampsInLogs, WRITE_BUFFER_LENGTH_DEF
Fields inherited from class com.epam.fixengine.storage.file.AbstractFileMessageStorage
accessFile, channel, configuration, isForcedFlush, maskedTags, NEW_LINE, storageTimestamp
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
appendMessageInternal
(byte[] timestampFormatted, byte[] message, int offset, int length) void
close()
Close the storage.long
Initialize the storage.Methods inherited from class com.epam.fixengine.storage.file.FlatFileMessageStorage
appendMessage, appendMessage, appendMessageInternal, getNextSequenceNumber, isEnabledTimestamp, openStorageFile, retrieveMessages, retrieveSequenceNumber
Methods inherited from class com.epam.fixengine.storage.file.AbstractFileMessageStorage
appendMessage, appendMessage, appendMessageInternal, backupFile, backupStorage, backupStorageFile, deleteFile, deleteStorageFile, getFile, getFormatLength, getPrefixFormat, initialized, isClosed, openStorage, retrieveMessage, setBackupFileLocator, setFile, setFileLocator
-
Constructor Details
-
MMFMessageStorage
public MMFMessageStorage(com.epam.fixengine.configuration.Configuration config)
-
-
Method Details
-
initialize
Description copied from class:AbstractFileMessageStorage
Initialize the storage.- Specified by:
initialize
in interfaceMessageStorage
- Overrides:
initialize
in classAbstractFileMessageStorage
- Returns:
- the last sequence number
- Throws:
IOException
- - if I/O error occurred
-
appendMessageInternal
public long appendMessageInternal(byte[] timestampFormatted, byte[] message, int offset, int length) throws IOException - Overrides:
appendMessageInternal
in classFlatFileMessageStorage
- Throws:
IOException
- See Also:
-
close
Description copied from class:AbstractFileMessageStorage
Close the storage.- Specified by:
close
in interfaceMessageStorage
- Overrides:
close
in classAbstractFileMessageStorage
- Throws:
IOException
- - if I/O error occurred
-