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
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
ConstructorsConstructorDescriptionDiskspaceDelegator(IOptionsServer server) Instantiate a new DiskspaceDelegator, providing the server object that will be used to execute Perforce Helix attribute commands. -
Method Summary
Modifier and TypeMethodDescriptiongetDiskSpace(List<String> filesystems) Get a list of disk space information about the current availability of disk space on the server.
-
Constructor Details
-
DiskspaceDelegator
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
Description copied from interface:IDiskspaceDelegatorGet 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:
getDiskSpacein 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.
-