public class DiskSpace extends java.lang.Object implements IDiskSpace
Constructor and Description |
---|
DiskSpace(java.util.Map<java.lang.String,java.lang.Object> map)
Constructs a DiskSpace from the passed-in map; this map must have come
from a Perforce IServer method call or it may fail.
|
DiskSpace(java.lang.String location,
long usedBytes,
long freeBytes,
long totalBytes,
int percentageUsed,
java.lang.String fileSystemType)
Instantiates a new disk space.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileSystemType()
Gets the file system type.
|
long |
getFreeBytes()
Gets the free bytes.
|
java.lang.String |
getLocation()
Gets the location.
|
int |
getPercentUsed()
Gets the percent used.
|
long |
getTotalBytes()
Gets the total bytes.
|
long |
getUsedBytes()
Gets the used bytes.
|
public DiskSpace(java.lang.String location, long usedBytes, long freeBytes, long totalBytes, int percentageUsed, java.lang.String fileSystemType)
location
- the locationusedBytes
- the used bytesfreeBytes
- the free bytestotalBytes
- the total bytespercentageUsed
- the percentage usedfileSystemType
- the file system typepublic DiskSpace(java.util.Map<java.lang.String,java.lang.Object> map)
map
- the mappublic java.lang.String getLocation()
getLocation
in interface IDiskSpace
IDiskSpace.getLocation()
public long getUsedBytes()
getUsedBytes
in interface IDiskSpace
IDiskSpace.getUsedBytes()
public long getFreeBytes()
getFreeBytes
in interface IDiskSpace
IDiskSpace.getFreeBytes()
public long getTotalBytes()
getTotalBytes
in interface IDiskSpace
IDiskSpace.getTotalBytes()
public int getPercentUsed()
getPercentUsed
in interface IDiskSpace
IDiskSpace.getPercentUsed()
public java.lang.String getFileSystemType()
getFileSystemType
in interface IDiskSpace
IDiskSpace.getFileSystemType()