Class DiskspaceDelegator

    • Constructor Detail

      • 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 Detail

      • getDiskSpace

        public java.util.List<IDiskSpace> getDiskSpace​(java.util.List<java.lang.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.