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