|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.ServerInfo
public final class ServerInfo
Description: Server Configuration Parameters including the MPX Profile, and Cache Agent Configuration Applications that intend to use the Cache Agent should provide connectivity information through this class.
| Field Summary | |
|---|---|
static int |
DEFAULT_PORT
Default server TCP/IP port. |
| Constructor Summary | |
|---|---|
ServerInfo()
Construct a ServerInfo instance |
|
ServerInfo(ServerInfo copyFrom)
Create a copy of a ServerInfo from another one |
|
| Method Summary | |
|---|---|
ServerInfo |
copy()
return a copy of this ServerInfo |
boolean |
equals(java.lang.Object o)
returns true if the Object passed in is a ServerInfo instance, with the same set of values as this ServerInfo instance |
boolean |
getAutoLocateCacheAgent()
Indicates whether or not the best cache agent for this connection will be located automatically. |
int |
getConnectionType()
Returns the connection type to be used. |
java.lang.String |
getDebugString()
Returns a debug string representation of this server info. |
java.lang.String |
getDescription()
Returns the description for this server info entry. |
boolean |
getEnableCacheAgentForFileContent()
returns true if a cache agent should be used for file content checkout false to force all checkouts to use the StarTeam server directly. |
boolean |
getEnableCacheAgentForObjectProperties()
returns true to fetch object properties from a cache agent false to fetch all properties from the star team server |
Server.EncryptionAlgorithm |
getEncryption()
Returns the EncryptionAlgorithm algorithm to use for connections to the server. |
java.lang.String |
getHost()
Returns the host name for the server info. |
java.lang.String |
getMPXCacheAgentAddress()
Gets the host address of the MPX cache agent. |
int |
getMPXCacheAgentPort()
Gets the port number of the MPX cache agent. |
int |
getMPXCacheAgentThreadCount()
Gets the number of threads used by the MPX cache agent to fetch file content. |
java.lang.String |
getMPXProfileName()
Gets the name of the MPX profile to be used when connecting to this server. |
ServerInfoCollection |
getOwner()
Return the owning ServerInfoCollection. |
java.lang.String |
getPassword()
Returns a password saved in this ServerInfo. |
int |
getPort()
Returns the protocol endpoint for the server info. |
java.lang.String |
getUserName()
Returns a user name saved in this ServerInfo. |
int |
hashCode()
returns a unique hash for this instance |
boolean |
isCompression()
Returns true if compression is to be used when communicating with the server. |
void |
setAutoLocateCacheAgent(boolean autoLocateCacheAgent)
Determines whether or not the best cache agent for this connection will be located automatically. |
void |
setCompression(boolean compress)
Specify whether or not compression should be used when connecting to the server. |
void |
setConnectionType(int type)
Sets the connection type to be used. |
void |
setDescription(java.lang.String description)
Changes the description for this server info entry. |
void |
setEnableCacheAgentForFileContent(boolean EnableCacheAgent)
Sets whether or not to use the cache agent for file content checkout |
void |
setEnableCacheAgentForObjectProperties(boolean enableCacheAgent)
Sets whether or not to use the cache agent for object property caches |
void |
setEncryption(Server.EncryptionAlgorithm algorithm)
Sets the EncryptionAlgorithm algorithm to use for conenctions to the server. |
void |
setHost(java.lang.String host)
Sets the host name for this server info. |
void |
setMPXCacheAgentAddress(java.lang.String address)
Sets the host address of the MPX cache agent. |
void |
setMPXCacheAgentPort(int port)
Sets the port number of the MPX cache agent. |
void |
setMPXCacheAgentThreadCount(int nThreads)
Sets the number of threads used by the MPX cache agent to fetch file content. |
void |
setMPXProfileName(java.lang.String strName)
Sets the name of the MPX profile to be used when connecting to this server. |
void |
setPassword(java.lang.String password)
Save a password to this serverInfo instance. |
void |
setPort(int port)
Sets the protocol endpoint for the server info. |
void |
setUserName(java.lang.String userName)
Save a userName to this serverInfo instance. |
java.lang.String |
toString()
Returns this ServerInfo's description. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_PORT
| Constructor Detail |
|---|
public ServerInfo()
public ServerInfo(ServerInfo copyFrom)
copyFrom - ServerInfo a copy of a ServerInfo| Method Detail |
|---|
public ServerInfo copy()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - Object another instance of a ServerInfo object
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
throws DuplicateServerListEntryException
description - the new description
DuplicateServerListEntryException - if this server info belongs to a ServerList that contains an
entry using the new descriptionpublic ServerInfoCollection getOwner()
public java.lang.String getHost()
public void setHost(java.lang.String host)
host - the new host namepublic void setPort(int port)
port - the new endpointpublic int getPort()
public boolean getEnableCacheAgentForFileContent()
public void setEnableCacheAgentForFileContent(boolean EnableCacheAgent)
EnableCacheAgent - boolean whether or not to use the cache agent for file content
checkoutpublic boolean getEnableCacheAgentForObjectProperties()
public void setEnableCacheAgentForObjectProperties(boolean enableCacheAgent)
enableCacheAgent - boolean whether or not to use the cache agent for object
property cachespublic boolean getAutoLocateCacheAgent()
public void setAutoLocateCacheAgent(boolean autoLocateCacheAgent)
autoLocateCacheAgent - true to autolocate a cache agent, or false to use the cache
agent at the specified address and port.public Server.EncryptionAlgorithm getEncryption()
public void setEncryption(Server.EncryptionAlgorithm algorithm)
algorithm - the new EncryptionAlgorithm algorithmpublic boolean isCompression()
public void setCompression(boolean compress)
compress - true to use compressionpublic int getConnectionType()
ServerConfiguration.PROTOCOL_TCP_IP_SOCKETSpublic void setConnectionType(int type)
type - the connection type to use.ServerConfiguration.PROTOCOL_TCP_IP_SOCKETSpublic java.lang.String getMPXProfileName()
public void setMPXProfileName(java.lang.String strName)
strName - The name of the MPX profile to be used when connecting to this
server, or the empty string if MPX should not be enabled.public void setMPXCacheAgentAddress(java.lang.String address)
address - The host address of the MPX cache agent. Note that if
checkouts via the MPX cache agent are enabled, but no host
address is explicitly specified, then an attempt is made to
automatically locate the nearest cache agent on the network.public java.lang.String getMPXCacheAgentAddress()
ServerInfo.getEnableCacheAgentForFileContent(),
ServerInfo.getMPXCacheAgentPort()public void setMPXCacheAgentPort(int port)
port - The port number of the MPX cache agent. Note that if host
address is specified but no port number is specified, then the
default cache agent port (5201) is assumed.public int getMPXCacheAgentPort()
ServerInfo.getEnableCacheAgentForFileContent(),
ServerInfo.getMPXCacheAgentAddress()public void setMPXCacheAgentThreadCount(int nThreads)
nThreads - The number of threads used by the MPX cache agent to fetch
file content. The default value is 3.public int getMPXCacheAgentThreadCount()
ServerInfo.getEnableCacheAgentForFileContent()public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getDebugString()
public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
userName - the user namepublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - the password
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||