biz.onixs.fix.engine.storage
Class FileBasedStorageRepository

java.lang.Object
  extended by biz.onixs.fix.engine.storage.AbstractStorageRepository
      extended by biz.onixs.fix.engine.storage.FileBasedStorageRepository
All Implemented Interfaces:
StorageRepository

public class FileBasedStorageRepository
extends AbstractStorageRepository

Repository of file-based session storage.


Field Summary
static String LAST_INBOUND_SEQ_NUM_KEY
           
static String LAST_OUTBOUND_SEQ_NUM_KEY
           
static int MAX_FILEOPEN_ATTEMTS
           
static String TERMINATION_STATUS
           
 
Fields inherited from class biz.onixs.fix.engine.storage.AbstractStorageRepository
keepInMessages, maxStorageSize
 
Constructor Summary
FileBasedStorageRepository()
           
 
Method Summary
 SessionStorage create(SessionId sessionId, boolean cleanStart)
          Creates session storage from scratch or restores from its previous state.
 long getRotateStorageSize()
           
 boolean isScramblePassword()
          Returns whether to scramble passwords in the session storage
 void setRotateStorageSize(long rotateStorageSize)
           
 void setScramblePassword(boolean scramblePassword)
          Sets whether to scramble passwords in the session storage
 
Methods inherited from class biz.onixs.fix.engine.storage.AbstractStorageRepository
getMaxStorageSize, isKeepInMessages, setKeepInMessages, setMaxStorageSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAST_INBOUND_SEQ_NUM_KEY

public static final String LAST_INBOUND_SEQ_NUM_KEY
See Also:
Constant Field Values

LAST_OUTBOUND_SEQ_NUM_KEY

public static final String LAST_OUTBOUND_SEQ_NUM_KEY
See Also:
Constant Field Values

TERMINATION_STATUS

public static final String TERMINATION_STATUS
See Also:
Constant Field Values

MAX_FILEOPEN_ATTEMTS

public static final int MAX_FILEOPEN_ATTEMTS
See Also:
Constant Field Values
Constructor Detail

FileBasedStorageRepository

public FileBasedStorageRepository()
Method Detail

create

public SessionStorage create(SessionId sessionId,
                             boolean cleanStart)
Description copied from interface: StorageRepository
Creates session storage from scratch or restores from its previous state.

Parameters:
sessionId - session id
cleanStart - clean previous session state if any
Returns:
session storage

isScramblePassword

public boolean isScramblePassword()
Returns whether to scramble passwords in the session storage

Returns:
scramble password flag

setScramblePassword

public void setScramblePassword(boolean scramblePassword)
Sets whether to scramble passwords in the session storage

Parameters:
scramblePassword - scramble password flag

getRotateStorageSize

public long getRotateStorageSize()

setRotateStorageSize

public void setRotateStorageSize(long rotateStorageSize)


Copyright © 2005-2012 Onix Solutions. All Rights Reserved.