Java Doc for FileStatusCache.java in  » IDE-Netbeans » subversion » org » netbeans » modules » subversion » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » subversion » org.netbeans.modules.subversion 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.subversion.FileStatusCache

FileStatusCache
public class FileStatusCache implements ISVNNotifyListener(Code)
Central part of Subversion status management, deduces and caches statuses of files under version control.
author:
   Maros Sandor


Field Summary
final public static  ObjectEVENT_FILE_STATUS_CHANGED
     Indicates that status of a file changed and listeners SHOULD check new status values if they are interested in this file.
final public static  ISVNStatusREPOSITORY_STATUS_UNKNOWN
    
 ListenersSupportlistenerSupport
    

Constructor Summary
 FileStatusCache()
    

Method Summary
public  voidaddVersioningListener(VersioningListener listener)
    
 voidcleanUp()
     Cleans up the cache by removing or correcting entries that are no longer valid or correct.
 voiddirectoryContentChanged(File dir)
     Refreshes given directory and all subdirectories.
 Map<File, FileInformation>getAllModifiedFiles()
    
 FileInformationgetCachedStatus(File file)
     Looks up cacnehed file status.
public  FileInformationgetStatus(File file)
     Determines the versioning status of a file.
public  File[]listFiles(File dir)
     Lists modified files and all folders that are known to be inside this folder.
public  File[]listFiles(Context context, int includeStatus)
     Lists interesting files that are known to be inside given folders.
public  File[]listFiles(File[] roots, int includeStatus)
     Lists interesting files that are known to be inside given folders.
public  voidlogCommandLine(String commandLine)
    
public  voidlogCompleted(String message)
    
public  voidlogError(String message)
    
public  voidlogMessage(String message)
    
public  voidlogRevision(long revision, String path)
    
public  voidonNotify(File path, SVNNodeKind kind)
    
public  FileInformationrefresh(File file, ISVNStatus repositoryStatus)
     Refreshes the status of the file given the repository status.
public  voidrefreshCached(File file, ISVNStatus repositoryStatus)
     Refreshes information about a given file or directory ONLY if its status is already cached.
public  voidrefreshCached(Context ctx)
     Refreshes status of all files inside given context.
public  voidrefreshDirtyFileSystems()
    
public  voidremoveVersioningListener(VersioningListener listener)
    
public  voidsetCommand(int command)
    
static  StringstatusText(ISVNStatus status)
    

Field Detail
EVENT_FILE_STATUS_CHANGED
final public static Object EVENT_FILE_STATUS_CHANGED(Code)
Indicates that status of a file changed and listeners SHOULD check new status values if they are interested in this file. First parameter: File whose status changes Second parameter: old FileInformation object, may be null Third parameter: new FileInformation object



REPOSITORY_STATUS_UNKNOWN
final public static ISVNStatus REPOSITORY_STATUS_UNKNOWN(Code)



listenerSupport
ListenersSupport listenerSupport(Code)




Constructor Detail
FileStatusCache
FileStatusCache()(Code)




Method Detail
addVersioningListener
public void addVersioningListener(VersioningListener listener)(Code)



cleanUp
void cleanUp()(Code)
Cleans up the cache by removing or correcting entries that are no longer valid or correct.



directoryContentChanged
void directoryContentChanged(File dir)(Code)
Refreshes given directory and all subdirectories.
Parameters:
  dir - directory to refresh



getAllModifiedFiles
Map<File, FileInformation> getAllModifiedFiles()(Code)



getCachedStatus
FileInformation getCachedStatus(File file)(Code)
Looks up cacnehed file status.
Parameters:
  file - file to check give file's status or null if the file's status is not in cache



getStatus
public FileInformation getStatus(File file)(Code)
Determines the versioning status of a file. This method accesses disk and may block for a long period of time.
Parameters:
  file - file to get status for FileInformation structure containing the file status
See Also:   FileInformation



listFiles
public File[] listFiles(File dir)(Code)
Lists modified files and all folders that are known to be inside this folder. There are locally modified files present plus any files that exist in the folder in the remote repository. It returns all folders, including CVS folders.
Parameters:
  dir - folder to list



listFiles
public File[] listFiles(Context context, int includeStatus)(Code)
Lists interesting files that are known to be inside given folders. These are locally and remotely modified and ignored files.

Comapring to CVS this method returns both folders and files.
Parameters:
  context - context to examine
Parameters:
  includeStatus - limit returned files to those having one of supplied statuses File [] array of interesting files




listFiles
public File[] listFiles(File[] roots, int includeStatus)(Code)
Lists interesting files that are known to be inside given folders. These are locally and remotely modified and ignored files.

Comapring to CVS this method returns both folders and files.
Parameters:
  roots - context to examine
Parameters:
  includeStatus - limit returned files to those having one of supplied statuses File [] array of interesting files




logCommandLine
public void logCommandLine(String commandLine)(Code)



logCompleted
public void logCompleted(String message)(Code)



logError
public void logError(String message)(Code)



logMessage
public void logMessage(String message)(Code)



logRevision
public void logRevision(long revision, String path)(Code)



onNotify
public void onNotify(File path, SVNNodeKind kind)(Code)



refresh
public FileInformation refresh(File file, ISVNStatus repositoryStatus)(Code)
Refreshes the status of the file given the repository status. Repository status is filled in when this method is called while processing server output.

Note: it's not necessary if you use Subversion.getClient(), it updates the cache automatically using onNotify(). It's not fully reliable for removed files.
Parameters:
  file -
Parameters:
  repositoryStatus -




refreshCached
public void refreshCached(File file, ISVNStatus repositoryStatus)(Code)
Refreshes information about a given file or directory ONLY if its status is already cached. The only exception are non-existing files (new-in-repository) whose statuses are cached in all cases.
Parameters:
  file -
Parameters:
  repositoryStatus -



refreshCached
public void refreshCached(Context ctx)(Code)
Refreshes status of all files inside given context. Files that have some remote status, eg. REMOTELY_ADDED are brought back to UPTODATE.
Parameters:
  ctx - context to refresh



refreshDirtyFileSystems
public void refreshDirtyFileSystems()(Code)



removeVersioningListener
public void removeVersioningListener(VersioningListener listener)(Code)



setCommand
public void setCommand(int command)(Code)



statusText
static String statusText(ISVNStatus status)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.