com.starteam
Class StarTeamRepositoryIDs

java.lang.Object
  extended by com.starteam.StarTeamRepositoryIDs

public final class StarTeamRepositoryIDs
extends java.lang.Object

A local file that keeps track of the last known repository ID of each known StarTeam server.


Constructor Summary
StarTeamRepositoryIDs()
          Constructs a new StarTeamRepositoryIDs.
StarTeamRepositoryIDs(java.io.File file)
          Constructs a new StarTeamRepositoryIDs.
 
Method Summary
 java.lang.String[] find(GUID repositoryID)
          Finds the set of StarTeam servers that were last known to have the given repository ID.
 GUID[] getAllKnownIDs()
          Gets a list of all known repository IDs saved in this file.
static java.io.File getDefaultFile()
          Gets the default location of the file where information about repostory IDs is stored.
 void save(java.lang.String host, int port, GUID repositoryID)
          Remembers the repository ID for the indicated server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StarTeamRepositoryIDs

public StarTeamRepositoryIDs()
                      throws java.io.IOException
Constructs a new StarTeamRepositoryIDs. Assumes repository information is stored in the default location.

Throws:
java.io.IOException
See Also:
StarTeamRepositoryIDs.getDefaultFile()

StarTeamRepositoryIDs

public StarTeamRepositoryIDs(java.io.File file)
                      throws java.io.IOException
Constructs a new StarTeamRepositoryIDs. Repository information is stored in the given location.

Parameters:
file - The file where information about repository IDs is stored.
Throws:
java.io.IOException
Method Detail

getDefaultFile

public static java.io.File getDefaultFile()
                                   throws java.io.IOException
Gets the default location of the file where information about repostory IDs is stored.

Returns:
The default location of the file where information about repostory IDs is stored.
Throws:
java.io.IOException

find

public java.lang.String[] find(GUID repositoryID)
                        throws java.io.IOException
Finds the set of StarTeam servers that were last known to have the given repository ID.

Parameters:
repositoryID - The repository ID to be found.
Returns:
The list of host:port connection strings for servers that were last known to have the given repository ID. The list is empty if the repositoryID was not found.
Throws:
java.io.IOException

save

public void save(java.lang.String host,
                 int port,
                 GUID repositoryID)
          throws java.io.IOException
Remembers the repository ID for the indicated server.

Parameters:
host - The server's host address.
port - The server's TCP/IP port.
repositoryID - The last known repository ID of this server.
Throws:
java.io.IOException

getAllKnownIDs

public GUID[] getAllKnownIDs()
                      throws java.io.IOException
Gets a list of all known repository IDs saved in this file.

Returns:
The list of all known repository IDs.
Throws:
java.io.IOException


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.