public class FileBasedStorageRepository extends AbstractStorageRepository
| Constructor and Description |
|---|
FileBasedStorageRepository() |
| Modifier and Type | Method and Description |
|---|---|
SessionStorage |
create(SessionId sessionId,
ByteDecoder decoder,
boolean cleanStart)
Creates session storage from scratch or restores from its previous state.
|
int |
getCleanUpOldLogs()
Returns the number of days back older storage files will be deleted.
|
long |
getRotateStorageSize()
Returns the size at which the storage file is rotated.
|
String |
getStorageFolder()
Returns the storage folder.
|
boolean |
isArchiveStorage()
Returns whether to archive terminated storage.
|
void |
setArchiveStorage(boolean archiveStorage)
Sets whether to archive terminated storage.
|
void |
setCleanUpOldLogs(int daysBack)
Sets the number of days back older storage files will be deleted.
|
void |
setRotateStorageSize(long rotateStorageSize)
Sets the size at which the storage file is rotated.
|
void |
setStorageFolder(String storageFolder)
Sets the storage folder.
|
String |
toString() |
getMaxStorageSize, setMaxStorageSizepublic boolean isArchiveStorage()
public void setArchiveStorage(boolean archiveStorage)
archiveStorage - archive terminated storagepublic long getRotateStorageSize()
public void setRotateStorageSize(long rotateStorageSize)
rotateStorageSize - storage rotation size, in bytespublic int getCleanUpOldLogs()
public void setCleanUpOldLogs(int daysBack)
daysBack - the number of days back(by default it is set to Integer.MAX_VALUE to not perform cleanup at all).public String getStorageFolder()
public void setStorageFolder(String storageFolder)
storageFolder - storage folderpublic SessionStorage create(SessionId sessionId, ByteDecoder decoder, boolean cleanStart)
StorageRepositorysessionId - session iddecoder - byte decodercleanStart - clean previous session state if anyCopyright © 2005–2025 Onix Solutions. All rights reserved.