Class ServerInfo
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.server.ServerInfo
-
- All Implemented Interfaces:
IServerInfo
public class ServerInfo extends java.lang.Object implements IServerInfo
Default simple implementation for server info interface.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SERVER_INFO_DATE_PATTERN
-
Constructor Summary
Constructors Constructor Description ServerInfo()
Default constructor; leaves all fields initialized to null.ServerInfo(java.lang.String clientName, java.lang.String clientHost, java.lang.String clientRoot, java.lang.String clientAddress, java.lang.String clientCurrentDirectory, java.lang.String serverAddress, java.lang.String serverDate, java.lang.String serverLicense, java.lang.String serverRoot, java.lang.String serverUptime, java.lang.String serverVersion, java.lang.String serverLicenseIp, java.lang.String proxyVersion, java.lang.String userName, boolean unicodeEnabled, boolean monitorEnabled)
Deprecated.Use constructor with map parameter to initialize all fields.ServerInfo(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> maps)
Constructor for use with maps passed back from the Perforce server only.ServerInfo(java.util.Map<java.lang.String,java.lang.Object> map)
Constructor for use with maps passed back from the Perforce server only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBrokerAddress()
java.lang.String
getBrokerVersion()
java.lang.String
getClientAddress()
java.lang.String
getClientCurrentDirectory()
java.lang.String
getClientHost()
java.lang.String
getClientName()
java.lang.String
getClientRoot()
java.lang.String
getIntegEngine()
java.lang.String
getPeerAddress()
java.lang.String
getProxyAddress()
java.lang.String
getProxyRoot()
java.lang.String
getProxyVersion()
java.lang.String
getReplica()
java.lang.String
getSandboxPort()
java.lang.String
getSandboxVersion()
java.lang.String
getServerAddress()
java.util.Calendar
getServerCalendar()
java.lang.String
getServerCluster()
java.lang.String
getServerDate()
java.lang.String
getServerId()
java.lang.String
getServerLicense()
java.lang.String
getServerLicenseIp()
java.lang.String
getServerRoot()
java.lang.String
getServerUptime()
java.lang.String
getServerVersion()
java.lang.String
getSSOAuth()
java.lang.String
getUserName()
boolean
isBrokerEncrypted()
boolean
isCaseSensitive()
boolean
isEncrypted()
boolean
isMonitorEnabled()
boolean
isMoveDisabled()
boolean
isPasswordEnabled()
boolean
isProxyEncrypted()
boolean
isServerEncrypted()
java.lang.Boolean
isSSOAuthRequired()
boolean
isUnicodeEnabled()
void
setBrokerAddress(java.lang.String brokerAddress)
void
setBrokerEncrypted(boolean brokerEncrypted)
void
setBrokerVersion(java.lang.String brokerVersion)
void
setCaseSensitive(boolean caseSensitive)
void
setClientAddress(java.lang.String clientAddress)
void
setClientCurrentDirectory(java.lang.String currentDirectory)
void
setClientHost(java.lang.String clientHost)
void
setClientName(java.lang.String clientName)
void
setClientRoot(java.lang.String clientRoot)
void
setIntegEngine(java.lang.String integEngine)
void
setMonitorEnabled(boolean monitorEnabled)
void
setMoveDisabled(boolean moveDisabled)
void
setPasswordEnabled(boolean passwordEnabled)
void
setPeerAddress(java.lang.String peerAddress)
void
setProxyAddress(java.lang.String proxyAddress)
void
setProxyEncrypted(boolean proxyEncrypted)
void
setProxyRoot(java.lang.String proxyRoot)
void
setProxyVersion(java.lang.String proxyVersion)
void
setReplica(java.lang.String replica)
void
setSandboxPort(java.lang.String sandboxPort)
void
setSandboxVersion(java.lang.String sandboxVersion)
void
setServerAddress(java.lang.String serverAddress)
void
setServerCalendar(java.util.Calendar serverCalendar)
void
setServerCluster(java.lang.String serverCluster)
void
setServerDate(java.lang.String serverDate)
void
setServerEncrypted(boolean serverEncrypted)
void
setServerId(java.lang.String serverId)
void
setServerLicense(java.lang.String serverLicense)
void
setServerLicenseIp(java.lang.String serverLicenseIp)
void
setServerRoot(java.lang.String serverRoot)
void
setServerUptime(java.lang.String serverUptime)
void
setServerVersion(java.lang.String serverVersion)
void
setSSOAuth(java.lang.String ssoAuth)
void
setUnicodeEnabled(boolean unicodeEnabled)
void
setUserName(java.lang.String userName)
-
-
-
Field Detail
-
SERVER_INFO_DATE_PATTERN
public static final java.lang.String SERVER_INFO_DATE_PATTERN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServerInfo
public ServerInfo()
Default constructor; leaves all fields initialized to null.
-
ServerInfo
@Deprecated public ServerInfo(java.lang.String clientName, java.lang.String clientHost, java.lang.String clientRoot, java.lang.String clientAddress, java.lang.String clientCurrentDirectory, java.lang.String serverAddress, java.lang.String serverDate, java.lang.String serverLicense, java.lang.String serverRoot, java.lang.String serverUptime, java.lang.String serverVersion, java.lang.String serverLicenseIp, java.lang.String proxyVersion, java.lang.String userName, boolean unicodeEnabled, boolean monitorEnabled)
Deprecated.Use constructor with map parameter to initialize all fields.Explicit-value all-fields constructor.- Parameters:
clientName
- clientNameclientHost
- clientHostclientRoot
- clientRootclientAddress
- clientAddressclientCurrentDirectory
- clientCurrentDirectoryserverAddress
- serverAddressserverDate
- serverDateserverLicense
- serverLicenseserverRoot
- serverRootserverUptime
- serverUptimeserverVersion
- serverVersionserverLicenseIp
- serverLicenseIpproxyVersion
- proxyVersionuserName
- userNameunicodeEnabled
- unicodeEnabledmonitorEnabled
- monitorEnabled
-
ServerInfo
public ServerInfo(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> maps)
Constructor for use with maps passed back from the Perforce server only. When a broker is involved, there will be more than one map.- Parameters:
maps
- maps
-
ServerInfo
public ServerInfo(java.util.Map<java.lang.String,java.lang.Object> map)
Constructor for use with maps passed back from the Perforce server only.- Parameters:
map
- map
-
-
Method Detail
-
getServerAddress
public java.lang.String getServerAddress()
- Specified by:
getServerAddress
in interfaceIServerInfo
-
setServerAddress
public void setServerAddress(java.lang.String serverAddress)
-
getServerDate
public java.lang.String getServerDate()
- Specified by:
getServerDate
in interfaceIServerInfo
-
setServerDate
public void setServerDate(java.lang.String serverDate)
-
getServerCalendar
public java.util.Calendar getServerCalendar()
- Specified by:
getServerCalendar
in interfaceIServerInfo
-
setServerCalendar
public void setServerCalendar(java.util.Calendar serverCalendar)
-
getServerLicense
public java.lang.String getServerLicense()
- Specified by:
getServerLicense
in interfaceIServerInfo
-
setServerLicense
public void setServerLicense(java.lang.String serverLicense)
-
getServerRoot
public java.lang.String getServerRoot()
- Specified by:
getServerRoot
in interfaceIServerInfo
-
setServerRoot
public void setServerRoot(java.lang.String serverRoot)
-
getServerUptime
public java.lang.String getServerUptime()
- Specified by:
getServerUptime
in interfaceIServerInfo
-
setServerUptime
public void setServerUptime(java.lang.String serverUptime)
-
getServerVersion
public java.lang.String getServerVersion()
- Specified by:
getServerVersion
in interfaceIServerInfo
-
setServerVersion
public void setServerVersion(java.lang.String serverVersion)
-
getClientName
public java.lang.String getClientName()
- Specified by:
getClientName
in interfaceIServerInfo
-
setClientName
public void setClientName(java.lang.String clientName)
-
getClientHost
public java.lang.String getClientHost()
- Specified by:
getClientHost
in interfaceIServerInfo
-
setClientHost
public void setClientHost(java.lang.String clientHost)
-
getClientRoot
public java.lang.String getClientRoot()
- Specified by:
getClientRoot
in interfaceIServerInfo
-
setClientRoot
public void setClientRoot(java.lang.String clientRoot)
-
getClientAddress
public java.lang.String getClientAddress()
- Specified by:
getClientAddress
in interfaceIServerInfo
-
setClientAddress
public void setClientAddress(java.lang.String clientAddress)
-
getPeerAddress
public java.lang.String getPeerAddress()
- Specified by:
getPeerAddress
in interfaceIServerInfo
-
setPeerAddress
public void setPeerAddress(java.lang.String peerAddress)
-
getClientCurrentDirectory
public java.lang.String getClientCurrentDirectory()
- Specified by:
getClientCurrentDirectory
in interfaceIServerInfo
-
setClientCurrentDirectory
public void setClientCurrentDirectory(java.lang.String currentDirectory)
-
getServerLicenseIp
public java.lang.String getServerLicenseIp()
- Specified by:
getServerLicenseIp
in interfaceIServerInfo
-
setServerLicenseIp
public void setServerLicenseIp(java.lang.String serverLicenseIp)
-
isServerEncrypted
public boolean isServerEncrypted()
- Specified by:
isServerEncrypted
in interfaceIServerInfo
-
setServerEncrypted
public void setServerEncrypted(boolean serverEncrypted)
-
getReplica
public java.lang.String getReplica()
-
setReplica
public void setReplica(java.lang.String replica)
-
getUserName
public java.lang.String getUserName()
- Specified by:
getUserName
in interfaceIServerInfo
-
setUserName
public void setUserName(java.lang.String userName)
-
isPasswordEnabled
public boolean isPasswordEnabled()
- Specified by:
isPasswordEnabled
in interfaceIServerInfo
-
setPasswordEnabled
public void setPasswordEnabled(boolean passwordEnabled)
-
isCaseSensitive
public boolean isCaseSensitive()
- Specified by:
isCaseSensitive
in interfaceIServerInfo
-
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive)
-
isMonitorEnabled
public boolean isMonitorEnabled()
- Specified by:
isMonitorEnabled
in interfaceIServerInfo
-
setMonitorEnabled
public void setMonitorEnabled(boolean monitorEnabled)
-
isUnicodeEnabled
public boolean isUnicodeEnabled()
- Specified by:
isUnicodeEnabled
in interfaceIServerInfo
-
setUnicodeEnabled
public void setUnicodeEnabled(boolean unicodeEnabled)
-
isMoveDisabled
public boolean isMoveDisabled()
- Specified by:
isMoveDisabled
in interfaceIServerInfo
-
setMoveDisabled
public void setMoveDisabled(boolean moveDisabled)
-
getProxyVersion
public java.lang.String getProxyVersion()
- Specified by:
getProxyVersion
in interfaceIServerInfo
-
setProxyVersion
public void setProxyVersion(java.lang.String proxyVersion)
-
getProxyAddress
public java.lang.String getProxyAddress()
- Specified by:
getProxyAddress
in interfaceIServerInfo
-
setProxyAddress
public void setProxyAddress(java.lang.String proxyAddress)
-
getProxyRoot
public java.lang.String getProxyRoot()
- Specified by:
getProxyRoot
in interfaceIServerInfo
-
setProxyRoot
public void setProxyRoot(java.lang.String proxyRoot)
-
isProxyEncrypted
public boolean isProxyEncrypted()
- Specified by:
isProxyEncrypted
in interfaceIServerInfo
-
setProxyEncrypted
public void setProxyEncrypted(boolean proxyEncrypted)
-
getBrokerVersion
public java.lang.String getBrokerVersion()
- Specified by:
getBrokerVersion
in interfaceIServerInfo
-
setBrokerVersion
public void setBrokerVersion(java.lang.String brokerVersion)
-
getBrokerAddress
public java.lang.String getBrokerAddress()
- Specified by:
getBrokerAddress
in interfaceIServerInfo
-
setBrokerAddress
public void setBrokerAddress(java.lang.String brokerAddress)
-
isBrokerEncrypted
public boolean isBrokerEncrypted()
- Specified by:
isBrokerEncrypted
in interfaceIServerInfo
-
setBrokerEncrypted
public void setBrokerEncrypted(boolean brokerEncrypted)
-
getSandboxVersion
public java.lang.String getSandboxVersion()
- Specified by:
getSandboxVersion
in interfaceIServerInfo
-
setSandboxVersion
public void setSandboxVersion(java.lang.String sandboxVersion)
-
getSandboxPort
public java.lang.String getSandboxPort()
- Specified by:
getSandboxPort
in interfaceIServerInfo
-
setSandboxPort
public void setSandboxPort(java.lang.String sandboxPort)
-
isEncrypted
public boolean isEncrypted()
- Specified by:
isEncrypted
in interfaceIServerInfo
-
getServerId
public java.lang.String getServerId()
- Specified by:
getServerId
in interfaceIServerInfo
-
setServerId
public void setServerId(java.lang.String serverId)
-
getServerCluster
public java.lang.String getServerCluster()
- Specified by:
getServerCluster
in interfaceIServerInfo
-
setServerCluster
public void setServerCluster(java.lang.String serverCluster)
-
getIntegEngine
public java.lang.String getIntegEngine()
- Specified by:
getIntegEngine
in interfaceIServerInfo
-
setIntegEngine
public void setIntegEngine(java.lang.String integEngine)
-
getSSOAuth
public java.lang.String getSSOAuth()
- Specified by:
getSSOAuth
in interfaceIServerInfo
-
setSSOAuth
public void setSSOAuth(java.lang.String ssoAuth)
-
isSSOAuthRequired
public java.lang.Boolean isSSOAuthRequired()
- Specified by:
isSSOAuthRequired
in interfaceIServerInfo
-
-