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 |
|---|---|
| SlicedFileManager |
MaxFileSize
Declaration
protected long MaxFileSize
Field Value
| Type | Description |
|---|---|
| System.Int64 |
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.Int64 | timestamp | |
| System.Byte[] | message | the array of bytes |
| System.Int32 | offset | |
| System.Int32 | length |
Returns
| Type | Description |
|---|---|
| System.Int64 |
Overrides
Exceptions
| Type | Condition |
|---|---|
| System.IO.IOException | 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.String | fullPathToStorageFile | the path to file of in/out file |
| System.String | 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.String | fullPathToStorageFile | the path to in/out file |
Overrides
GetMaxFileSize()
Declaration
public virtual long GetMaxFileSize()
Returns
| Type | Description |
|---|---|
| System.Int64 |
Initialize()
Initialize the storage.
This method should be called before file storage is used.
Storage file and some variable (like FormatLength) are initialized in it.
Declaration
public override long Initialize()
Returns
| Type | Description |
|---|---|
| System.Int64 | the last sequence number |
Overrides
Exceptions
| Type | Condition |
|---|---|
| System.IO.IOException | 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.Int64 | maxFileSize |
Implements
System.IDisposable