public class HornetqJournalEnvironmentBean extends Object implements HornetqJournalEnvironmentBeanMBean
| Constructor and Description |
|---|
HornetqJournalEnvironmentBean() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBufferFlushesPerSecond()
Returns the target number of timer based buffer flushes per second.
|
int |
getBufferSize()
Returns the buffer size in bytes.
|
int |
getCompactMinFiles()
Gets the minimal number of files before we can consider compacting.
|
int |
getCompactPercentage()
Gets the percentage minimum capacity usage at which to start compacting.
|
String |
getFileExtension()
Returns the suffix to be used then naming each log file.
|
String |
getFilePrefix()
Returns the prefix to be used when naming each log file.
|
int |
getFileSize()
Returns the desired size in bytes of each log file.
|
int |
getMaxIO()
Gets the maximum write requests queue depth.
|
int |
getMinFiles()
Returns the minimum number of log files to use.
|
String |
getStoreDir()
Returns the log directory path
Default: {user.dir}/HornetqJournalStore
|
boolean |
isAsyncIO()
Returns the IO type of Journal.
|
boolean |
isLogRates()
Returns the debug log mode for Journal throughput statistics.
|
boolean |
isSyncDeletes()
Returns the sync setting for transaction log delete operations.
|
boolean |
isSyncWrites()
Returns the sync setting for transaction log write operations.
|
void |
setAsyncIO(boolean asyncIO)
Sets the type of Journal.
|
void |
setBufferFlushesPerSecond(int bufferFlushesPerSecond)
Sets the target number of timer based buffer flushes per second.
|
void |
setBufferSize(int bufferSize)
Sets the buffer size in bytes.
|
void |
setCompactMinFiles(int compactMinFiles)
Sets the minimal number of files before we can consider compacting.
|
void |
setCompactPercentage(int compactPercentage)
Sets the percentage minimum capacity usage at which to start compacting.
|
void |
setFileExtension(String fileExtension)
Sets the suffix to be used when naming each log file.
|
void |
setFilePrefix(String filePrefix)
Sets the prefix to be used when naming each log file.
|
void |
setFileSize(int fileSize)
Sets the desired size in bytes for each log file.
|
void |
setLogRates(boolean logRates)
Sets the debug log mode for Journal throughput statistics.
|
void |
setMaxIO(int maxIO)
Sets the maximum write requests queue depth.
|
void |
setMinFiles(int minFiles)
Sets the minimum number of log files to use.
|
void |
setStoreDir(String storeDir)
Sets the log directory path.
|
void |
setSyncDeletes(boolean syncDeletes)
Sets if log delete operations should be synchronous or not.
|
void |
setSyncWrites(boolean syncWrites)
Sets if log write operations should be synchronous or not.
|
public int getFileSize()
getFileSize in interface HornetqJournalEnvironmentBeanMBeanpublic void setFileSize(int fileSize)
fileSize - the individual log file size, in bytes.public int getMinFiles()
getMinFiles in interface HornetqJournalEnvironmentBeanMBeanpublic void setMinFiles(int minFiles)
minFiles - the minimum number of individual log files.public int getCompactMinFiles()
getCompactMinFiles in interface HornetqJournalEnvironmentBeanMBeanpublic void setCompactMinFiles(int compactMinFiles)
compactMinFiles - the threshold file count.public int getCompactPercentage()
getCompactPercentage in interface HornetqJournalEnvironmentBeanMBeanpublic void setCompactPercentage(int compactPercentage)
compactPercentage - the threshold percentage.public String getFilePrefix()
getFilePrefix in interface HornetqJournalEnvironmentBeanMBeanpublic void setFilePrefix(String filePrefix)
filePrefix - the prefix used to construct individual log file names.public String getFileExtension()
getFileExtension in interface HornetqJournalEnvironmentBeanMBeanpublic void setFileExtension(String fileExtension)
fileExtension - the suffix used to construct individual log file names.public int getMaxIO()
getMaxIO in interface HornetqJournalEnvironmentBeanMBeanpublic void setMaxIO(int maxIO)
maxIO - the max number of outstanding requests.public String getStoreDir()
getStoreDir in interface HornetqJournalEnvironmentBeanMBeanpublic void setStoreDir(String storeDir)
storeDir - the path to the log directory.public boolean isSyncWrites()
isSyncWrites in interface HornetqJournalEnvironmentBeanMBeanpublic void setSyncWrites(boolean syncWrites)
syncWrites - true for synchronous operation, false otherwise.public boolean isSyncDeletes()
isSyncDeletes in interface HornetqJournalEnvironmentBeanMBeanpublic void setSyncDeletes(boolean syncDeletes)
syncDeletes - true for synchronous operation, false otherwise.public int getBufferFlushesPerSecond()
getBufferFlushesPerSecond in interface HornetqJournalEnvironmentBeanMBeanpublic void setBufferFlushesPerSecond(int bufferFlushesPerSecond)
bufferFlushesPerSecond - the target number.public int getBufferSize()
getBufferSize in interface HornetqJournalEnvironmentBeanMBeanpublic void setBufferSize(int bufferSize)
bufferSize - the size of the buffer.public boolean isLogRates()
isLogRates in interface HornetqJournalEnvironmentBeanMBeanpublic void setLogRates(boolean logRates)
logRates - true to enable logging of statistics, false to disable.public boolean isAsyncIO()
isAsyncIO in interface HornetqJournalEnvironmentBeanMBeanpublic void setAsyncIO(boolean asyncIO)
asyncIO - true to enable AsyncIO, false to disableCopyright © 2016 JBoss by Red Hat. All rights reserved.