|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.epam.fixengine.storage.FilesystemStorageFactory
public class FilesystemStorageFactory
Provides ability to store messages in the file.
Field Summary | |
---|---|
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 |
Constructor Summary | |
---|---|
FilesystemStorageFactory()
Deprecated. |
|
FilesystemStorageFactory(Configuration configuration)
Creates the FilesystemStorageFactory storage. |
Method Summary | |
---|---|
LogFileLocator |
getIncomingLogFileLocator()
|
MessageStorage |
getIncomingMessageStorage(SessionParameters sessionParameters)
Gets incoming message storage. |
LogFileLocator |
getOutgoingLogFileLocator()
|
MessageStorage |
getOutgoingMessageStorage(SessionParameters sessionParameters)
Gets outgoing message storage. |
Queue<FIXFieldListWithType> |
getQueue(SessionParameters sessionParameters)
Gets queue for session. |
boolean |
loadSessionParameters(SessionParameters sessionParameters)
Loads session parameters from file. |
void |
saveSessionParameters(SessionParameters sessionParameters)
Stores session parameters to file. |
void |
setIncomingLogFileLocator(LogFileLocator incomingLogFileLocator)
|
void |
setOutgoingLogFileLocator(LogFileLocator outgoingLogFileLocator)
|
void |
setPropertyFileLocator(LogFileLocator propertyFileLocator)
|
void |
setQueueFileLocator(LogFileLocator queueFileLocator)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected LogFileLocator outgoingLogFileLocator
protected LogFileLocator incomingLogFileLocator
protected LogFileLocator backupOutgoingLogFileLocator
protected LogFileLocator backupIncomingLogFileLocator
protected LogFileLocator propertyFileLocator
protected LogFileLocator queueFileLocator
protected com.epam.fixengine.session.util.ConfigurationAdaptor config
Constructor Detail |
---|
@Deprecated public FilesystemStorageFactory()
FilesystemStorageFactory
storage.
public FilesystemStorageFactory(Configuration configuration)
FilesystemStorageFactory
storage.
Method Detail |
---|
public LogFileLocator getOutgoingLogFileLocator()
public void setPropertyFileLocator(LogFileLocator propertyFileLocator)
public void setQueueFileLocator(LogFileLocator queueFileLocator)
public void setOutgoingLogFileLocator(LogFileLocator outgoingLogFileLocator)
public LogFileLocator getIncomingLogFileLocator()
public void setIncomingLogFileLocator(LogFileLocator incomingLogFileLocator)
public Queue<FIXFieldListWithType> getQueue(SessionParameters sessionParameters)
inMemoryQueue
configured, the queue will be InMemoryQueue
,
otherwise PersistentInMemoryQueue
.
getQueue
in interface StorageFactory
sessionParameters
- the parameter for session
public MessageStorage getIncomingMessageStorage(SessionParameters sessionParameters)
getIncomingMessageStorage
in interface StorageFactory
sessionParameters
- the session parameters
StorageFactory
,
FlatFileMessageStorage
public MessageStorage getOutgoingMessageStorage(SessionParameters sessionParameters)
outgoingStorageIndexed
configured,
the message storage will be IndexedMessageStorage
,
otherwise FlatFileMessageStorage
getOutgoingMessageStorage
in interface StorageFactory
sessionParameters
- the session parameters
public void saveSessionParameters(SessionParameters sessionParameters) throws IOException
saveSessionParameters
in interface StorageFactory
sessionParameters
- the session parameters
IOException
- - if I/O error occurredpublic boolean loadSessionParameters(SessionParameters sessionParameters)
loadSessionParameters
in interface StorageFactory
sessionParameters
- the session parameters
return true if loaded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |