|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.ServerInfo
| Constructor Summary | |
ServerInfo()
Construct a ServerInfo instance |
|
ServerInfo(ServerInfo source)
Create a copy of a ServerInfo from another one |
|
ServerInfo(java.lang.String description,
int connectionType,
java.lang.String host,
java.lang.String endpoint,
boolean compression,
EncryptionAlgorithm encryption)
Deprecated. |
|
| Method Summary | |
ServerInfo |
copy()
return a copy of this ServerInfo |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
boolean |
getAlwaysEnableCacheAgentForObjectProperties()
returns true to fetch object properties from a cache agent false to fetch all properties from the star team server |
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 |
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 |
EncryptionAlgorithm |
getEncryption()
Returns the encryption algorithm to use for connections to the server. |
java.lang.String |
getEndpoint()
Deprecated. Use getPort() instead |
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. |
ServerList |
getOwner()
Return the owning ServerList. |
int |
getPort()
Returns the protocol endpoint for the server info. |
int |
hashCode()
returns a unique hash for all instances of this type |
boolean |
isCompression()
Returns true if compression is to be used when communicating with the server. |
boolean |
isEqualTo(ServerInfo source)
returns true if this object instance is equal to the source |
void |
setAlwaysEnableCacheAgentForObjectProperties(boolean enableCacheAgent)
Sets whether or not to always use the cache agent for object property caches If this option is set, then the cache agent is used to fetch object properties, regardless of whether it is determinable that the same fetch from the server would be more optimal This property is always false by default, and must be explicitly set each time the action is desired. |
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(EncryptionAlgorithm encryption)
Sets the encryption algorithm to use for conenctions to the server. |
void |
setEndpoint(java.lang.String endpoint)
Deprecated. Use setPort(int) instead |
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 |
setPort(int port)
Sets the protocol endpoint for the server info. |
java.lang.String |
toDebugString()
Returns a debug string representation of this server info. |
java.lang.String |
toString()
Returns this ServerInfo's description. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ServerInfo()
public ServerInfo(ServerInfo source)
public ServerInfo(java.lang.String description,
int connectionType,
java.lang.String host,
java.lang.String endpoint,
boolean compression,
EncryptionAlgorithm encryption)
description - the description to use for this server entryconnectionType - the type of connection to usehost - the host address for the serverendpoint - the protocol specific endpoint. For TCP/IP connections this would be the TCP/IP port number.compression - true if the connection should use compressionencryption - the type of encryption to useServerConfiguration.PROTOCOL_LRPC,
ServerConfiguration.PROTOCOL_TCP_IP_SOCKETS,
ServerConfiguration.PROTOCOL_TCP_IP_SOCKETS_XML,
ServerConfiguration.PROTOCOL_NETBIOS,
ServerConfiguration.PROTOCOL_IPX,
ServerConfiguration.PROTOCOL_NAMED_PIPE,
ServerConfiguration.PROTOCOL_TCP_IP_RPC,
ServerInfo.ServerInfo()| Method Detail |
public ServerInfo copy()
public 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 ServerList getOwner()
public java.lang.String getHost()
public void setHost(java.lang.String host)
host - the new host namepublic java.lang.String getEndpoint()
ServerInfo.getPort()public void setEndpoint(java.lang.String endpoint)
endpoint - the new endpointServerInfo.setPort(int)public void setPort(int port)
public int getPort()
public EncryptionAlgorithm getEncryption()
public void setEncryption(EncryptionAlgorithm encryption)
encryption - the new encryption algorithmpublic boolean isCompression()
public void setCompression(boolean compress)
compress - public int getConnectionType()
ServerConfiguration.PROTOCOL_LRPC,
ServerConfiguration.PROTOCOL_TCP_IP_SOCKETS,
ServerConfiguration.PROTOCOL_TCP_IP_SOCKETS_XML,
ServerConfiguration.PROTOCOL_NETBIOS,
ServerConfiguration.PROTOCOL_IPX,
ServerConfiguration.PROTOCOL_NAMED_PIPE,
ServerConfiguration.PROTOCOL_TCP_IP_RPCpublic void setConnectionType(int type)
type - the connection type to use.ServerConfiguration.PROTOCOL_LRPC,
ServerConfiguration.PROTOCOL_TCP_IP_SOCKETS,
ServerConfiguration.PROTOCOL_TCP_IP_SOCKETS_XML,
ServerConfiguration.PROTOCOL_NETBIOS,
ServerConfiguration.PROTOCOL_IPX,
ServerConfiguration.PROTOCOL_NAMED_PIPE,
ServerConfiguration.PROTOCOL_TCP_IP_RPCpublic 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()
Server.getMPXCacheAgentEnabled(),
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()
Server.getMPXCacheAgentEnabled(),
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()
Server.getMPXCacheAgentEnabled()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)
public boolean getAlwaysEnableCacheAgentForObjectProperties()
getEnableCacheAgentForObjectPropertiespublic void setAlwaysEnableCacheAgentForObjectProperties(boolean enableCacheAgent)
setEnableCacheAgentForObjectPropertiespublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toDebugString()
public boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public boolean isEqualTo(ServerInfo source)
source - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||