Class DiskSpace
java.lang.Object
com.perforce.p4java.impl.generic.admin.DiskSpace
- All Implemented Interfaces:
IDiskSpace
Default implementation of the IDiskSpace interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the file system type.longGets the free bytes.Gets the location.intGets the percent used.longGets the total bytes.longGets the used bytes.
-
Constructor Details
-
DiskSpace
public DiskSpace(String location, long usedBytes, long freeBytes, long totalBytes, int percentageUsed, String fileSystemType) Instantiates a new disk space.- Parameters:
location- the locationusedBytes- the used bytesfreeBytes- the free bytestotalBytes- the total bytespercentageUsed- the percentage usedfileSystemType- the file system type
-
DiskSpace
Constructs a DiskSpace from the passed-in map; this map must have come from a Perforce IServer method call or it may fail. If map is null, equivalent to calling the default constructor.- Parameters:
map- the map
-
-
Method Details
-
getLocation
Gets the location.- Specified by:
getLocationin interfaceIDiskSpace- Returns:
- the location
- See Also:
-
getUsedBytes
public long getUsedBytes()Gets the used bytes.- Specified by:
getUsedBytesin interfaceIDiskSpace- Returns:
- the used bytes
- See Also:
-
getFreeBytes
public long getFreeBytes()Gets the free bytes.- Specified by:
getFreeBytesin interfaceIDiskSpace- Returns:
- the free bytes
- See Also:
-
getTotalBytes
public long getTotalBytes()Gets the total bytes.- Specified by:
getTotalBytesin interfaceIDiskSpace- Returns:
- the total bytes
- See Also:
-
getPercentUsed
public int getPercentUsed()Gets the percent used.- Specified by:
getPercentUsedin interfaceIDiskSpace- Returns:
- the percent used
- See Also:
-
getFileSystemType
Gets the file system type.- Specified by:
getFileSystemTypein interfaceIDiskSpace- Returns:
- the file system type
- See Also:
-