|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.StatusMethod
This class provides information about how file status is managed for the client. Prior to StarTeam 5.2 all file status information was stored on the StarTeam Server. In 5.2 this staus information moved to the client. There are two ways in which that status information can be stored. These are refered to as "Per folder" and "Central"
"Per folder" status information is stored as close to the source file as possible. Assuming a file under revision control is stored in C:/project/foo.txt then the status information for that file will be stored in C:/project/.sbas/SyncDB. In fact, the status information for all files under C:/project will be stored in the file. There are a number of advantages of storing it in this location. For example, whole local folder structures may be moved or copied to new locations and all the status information will go along with it. The downside to this scheme is that in some cases users will not want the .sbas folders mixed in with the source files they are managing with StarTeam.
"Central" status information is all stored under a single user specified directory on the client's machine. This keeps the status information away from the user's source files. The downside to this approach is that you cannot easily move or copy source directories and have status information go along with it.
Users may specify which of these two methods to use by default along with the location of the central status information. Additionaly, users may override this on a per-View basis.
View.getStatusMethodOverride(),
View.setStatusMethodOverride(com.starbase.starteam.StatusMethod)| Field Summary | |
static StatusMethod |
CENTRAL
Identifies the "Central" status management method. |
static StatusMethod |
DEFAULT
Used for specifying a View's status method. |
static StatusMethod |
PER_FOLDER
Identifies the "Per folder" status management method. |
| Method Summary | |
static void |
deleteSyncDB(java.io.File syncDirRoot,
java.lang.String key)
Deletes all the status information for the specified directory path. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
static java.lang.String |
getCentralStatusDirectory()
Returns the location of the central status repository. |
static FileBasedStatusManager |
getCentralStatusManager()
Gets a FileBasedStatusManager for managing status in the central location for this workstation. |
static FileBasedStatusManager |
getDefaultStatusManager()
Gets the default FileBasedStatusManager for this workstation. |
static StatusMethod |
getDefaultStatusMethod()
Returns the client's default method for storing status information. |
java.lang.String |
getDisplayName()
|
java.lang.String |
getName()
|
static FileBasedStatusManager |
getPerFolderStatusManager()
Gets a FileBasedStatusManager for managing status on a per-folder basis. |
static java.util.Enumeration |
getSourceDirs(java.io.File syncDirRoot)
Given a root directory which contains centrally managed status data, this method will return an enumeration of all the local directory paths for which there is status data. |
static int |
getSourceDirsCount(java.io.File syncDirRoot)
Returns the number of local directories that the specified centrally managed status directory is maintaining. |
static FileBasedStatusManager |
getStatusManagerForView(View view)
Gets the FileBasedStatusManager that manages file status information for the given View. |
static FileBasedStatusManager |
getStatusManagerForViewId(int viewID,
java.lang.String serverGUID)
Gets the FileBasedStatusManager that manages file status information for the given View ID and Server ID. |
int |
hashCode()
returns a unique hash for all instances of this type |
static void |
setCentralStatusDirectory(java.lang.String path)
Change the location of the central status directory. |
static void |
setDefaultStatusMethod(StatusMethod method)
Sets the client's default method for storing status information. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final StatusMethod DEFAULT
public static final StatusMethod CENTRAL
public static final StatusMethod PER_FOLDER
| Method Detail |
public java.lang.String getDisplayName()
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic static StatusMethod getDefaultStatusMethod()
public static void setDefaultStatusMethod(StatusMethod method)
method - the status method to use. Only possible values are PER_FOLDER and CENTRAL. May not be null.
public static void setCentralStatusDirectory(java.lang.String path)
throws java.io.IOException
path - the new directory path for central storage of status data
java.io.IOExceptionpublic static java.lang.String getCentralStatusDirectory()
public static FileBasedStatusManager getDefaultStatusManager()
StatusMethod.DEFAULT,
FileBasedStatusManagerpublic static FileBasedStatusManager getCentralStatusManager()
StatusMethod.CENTRAL,
FileBasedStatusManagerpublic static FileBasedStatusManager getPerFolderStatusManager()
StatusMethod.PER_FOLDER,
FileBasedStatusManagerpublic static FileBasedStatusManager getStatusManagerForView(View view)
SupportedFeatures.hasClientManagedFileStatus(),
View.getFileStatusManager(),
FileBasedStatusManager
public static FileBasedStatusManager getStatusManagerForViewId(int viewID,
java.lang.String serverGUID)
throws java.io.IOException
viewID - the view's ID.serverGUID - server's repository id (which is a GUID) in string form.
java.io.IOExceptionView.getFileStatusManager(),
FileBasedStatusManager
public static java.util.Enumeration getSourceDirs(java.io.File syncDirRoot)
throws java.io.IOException
syncDirRoot - the root of the centrally managed status directory
java.io.IOException
public static void deleteSyncDB(java.io.File syncDirRoot,
java.lang.String key)
syncDirRoot - the root of the centrally managed status directorykey - the platform independent directory path whose status
will be deleted.public static int getSourceDirsCount(java.io.File syncDirRoot)
syncDirRoot - the root of the centrally managed status directory
public boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - 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 | |||||||||