private File journalDir;
private File dataDir;
public DiskUsage(BrokerPool pool) {
Configuration config = pool.getConfiguration();
String journalDirValue = (String) config.getProperty(Journal.PROPERTY_RECOVERY_JOURNAL_DIR);
if (StringUtils.isNotBlank(journalDirValue)) {
File tmpDir = new File(journalDirValue);
if (tmpDir.isDirectory()) {
journalDir = tmpDir;
}
}
String dataDirValue = (String) config.getProperty(BrokerPool.PROPERTY_DATA_DIR);
if (StringUtils.isNotBlank(dataDirValue)) {
File tmpDir = new File(dataDirValue);
if (tmpDir.isDirectory()) {
dataDir = tmpDir;
}