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() |
double |
getUsedDiskAsPercentage() |
String |
toString() |
public String getNodeId()
public String getNodeName()
public double getFreeDiskAsPercentage()
public double getUsedDiskAsPercentage()
public long getFreeBytes()
public long getTotalBytes()
public long getUsedBytes()
Copyright © 2009–2016. All rights reserved.