public class ConfigureDelegator extends BaseDelegator implements IConfigureDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION| Constructor and Description |
|---|
ConfigureDelegator(IOptionsServer server)
Instantiates a new configure delegator.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
setOrUnsetServerConfigurationValue(java.lang.String name,
java.lang.String value)
Set or unset a specific names server configuration variable.
|
java.util.List<ServerConfigurationValue> |
showServerConfiguration(java.lang.String serverName,
java.lang.String variableName)
Show server configuration values.
|
public ConfigureDelegator(IOptionsServer server)
server - the serverpublic java.lang.String setOrUnsetServerConfigurationValue(@Nonnull
java.lang.String name,
@Nullable
java.lang.String value)
throws P4JavaException
IConfigureDelegatorExpected variable name formats are as specified in the main Perforce documentation: [servername + #] variablename -- but this is not enforced by P4Java itself.
Note: you must be an admin or super user for this command to work.
setOrUnsetServerConfigurationValue in interface IConfigureDelegatorname - non-null config variable name.value - if null, unset the named variable; otherwise, set it to the
passed-in string value.P4JavaException - if an error occurs processing this method and its parameters.public java.util.List<ServerConfigurationValue> showServerConfiguration(java.lang.String serverName, java.lang.String variableName) throws P4JavaException
IConfigureDelegatorNote: you must be an admin or super user for this command to work.
showServerConfiguration in interface IConfigureDelegatorserverName - if not null, only show values associated with the named
server; if equals ServerConfigurationValue.ALL_SERVERS, show
values associated with all participating servers.variableName - if not null, only show the value of this named config
variable.P4JavaException - if an error occurs processing this method and its parameters.Copyright © 2021 Perforce Software. All Rights Reserved.