Class ReloadDelegator
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
-
- com.perforce.p4java.impl.mapbased.server.cmd.ReloadDelegator
-
- All Implemented Interfaces:
IReloadDelegator
public class ReloadDelegator extends BaseDelegator implements IReloadDelegator
Interface to handle the Reload 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 ReloadDelegator(IOptionsServer server)
Instantiate a new ReloadDelegator, 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.lang.String
reload(ReloadOptions opts)
Reload an unloaded client or label.
-
-
-
Constructor Detail
-
ReloadDelegator
public ReloadDelegator(IOptionsServer server)
Instantiate a new ReloadDelegator, 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
-
reload
public java.lang.String reload(ReloadOptions opts) throws P4JavaException
Description copied from interface:IReloadDelegator
Reload an unloaded client or label.Note that by default, users can only unload their own clients or labels. The -f flag requires 'admin' access, which is granted by 'p4 protect'. The full semantics of this operation are found in the main 'p4 help unload' documentation.
- Specified by:
reload
in interfaceIReloadDelegator
- Parameters:
opts
- possibly-null ReloadOptions object specifying method options.- Returns:
- non-null result message string from the reload operation.
- Throws:
P4JavaException
- if an error occurs processing this method and its parameters.
-
-