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 IDiskSpaceIDiskSpace.getLocation()public long getUsedBytes()
getUsedBytes in interface IDiskSpaceIDiskSpace.getUsedBytes()public long getFreeBytes()
getFreeBytes in interface IDiskSpaceIDiskSpace.getFreeBytes()public long getTotalBytes()
getTotalBytes in interface IDiskSpaceIDiskSpace.getTotalBytes()public int getPercentUsed()
getPercentUsed in interface IDiskSpaceIDiskSpace.getPercentUsed()public java.lang.String getFileSystemType()
getFileSystemType in interface IDiskSpaceIDiskSpace.getFileSystemType()Copyright © 2020 Perforce Software. All Rights Reserved.