quickfix
Class FileStoreFactory

java.lang.Object
  extended by quickfix.FileStoreFactory
All Implemented Interfaces:
MessageStoreFactory
Direct Known Subclasses:
CachedFileStoreFactory

public class FileStoreFactory
extends java.lang.Object
implements MessageStoreFactory

Creates a message store that stores messages in a file. Compatibility note: The file formats are not compatible with QF C++/JNI. If you upgrading from the QuickFIX JNI, you must delete your old session state files.)


Field Summary
static java.lang.String SETTING_FILE_STORE_MAX_CACHED_MSGS
          Numeric option limiting the number of messages stored in the in-memory message index.
static java.lang.String SETTING_FILE_STORE_PATH
          File path for writing the message store.
static java.lang.String SETTING_FILE_STORE_SYNC
          Boolean option for controlling whether the FileStore syncs to the hard drive on every write.
protected  SessionSettings settings
           
 
Constructor Summary
FileStoreFactory(SessionSettings settings)
          Create the factory with configuration in session settings.
 
Method Summary
 MessageStore create(SessionID sessionID)
          Creates a file-based message store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SETTING_FILE_STORE_PATH

public static final java.lang.String SETTING_FILE_STORE_PATH
File path for writing the message store.

See Also:
Constant Field Values

SETTING_FILE_STORE_SYNC

public static final java.lang.String SETTING_FILE_STORE_SYNC
Boolean option for controlling whether the FileStore syncs to the hard drive on every write. It's safer to sync, but it's also much slower (100x or more slower in some cases).

See Also:
Constant Field Values

SETTING_FILE_STORE_MAX_CACHED_MSGS

public static final java.lang.String SETTING_FILE_STORE_MAX_CACHED_MSGS
Numeric option limiting the number of messages stored in the in-memory message index. If, during recovery, one or more messages are requested whose offset/size is not cached in memory, the on-disk header file will be searched. Values can be from 0 to Integer.MAX_VALUE (default), inclusive.

See Also:
Constant Field Values

settings

protected final SessionSettings settings
Constructor Detail

FileStoreFactory

public FileStoreFactory(SessionSettings settings)
Create the factory with configuration in session settings.

Parameters:
settings -
Method Detail

create

public MessageStore create(SessionID sessionID)
Creates a file-based message store.

Specified by:
create in interface MessageStoreFactory
Parameters:
sessionID - session ID for the message store.
Returns:
the message store implementation