|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.perforce.p4java.impl.generic.admin.DiskSpace
public class DiskSpace
Default implementation of the IDiskSpace interface.
| Constructor Summary | |
|---|---|
DiskSpace(Map<String,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(String location,
long usedBytes,
long freeBytes,
long totalBytes,
int percentageUsed,
String fileSystemType)
Instantiates a new disk space. |
|
| Method Summary | |
|---|---|
String |
getFileSystemType()
Gets the file system type. |
long |
getFreeBytes()
Gets the free bytes. |
String |
getLocation()
Gets the location. |
int |
getPercentUsed()
Gets the percent used. |
long |
getTotalBytes()
Gets the total bytes. |
long |
getUsedBytes()
Gets the used bytes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiskSpace(String location,
long usedBytes,
long freeBytes,
long totalBytes,
int percentageUsed,
String fileSystemType)
location - the locationusedBytes - the used bytesfreeBytes - the free bytestotalBytes - the total bytespercentageUsed - the percentage usedfileSystemType - the file system typepublic DiskSpace(Map<String,Object> map)
map - the map| Method Detail |
|---|
public 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 String getFileSystemType()
getFileSystemType in interface IDiskSpaceIDiskSpace.getFileSystemType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||