public class DiskUsage extends Object
Constructor and Description |
---|
DiskUsage(String nodeId,
String nodeName,
long totalBytes,
long freeBytes)
Create a new DiskUsage, if
totalBytes is 0,
will always return 100.0% free |
Modifier and Type | Method and Description |
---|---|
long |
getFreeBytes() |
double |
getFreeDiskAsPercentage() |
String |
getNodeId() |
String |
getNodeName() |
long |
getTotalBytes() |
long |
getUsedBytes() |
String |
toString() |
Copyright © 2009–2015. All rights reserved.