Class SlicedFileMessageStorage
Inheritance
System.Object
SlicedFileMessageStorage
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FixAntenna.FixEngine.Storage.File
Assembly: FixAntenna.Core.dll
Syntax
public class SlicedFileMessageStorage : FlatFileMessageStorage, IMessageStorage, IDisposable
Constructors
SlicedFileMessageStorage(Config)
Declaration
public SlicedFileMessageStorage(Config config)
Parameters
Type | Name | Description |
---|---|---|
Config | config |
Fields
FileManager
Declaration
protected SlicedFileManager FileManager
Field Value
Type | Description |
---|---|
Sliced |
MaxFileSize
Declaration
protected long MaxFileSize
Field Value
Type | Description |
---|---|
System. |
Methods
AppendMessageInternal(Int64, Byte[], Int32, Int32)
Appends message to storage
Declaration
protected override long AppendMessageInternal(long timestamp, byte[] message, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System. |
timestamp | |
System. |
message | the array of bytes |
System. |
offset | |
System. |
length |
Returns
Type | Description |
---|---|
System. |
Overrides
Exceptions
Type | Condition |
---|---|
System. |
if I/O error occurred |
BackupStorageFile(String, String)
Backups storage file.
Declaration
public override void BackupStorageFile(string fullPathToStorageFile, string fullPathToDestinationBackupFile)
Parameters
Type | Name | Description |
---|---|---|
System. |
fullPathToStorageFile | the path to file of in/out file |
System. |
fullPathToDestinationBackupFile | the destination place to backup file |
Overrides
DeleteStorageFile(String)
Deletes storage file.
Declaration
public override void DeleteStorageFile(string fullPathToStorageFile)
Parameters
Type | Name | Description |
---|---|---|
System. |
fullPathToStorageFile | the path to in/out file |
Overrides
GetMaxFileSize()
Declaration
public virtual long GetMaxFileSize()
Returns
Type | Description |
---|---|
System. |
Initialize()
Initialize the storage.
This method should be called before file storage is used.
Storage file and some variable (like Format
Declaration
public override long Initialize()
Returns
Type | Description |
---|---|
System. |
the last sequence number |
Overrides
Exceptions
Type | Condition |
---|---|
System. |
if I/O error occurred |
NextChunk()
Declaration
public virtual void NextChunk()
SetMaxFileSize(Int64)
Declaration
public virtual void SetMaxFileSize(long maxFileSize)
Parameters
Type | Name | Description |
---|---|---|
System. |
maxFileSize |
Implements
System.IDisposable