Class DiskSpace

  • All Implemented Interfaces:
    IDiskSpace

    public class DiskSpace
    extends java.lang.Object
    implements IDiskSpace
    Default implementation of the IDiskSpace interface.
    • Constructor Summary

      Constructors 
      Constructor Description
      DiskSpace​(java.lang.String location, long usedBytes, long freeBytes, long totalBytes, int percentageUsed, java.lang.String fileSystemType)
      Instantiates a new disk space.
      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.
    • Constructor Detail

      • DiskSpace

        public DiskSpace​(java.lang.String location,
                         long usedBytes,
                         long freeBytes,
                         long totalBytes,
                         int percentageUsed,
                         java.lang.String fileSystemType)
        Instantiates a new disk space.
        Parameters:
        location - the location
        usedBytes - the used bytes
        freeBytes - the free bytes
        totalBytes - the total bytes
        percentageUsed - the percentage used
        fileSystemType - the file system type
      • DiskSpace

        public 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. If map is null, equivalent to calling the default constructor.
        Parameters:
        map - the map