com.microsoft.tfs.core.config
Class ConnectionInstanceData

java.lang.Object
  extended by com.microsoft.tfs.core.config.ConnectionInstanceData

public class ConnectionInstanceData
extends java.lang.Object

A holder class for TFSTeamProjectCollection instance configuration data.

Since:
TEE-SDK-10.1
Thread-safety:
immutable

Constructor Summary
ConnectionInstanceData(java.net.URI serverURI, java.util.concurrent.atomic.AtomicReference<Credentials> credentialsHolder, com.microsoft.tfs.util.GUID sessionId)
          Creates a new ConnectionInstanceData.
ConnectionInstanceData(java.net.URI serverURI, com.microsoft.tfs.util.GUID sessionId)
          Creates a new ConnectionInstanceData.
 
Method Summary
 Credentials getCredentials()
           
 java.util.concurrent.atomic.AtomicReference<Credentials> getCredentialsHolder()
           
 java.net.URI getServerURI()
           
 com.microsoft.tfs.util.GUID getSessionID()
           
 void setCredentials(Credentials credentials)
          Sets the credentials for this server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionInstanceData

public ConnectionInstanceData(java.net.URI serverURI,
                              com.microsoft.tfs.util.GUID sessionId)
Creates a new ConnectionInstanceData.

Parameters:
profile - the TFSTeamProjectCollection's profile (must not be null )
sessionId - the TFSTeamProjectCollection's session ID (must not be null)

ConnectionInstanceData

public ConnectionInstanceData(java.net.URI serverURI,
                              java.util.concurrent.atomic.AtomicReference<Credentials> credentialsHolder,
                              com.microsoft.tfs.util.GUID sessionId)
Creates a new ConnectionInstanceData.

Parameters:
profile - the TFSTeamProjectCollection's profile (must not be null)
credentials - the Credentials to use when connecting
sessionId - the TFSTeamProjectCollection's session ID (must not be null)
Method Detail

getServerURI

public java.net.URI getServerURI()
Returns:
this ConnectionInstanceData's server URI (never null)

getCredentialsHolder

public java.util.concurrent.atomic.AtomicReference<Credentials> getCredentialsHolder()
Returns:
a reference to the credentials used by this server, and potentially other related servers.

setCredentials

public void setCredentials(Credentials credentials)
Sets the credentials for this server. Note that the credentials for any related server will be updated. (Ie, the TFSTeamProjectCollection s created from TFSConfigurationServer will be updated.)

Parameters:
credentials -

getCredentials

public Credentials getCredentials()
Returns:
the Credentials for this server

getSessionID

public com.microsoft.tfs.util.GUID getSessionID()
Returns:
this ConnectionInstanceData's session ID (never null)


© 2015 Microsoft. All rights reserved.