Class DiskspaceDelegator

java.lang.Object
com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
com.perforce.p4java.impl.mapbased.server.cmd.DiskspaceDelegator
All Implemented Interfaces:
IDiskspaceDelegator

public class DiskspaceDelegator extends BaseDelegator implements IDiskspaceDelegator
Implementation to handle the Diskspace command.
  • Constructor Details

    • DiskspaceDelegator

      public DiskspaceDelegator(IOptionsServer server)
      Instantiate a new DiskspaceDelegator, providing the server object that will be used to execute Perforce Helix attribute commands.
      Parameters:
      server - a concrete implementation of a Perforce Helix Server
  • Method Details

    • getDiskSpace

      public List<IDiskSpace> getDiskSpace(List<String> filesystems) throws P4JavaException
      Description copied from interface: IDiskspaceDelegator
      Get a list of disk space information about the current availability of disk space on the server. This command requires that the user be an operator or have 'super' access granted by 'p4 protect'.

      If no arguments are specified, disk space information for all relevant file systems is displayed; otherwise the output is restricted to the named filesystem(s).

      filesystems: P4ROOT | P4JOURNAL | P4LOG | TEMP | journalPrefix | depot See the main 'p4 diskspace' command documentation for full semantics and usage details.

      Specified by:
      getDiskSpace in interface IDiskspaceDelegator
      Parameters:
      filesystems - if not null, specify a list of Perforce named filesystem(s).
      Returns:
      non-null but possibly empty list of disk space information.
      Throws:
      P4JavaException - if an error occurs processing this method and its parameters.