public class FileStorage extends java.lang.Object implements IStorage
| Constructor and Description |
|---|
FileStorage(java.io.File rootPath)
Construct and instance of the FileStorage class
|
FileStorage(java.lang.String rootPath)
Construct and instance of the FileStorage class
|
| Modifier and Type | Method and Description |
|---|---|
void |
Dispose() |
byte[] |
Load(StorageDataDescriptor descriptor)
Loads the data associated with the given storage descriptor
|
byte[] |
ReadAbandonedSessionData(java.util.UUID productId)
Return the first occurence of abandoned session data from previous sessions
|
void |
Save(StorageDataDescriptor descriptor,
byte[] data)
Saves the data to a file defined by the descriptor
|
public FileStorage(java.lang.String rootPath)
throws java.io.IOException
rootPath - the path to the folder where monitor data can be saved and loaded fromjava.io.IOException - if the specified rootPath is not in a valid formatpublic FileStorage(java.io.File rootPath)
throws java.io.IOException
rootPath - the file representing the the folder where monitor data can be saved and loaded fromjava.io.IOException - if the specified rootPath is not in a valid formatpublic void Save(StorageDataDescriptor descriptor, byte[] data)
public byte[] Load(StorageDataDescriptor descriptor)
public byte[] ReadAbandonedSessionData(java.util.UUID productId)
ReadAbandonedSessionData in interface IStorageproductId - the product id to use when looking for abandoned session datapublic void Dispose()