public class FileBasedStorageRepository extends AbstractStorageRepository
| Modifier and Type | Class and Description |
|---|---|
static class |
FileBasedStorageRepository.LogCleanupVisitor |
| Constructor and Description |
|---|
FileBasedStorageRepository(ExclusiveLockProvider exclusiveLockProvider) |
| Modifier and Type | Method and Description |
|---|---|
SessionStorage |
create(SessionId sessionId,
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.
|
boolean |
isFlushPerMessage()
Returns whether each message is flushed individually to the 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 |
setFlushPerMessage(boolean flushPerMessage)
Sets whether each message should be flushed individually to the storage.
|
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 FileBasedStorageRepository(ExclusiveLockProvider exclusiveLockProvider)
public 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 boolean isFlushPerMessage()
public void setFlushPerMessage(boolean flushPerMessage)
flushPerMessage - true if each message should be flushed individually, otherwise falsepublic SessionStorage create(SessionId sessionId, boolean cleanStart)
StorageRepositorysessionId - session idcleanStart - clean previous session state if anyCopyright © 2005–2025 Onix Solutions. All rights reserved.