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.
|
int |
getPoolSize()
How many journal files can be reused.
|
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 |
setPoolSize(int poolSize)
Sets the number of files that can be reused.
|
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 HornetqJournalEnvironmentBeanMBean
public void setFileSize(int fileSize)
fileSize
- the individual log file size, in bytes.public int getMinFiles()
getMinFiles
in interface HornetqJournalEnvironmentBeanMBean
public void setMinFiles(int minFiles)
minFiles
- the minimum number of individual log files.public int getPoolSize()
getPoolSize
in interface HornetqJournalEnvironmentBeanMBean
public void setPoolSize(int poolSize)
poolSize
- the number of files that can be reused.public int getCompactMinFiles()
getCompactMinFiles
in interface HornetqJournalEnvironmentBeanMBean
public void setCompactMinFiles(int compactMinFiles)
compactMinFiles
- the threshold file count.public int getCompactPercentage()
getCompactPercentage
in interface HornetqJournalEnvironmentBeanMBean
public void setCompactPercentage(int compactPercentage)
compactPercentage
- the threshold percentage.public String getFilePrefix()
getFilePrefix
in interface HornetqJournalEnvironmentBeanMBean
public void setFilePrefix(String filePrefix)
filePrefix
- the prefix used to construct individual log file names.public String getFileExtension()
getFileExtension
in interface HornetqJournalEnvironmentBeanMBean
public void setFileExtension(String fileExtension)
fileExtension
- the suffix used to construct individual log file names.public int getMaxIO()
getMaxIO
in interface HornetqJournalEnvironmentBeanMBean
public void setMaxIO(int maxIO)
maxIO
- the max number of outstanding requests.public String getStoreDir()
getStoreDir
in interface HornetqJournalEnvironmentBeanMBean
public void setStoreDir(String storeDir)
storeDir
- the path to the log directory.public boolean isSyncWrites()
isSyncWrites
in interface HornetqJournalEnvironmentBeanMBean
public void setSyncWrites(boolean syncWrites)
syncWrites
- true for synchronous operation, false otherwise.public boolean isSyncDeletes()
isSyncDeletes
in interface HornetqJournalEnvironmentBeanMBean
public void setSyncDeletes(boolean syncDeletes)
syncDeletes
- true for synchronous operation, false otherwise.public int getBufferFlushesPerSecond()
getBufferFlushesPerSecond
in interface HornetqJournalEnvironmentBeanMBean
public void setBufferFlushesPerSecond(int bufferFlushesPerSecond)
bufferFlushesPerSecond
- the target number.public int getBufferSize()
getBufferSize
in interface HornetqJournalEnvironmentBeanMBean
public void setBufferSize(int bufferSize)
bufferSize
- the size of the buffer.public boolean isLogRates()
isLogRates
in interface HornetqJournalEnvironmentBeanMBean
public void setLogRates(boolean logRates)
logRates
- true to enable logging of statistics, false to disable.public boolean isAsyncIO()
isAsyncIO
in interface HornetqJournalEnvironmentBeanMBean
public void setAsyncIO(boolean asyncIO)
asyncIO
- true to enable AsyncIO, false to disableCopyright © 2021 JBoss by Red Hat. All rights reserved.