public class FileStorageManager extends Object implements StorageManager
Modifier and Type | Class and Description |
---|---|
class |
FileStorageManager.DiskStore |
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_MAX_BUFFERSPACE |
static int |
DEFAULT_MAX_OPEN_FILES |
Constructor and Description |
---|
FileStorageManager() |
Modifier and Type | Method and Description |
---|---|
FileStore |
createFileStore(String name) |
String |
getDirectory() |
long |
getMaxStorageSpace() |
int |
getOpenFiles() |
int |
getOutOfDiskErrorCount() |
long |
getUsedBufferSpace()
Get the used buffer space in bytes
|
void |
initialize()
Initialize
|
void |
setMaxBufferSpace(long maxBufferSpace)
Set the max amount of buffer space in bytes
|
void |
setMaxOpenFiles(int maxOpenFiles) |
void |
setStorageDirectory(String directory) |
public static final int DEFAULT_MAX_OPEN_FILES
public static final long DEFAULT_MAX_BUFFERSPACE
public void initialize() throws TeiidComponentException
initialize
in interface StorageManager
TeiidComponentException
public void setMaxOpenFiles(int maxOpenFiles)
public void setStorageDirectory(String directory)
public FileStore createFileStore(String name)
createFileStore
in interface StorageManager
public String getDirectory()
public int getOpenFiles()
public long getUsedBufferSpace()
public int getOutOfDiskErrorCount()
public void setMaxBufferSpace(long maxBufferSpace)
maxBufferSpace
- public long getMaxStorageSpace()
getMaxStorageSpace
in interface StorageManager
Copyright © 2020. All rights reserved.