public class FilesystemStorageFactory extends Object implements StorageFactory
Modifier and Type | Field and Description |
---|---|
protected LogFileLocator |
backupIncomingLogFileLocator
Locator for backup files of incoming storage
|
protected LogFileLocator |
backupOutgoingLogFileLocator
Locator for backup files of outgoing storage
|
protected com.epam.fixengine.session.util.ConfigurationAdaptor |
config |
protected LogFileLocator |
incomingLogFileLocator
Locator for incoming storage file
|
protected LogFileLocator |
outgoingLogFileLocator
Locator for outgoing storage file
|
protected LogFileLocator |
propertyFileLocator
Locator for session property file
|
protected LogFileLocator |
queueFileLocator
Locator for outgoing queue
|
protected LogFileLocator |
stateFileLocator |
Constructor and Description |
---|
FilesystemStorageFactory()
Deprecated.
|
FilesystemStorageFactory(com.epam.fixengine.configuration.Configuration configuration)
Creates the
FilesystemStorageFactory storage. |
protected LogFileLocator outgoingLogFileLocator
protected LogFileLocator incomingLogFileLocator
protected LogFileLocator backupOutgoingLogFileLocator
protected LogFileLocator backupIncomingLogFileLocator
protected LogFileLocator propertyFileLocator
protected LogFileLocator stateFileLocator
protected LogFileLocator queueFileLocator
protected com.epam.fixengine.session.util.ConfigurationAdaptor config
@Deprecated public FilesystemStorageFactory()
FilesystemStorageFactory
storage.public FilesystemStorageFactory(com.epam.fixengine.configuration.Configuration configuration)
FilesystemStorageFactory
storage.configuration
- incoming configurationprotected void createLocators()
protected void checkDirectories()
public LogFileLocator getOutgoingLogFileLocator()
public void setOutgoingLogFileLocator(LogFileLocator outgoingLogFileLocator)
public LogFileLocator getIncomingLogFileLocator()
public void setIncomingLogFileLocator(LogFileLocator incomingLogFileLocator)
public LogFileLocator getBackupOutgoingLogFileLocator()
public void setBackupOutgoingLogFileLocator(LogFileLocator backupOutgoingLogFileLocator)
public LogFileLocator getBackupIncomingLogFileLocator()
public void setBackupIncomingLogFileLocator(LogFileLocator backupIncomingLogFileLocator)
public void setPropertyFileLocator(LogFileLocator propertyFileLocator)
public LogFileLocator getPropertyFileLocator()
public void setQueueFileLocator(LogFileLocator queueFileLocator)
public LogFileLocator getQueueFileLocator()
protected LogFileLocator getStateFileLocator()
protected void setStateFileLocator(LogFileLocator stateFileLocator)
public Queue<FIXFieldListWithType> getQueue(SessionParameters sessionParameters)
inMemoryQueue
configured, the queue will be InMemoryQueue
,
otherwise PersistentInMemoryQueue
.getQueue
in interface StorageFactory
sessionParameters
- the parameter for sessionpublic MessageStorage getIncomingMessageStorage(SessionParameters sessionParameters)
getIncomingMessageStorage
in interface StorageFactory
sessionParameters
- the session parametersStorageFactory
,
FlatFileMessageStorage
public MessageStorage getOutgoingMessageStorage(SessionParameters sessionParameters)
outgoingStorageIndexed
configured,
the message storage will be IndexedMessageStorage
,
otherwise FlatFileMessageStorage
getOutgoingMessageStorage
in interface StorageFactory
sessionParameters
- the session parameterspublic void saveSessionParameters(SessionParameters sessionParameters, FIXSessionRuntimeState state) throws IOException
saveSessionParameters
in interface StorageFactory
sessionParameters
- the session parametersIOException
- - if I/O error occurredpublic boolean loadSessionParameters(SessionParameters sessionParameters, FIXSessionRuntimeState state)
loadSessionParameters
in interface StorageFactory
sessionParameters
- the session parameters
return true if loadedCopyright © 2000–2022 EPAM Systems. All rights reserved.