|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.microsoft.tfs.core.clients.versioncontrol.localworkspace.WorkspaceWatcher
public class WorkspaceWatcher
| Constructor Summary | |
|---|---|
WorkspaceWatcher(Workspace workspace)
|
|
| Method Summary | |
|---|---|
void |
addSkippedItem(java.lang.String localItem)
|
void |
ensureWatching()
If a PathWatcher is created but the path to watch on disk does not exist, then the PathWatcher will not start asynchronously watching for changes on disk. |
void |
forceFullScan()
|
boolean |
isAsynchronous()
True if the WorkspaceWatcher should, in the background, scan the workspace for changes in response to local disk events noticed by the PathWatchers. |
boolean |
isScanNecessary()
Returns true if a scan is necessary on this workspace. |
void |
locationChanged()
When the location of the workspace (local or server) changes, the Workspace object should inform the WorkspaceWatcher by calling this method. |
void |
markPathChanged(java.lang.String path)
Allows callers to explicitly add a path to the changed paths list for partial scans. |
void |
pathChanged(PathWatcher sender)
|
void |
removeSkippedItem(java.lang.String localItem)
|
void |
scan(com.microsoft.tfs.core.clients.versioncontrol.internal.localworkspace.LocalWorkspaceProperties wp,
com.microsoft.tfs.core.clients.versioncontrol.internal.localworkspace.WorkspaceVersionTable lv,
com.microsoft.tfs.core.clients.versioncontrol.internal.localworkspace.LocalPendingChangesTable pc)
Performs a scan of the workspace if necessary. |
void |
setAsynchronous(boolean value)
|
void |
stopWatching()
Stops all watchers. |
void |
workingFoldersChanged(WorkingFolder[] workingFolders)
Call this to inform the WorkspaceWatcher that the working folders for the Workspace have changed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkspaceWatcher(Workspace workspace)
| Method Detail |
|---|
public boolean isAsynchronous()
public void setAsynchronous(boolean value)
public void locationChanged()
public void stopWatching()
poll() or another method. This method is mainly
to support an application switching away from a workspace (perhaps to use
another), so that the old workspace's watchers are no longer hooked up.
public void ensureWatching()
public void workingFoldersChanged(WorkingFolder[] workingFolders)
public void markPathChanged(java.lang.String path)
public void forceFullScan()
throws java.io.IOException
java.io.IOException
public void scan(com.microsoft.tfs.core.clients.versioncontrol.internal.localworkspace.LocalWorkspaceProperties wp,
com.microsoft.tfs.core.clients.versioncontrol.internal.localworkspace.WorkspaceVersionTable lv,
com.microsoft.tfs.core.clients.versioncontrol.internal.localworkspace.LocalPendingChangesTable pc)
wp - Workspace properties tablelv - Local version tablepc - Pending changes tablepublic boolean isScanNecessary()
public void addSkippedItem(java.lang.String localItem)
public void pathChanged(PathWatcher sender)
public void removeSkippedItem(java.lang.String localItem)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||