public class ServerConfigurationValue
extends java.lang.Object
This class is complicated by the fact that any or all of the fields may be set or null, and by the way that the same config name may have several different ServerConfigurationValue objects depending on how the variable has been set. As this class is intended for advanced admin use only, none of the fields are documented in any detail here -- see the main Perforce documentation for the 'configure' operation for a full explanation.
Modifier and Type | Class and Description |
---|---|
static class |
ServerConfigurationValue.ConfigType
Currently-known server configuration value types.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALL_SERVERS
Special string value used to signal that the corresponding config value
is available to (or defined for) all participating servers.
|
Constructor and Description |
---|
ServerConfigurationValue()
Default constructor -- all fields set to null except type, which is set
to ConfigType.UNKNOWN.
|
ServerConfigurationValue(java.util.Map<java.lang.String,java.lang.Object> map)
Constructor for map-based returns from the server; not intended for
general use.
|
ServerConfigurationValue(java.lang.String serverName,
ServerConfigurationValue.ConfigType type,
java.lang.String name,
java.lang.String value)
Explicit value constructor.
|
ServerConfigurationValue(java.lang.String serverName,
java.lang.String type,
java.lang.String name,
java.lang.String value)
Explicit value convenience constructor with string 'type' field, which is
converted to ConfigType on the fly.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the name.
|
java.lang.String |
getServerName()
Gets the server name.
|
ServerConfigurationValue.ConfigType |
getType()
Gets the type.
|
java.lang.String |
getValue()
Gets the value.
|
ServerConfigurationValue |
setName(java.lang.String name)
Sets the name.
|
ServerConfigurationValue |
setServerName(java.lang.String serverName)
Sets the server name.
|
ServerConfigurationValue |
setType(ServerConfigurationValue.ConfigType type)
Sets the type.
|
ServerConfigurationValue |
setValue(java.lang.String value)
Sets the value.
|
java.lang.String |
toString() |
public static final java.lang.String ALL_SERVERS
public ServerConfigurationValue()
public ServerConfigurationValue(java.lang.String serverName, ServerConfigurationValue.ConfigType type, java.lang.String name, java.lang.String value)
serverName
- the server nametype
- the typename
- the namevalue
- the valuepublic ServerConfigurationValue(java.lang.String serverName, java.lang.String type, java.lang.String name, java.lang.String value)
serverName
- the server nametype
- the typename
- the namevalue
- the valuepublic ServerConfigurationValue(java.util.Map<java.lang.String,java.lang.Object> map)
map
- the mappublic java.lang.String getServerName()
public ServerConfigurationValue setServerName(java.lang.String serverName)
serverName
- the server namepublic ServerConfigurationValue.ConfigType getType()
public ServerConfigurationValue setType(ServerConfigurationValue.ConfigType type)
type
- the typepublic java.lang.String getName()
public ServerConfigurationValue setName(java.lang.String name)
name
- the namepublic java.lang.String getValue()
public ServerConfigurationValue setValue(java.lang.String value)
value
- the valuepublic java.lang.String toString()
toString
in class java.lang.Object