* @return Instance of SystemInfo.
*/
public SystemInfo getSystemInfo()
throws VfsIOException
{
Config config = Config.getInstance();
long bytesPerRead = 0;
try {
bytesPerRead = Long.parseLong(
config.getProperty("org.sd_network.vfs.BytesPerRead"));
} catch (NumberFormatException e) {
throw new VfsIOException(
"Invalid property [org.sd_network.vfs.BytesPerRead].");
}
long bytesPerWrite = 0;
try {
bytesPerWrite = Long.parseLong(
config.getProperty("org.sd_network.vfs.BytesPerWrite"));
} catch (NumberFormatException e) {
throw new VfsIOException(
"Invalid property [org.sd_network.vfs.BytesPerWrite].");
}
int childObjectsPerParent = 0;
try {
childObjectsPerParent = Integer.parseInt(
config.getProperty("org.sd_network.vfs.ChildObjectsPerParent"));
} catch (NumberFormatException e) {
throw new VfsIOException(
"Invalid property [org.sd_network.vfs.ChildObjectsPerParent].");
}
int hierarchicalDepth = 0;
try {
hierarchicalDepth = Integer.parseInt(
config.getProperty("org.sd_network.vfs.HierarchicalDepth"));
} catch (NumberFormatException e) {
throw new VfsIOException(
"Invalid property [org.sd_network.vfs.HierarchicalDepth].");
}
int fileNameLength = 0;
try {
fileNameLength = Integer.parseInt(
config.getProperty("org.sd_network.vfs.FileNameLength"));
} catch (NumberFormatException e) {
throw new VfsIOException(
"Invalid property [org.sd_network.vfs.FileNameLength].");
}