Class SizesDelegator
java.lang.Object
com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
com.perforce.p4java.impl.mapbased.server.cmd.SizesDelegator
- All Implemented Interfaces:
ISizesDelegator
Implementation to handle the Sizes 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
ConstructorsConstructorDescriptionSizesDelegator(IOptionsServer server) Instantiate a new SizesDelegator, providing the server object that will be used to execute Perforce Helix attribute commands. -
Method Summary
Modifier and TypeMethodDescriptiongetFileSizes(List<IFileSpec> fileSpecs, GetFileSizesOptions opts) Gets a list of file sizes for one or more files in the depot.
-
Constructor Details
-
SizesDelegator
Instantiate a new SizesDelegator, 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
-
getFileSizes
public List<IFileSize> getFileSizes(List<IFileSpec> fileSpecs, GetFileSizesOptions opts) throws P4JavaException Description copied from interface:ISizesDelegatorGets a list of file sizes for one or more files in the depot.For specified file specification, get the depot file name, revision, file count and file size. If you use client syntax for the file specification, the view mapping is used to list the corresponding depot files.
- Specified by:
getFileSizesin interfaceISizesDelegator- Parameters:
fileSpecs- filespecs to be processed; if null or empty, an empty list is returned.opts- GetFileSizesOptions object describing optional parameters; if null, no options are set.- Returns:
- a non-null (but possibly empty) list of file sizes.
- Throws:
P4JavaException- if any error occurs in the processing of this method.
-