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.
-
-
Field Summary
-
Fields inherited from class com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION
-
-
Constructor Summary
Constructors Constructor Description DiskspaceDelegator(IOptionsServer server)
Instantiate a new DiskspaceDelegator, providing the server object that will be used to execute Perforce Helix attribute commands.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IDiskSpace>
getDiskSpace(java.util.List<java.lang.String> filesystems)
Get a list of disk space information about the current availability of disk space on the server.
-
-
-
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 interfaceIDiskspaceDelegator
- 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.
-
-