com.perforce.p4java.impl.mapbased.server
Class ServerInfo

java.lang.Object
  extended by com.perforce.p4java.impl.mapbased.server.ServerInfo
All Implemented Interfaces:
IServerInfo

public class ServerInfo
extends Object
implements IServerInfo

Default simple implementation for server info interface.


Field Summary
static String SERVER_INFO_DATE_PATTERN
           
 
Constructor Summary
ServerInfo()
          Default constructor; leaves all fields initialized to null.
ServerInfo(Map<String,Object> map)
          Constructor for use with maps passed back from the Perforce server only.
ServerInfo(Map<String,Object>[] maps)
          Constructor for use with maps passed back from the Perforce server only.
ServerInfo(String clientName, String clientHost, String clientRoot, String clientAddress, String clientCurrentDirectory, String serverAddress, String serverDate, String serverLicense, String serverRoot, String serverUptime, String serverVersion, String serverLicenseIp, String proxyVersion, String userName, boolean unicodeEnabled, boolean monitorEnabled)
          Deprecated. Use constructor with map parameter to initialize all fields.
 
Method Summary
 String getBrokerAddress()
           
 String getBrokerVersion()
           
 String getClientAddress()
           
 String getClientCurrentDirectory()
           
 String getClientHost()
           
 String getClientName()
           
 String getClientRoot()
           
 String getIntegEngine()
           
 String getPeerAddress()
           
 String getProxyAddress()
           
 String getProxyRoot()
           
 String getProxyVersion()
           
 String getReplica()
           
 String getSandboxPort()
           
 String getSandboxVersion()
           
 String getServerAddress()
           
 Calendar getServerCalendar()
           
 String getServerCluster()
           
 String getServerDate()
           
 String getServerId()
           
 String getServerLicense()
           
 String getServerLicenseIp()
           
 String getServerRoot()
           
 String getServerUptime()
           
 String getServerVersion()
           
 String getUserName()
           
 boolean isBrokerEncrypted()
           
 boolean isCaseSensitive()
           
 boolean isEncrypted()
           
 boolean isMonitorEnabled()
           
 boolean isMoveDisabled()
           
 boolean isPasswordEnabled()
           
 boolean isProxyEncrypted()
           
 boolean isServerEncrypted()
           
 boolean isUnicodeEnabled()
           
 void setBrokerAddress(String brokerAddress)
           
 void setBrokerEncrypted(boolean brokerEncrypted)
           
 void setBrokerVersion(String brokerVersion)
           
 void setCaseSensitive(boolean caseSensitive)
           
 void setClientAddress(String clientAddress)
           
 void setClientCurrentDirectory(String currentDirectory)
           
 void setClientHost(String clientHost)
           
 void setClientName(String clientName)
           
 void setClientRoot(String clientRoot)
           
 void setIntegEngine(String integEngine)
           
 void setMonitorEnabled(boolean monitorEnabled)
           
 void setMoveDisabled(boolean moveDisabled)
           
 void setPasswordEnabled(boolean passwordEnabled)
           
 void setPeerAddress(String peerAddress)
           
 void setProxyAddress(String proxyAddress)
           
 void setProxyEncrypted(boolean proxyEncrypted)
           
 void setProxyRoot(String proxyRoot)
           
 void setProxyVersion(String proxyVersion)
           
 void setReplica(String replica)
           
 void setSandboxPort(String sandboxPort)
           
 void setSandboxVersion(String sandboxVersion)
           
 void setServerAddress(String serverAddress)
           
 void setServerCalendar(Calendar serverCalendar)
           
 void setServerCluster(String serverCluster)
           
 void setServerDate(String serverDate)
           
 void setServerEncrypted(boolean serverEncrypted)
           
 void setServerId(String serverId)
           
 void setServerLicense(String serverLicense)
           
 void setServerLicenseIp(String serverLicenseIp)
           
 void setServerRoot(String serverRoot)
           
 void setServerUptime(String serverUptime)
           
 void setServerVersion(String serverVersion)
           
 void setUnicodeEnabled(boolean unicodeEnabled)
           
 void setUserName(String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_INFO_DATE_PATTERN

public static final 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(String clientName,
                             String clientHost,
                             String clientRoot,
                             String clientAddress,
                             String clientCurrentDirectory,
                             String serverAddress,
                             String serverDate,
                             String serverLicense,
                             String serverRoot,
                             String serverUptime,
                             String serverVersion,
                             String serverLicenseIp,
                             String proxyVersion,
                             String userName,
                             boolean unicodeEnabled,
                             boolean monitorEnabled)
Deprecated. Use constructor with map parameter to initialize all fields.

Explicit-value all-fields constructor.


ServerInfo

public ServerInfo(Map<String,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.


ServerInfo

public ServerInfo(Map<String,Object> map)
Constructor for use with maps passed back from the Perforce server only.

Method Detail

getServerAddress

public String getServerAddress()
Specified by:
getServerAddress in interface IServerInfo

setServerAddress

public void setServerAddress(String serverAddress)

getServerDate

public String getServerDate()
Specified by:
getServerDate in interface IServerInfo

setServerDate

public void setServerDate(String serverDate)

getServerCalendar

public Calendar getServerCalendar()
Specified by:
getServerCalendar in interface IServerInfo

setServerCalendar

public void setServerCalendar(Calendar serverCalendar)

getServerLicense

public String getServerLicense()
Specified by:
getServerLicense in interface IServerInfo

setServerLicense

public void setServerLicense(String serverLicense)

getServerRoot

public String getServerRoot()
Specified by:
getServerRoot in interface IServerInfo

setServerRoot

public void setServerRoot(String serverRoot)

getServerUptime

public String getServerUptime()
Specified by:
getServerUptime in interface IServerInfo

setServerUptime

public void setServerUptime(String serverUptime)

getServerVersion

public String getServerVersion()
Specified by:
getServerVersion in interface IServerInfo

setServerVersion

public void setServerVersion(String serverVersion)

getClientName

public String getClientName()
Specified by:
getClientName in interface IServerInfo

setClientName

public void setClientName(String clientName)

getClientHost

public String getClientHost()
Specified by:
getClientHost in interface IServerInfo

setClientHost

public void setClientHost(String clientHost)

getClientRoot

public String getClientRoot()
Specified by:
getClientRoot in interface IServerInfo

setClientRoot

public void setClientRoot(String clientRoot)

getClientAddress

public String getClientAddress()
Specified by:
getClientAddress in interface IServerInfo

setClientAddress

public void setClientAddress(String clientAddress)

getPeerAddress

public String getPeerAddress()
Specified by:
getPeerAddress in interface IServerInfo

setPeerAddress

public void setPeerAddress(String peerAddress)

getClientCurrentDirectory

public String getClientCurrentDirectory()
Specified by:
getClientCurrentDirectory in interface IServerInfo

setClientCurrentDirectory

public void setClientCurrentDirectory(String currentDirectory)

getServerLicenseIp

public String getServerLicenseIp()
Specified by:
getServerLicenseIp in interface IServerInfo

setServerLicenseIp

public void setServerLicenseIp(String serverLicenseIp)

isServerEncrypted

public boolean isServerEncrypted()
Specified by:
isServerEncrypted in interface IServerInfo

setServerEncrypted

public void setServerEncrypted(boolean serverEncrypted)

getReplica

public String getReplica()

setReplica

public void setReplica(String replica)

getUserName

public String getUserName()
Specified by:
getUserName in interface IServerInfo

setUserName

public void setUserName(String userName)

isPasswordEnabled

public boolean isPasswordEnabled()
Specified by:
isPasswordEnabled in interface IServerInfo

setPasswordEnabled

public void setPasswordEnabled(boolean passwordEnabled)

isCaseSensitive

public boolean isCaseSensitive()
Specified by:
isCaseSensitive in interface IServerInfo

setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)

isMonitorEnabled

public boolean isMonitorEnabled()
Specified by:
isMonitorEnabled in interface IServerInfo

setMonitorEnabled

public void setMonitorEnabled(boolean monitorEnabled)

isUnicodeEnabled

public boolean isUnicodeEnabled()
Specified by:
isUnicodeEnabled in interface IServerInfo

setUnicodeEnabled

public void setUnicodeEnabled(boolean unicodeEnabled)

isMoveDisabled

public boolean isMoveDisabled()
Specified by:
isMoveDisabled in interface IServerInfo

setMoveDisabled

public void setMoveDisabled(boolean moveDisabled)

getProxyVersion

public String getProxyVersion()
Specified by:
getProxyVersion in interface IServerInfo

setProxyVersion

public void setProxyVersion(String proxyVersion)

getProxyAddress

public String getProxyAddress()
Specified by:
getProxyAddress in interface IServerInfo

setProxyAddress

public void setProxyAddress(String proxyAddress)

getProxyRoot

public String getProxyRoot()
Specified by:
getProxyRoot in interface IServerInfo

setProxyRoot

public void setProxyRoot(String proxyRoot)

isProxyEncrypted

public boolean isProxyEncrypted()
Specified by:
isProxyEncrypted in interface IServerInfo

setProxyEncrypted

public void setProxyEncrypted(boolean proxyEncrypted)

getBrokerVersion

public String getBrokerVersion()
Specified by:
getBrokerVersion in interface IServerInfo

setBrokerVersion

public void setBrokerVersion(String brokerVersion)

getBrokerAddress

public String getBrokerAddress()
Specified by:
getBrokerAddress in interface IServerInfo

setBrokerAddress

public void setBrokerAddress(String brokerAddress)

isBrokerEncrypted

public boolean isBrokerEncrypted()
Specified by:
isBrokerEncrypted in interface IServerInfo

setBrokerEncrypted

public void setBrokerEncrypted(boolean brokerEncrypted)

getSandboxVersion

public String getSandboxVersion()
Specified by:
getSandboxVersion in interface IServerInfo

setSandboxVersion

public void setSandboxVersion(String sandboxVersion)

getSandboxPort

public String getSandboxPort()
Specified by:
getSandboxPort in interface IServerInfo

setSandboxPort

public void setSandboxPort(String sandboxPort)

isEncrypted

public boolean isEncrypted()
Specified by:
isEncrypted in interface IServerInfo

getServerId

public String getServerId()
Specified by:
getServerId in interface IServerInfo

setServerId

public void setServerId(String serverId)

getServerCluster

public String getServerCluster()
Specified by:
getServerCluster in interface IServerInfo

setServerCluster

public void setServerCluster(String serverCluster)

getIntegEngine

public String getIntegEngine()
Specified by:
getIntegEngine in interface IServerInfo

setIntegEngine

public void setIntegEngine(String integEngine)


Copyright © 2015 Perforce Software. All Rights Reserved.