|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.modules.vcscore.turbo.Turbo
Client code main entry point. It's defacto implementation
of FileStatusProvider
interface (enhanced by being event source).
It enhances org.netbeans.modules.vcscore.turbo.local
contract by ability to synchronously and asynchronously issue
remote repository commands and translate their results to callbacks.
Method Summary | |
void |
addTurboListener(TurboListener l)
|
static FileProperties |
getCachedMeta(FileObject fileObject)
Request cached status, it never connects to repository. |
static FileProperties |
getMemoryMeta(FileObject fileObject)
Access memory layer. |
static FileProperties |
getMeta(FileObject fileObject)
Request last known status from first level that responds (memory, disk or repository). |
static FileProperties |
getRepositoryMeta(FileObject fileObject)
Request fresh status from repository caching it. |
static boolean |
prepareMeta(FileObject fileObject)
Instruct system to load data from slow layers. |
void |
removeTurboListener(TurboListener l)
|
static void |
setMeta(File file,
FileProperties status)
Deprecated. Internal contract: it allows the VCSFS to address FileObject prenatal situations. |
static void |
setMeta(FileObject fileObject,
FileProperties status)
Populate cache by given attributes. |
static void |
shutdown()
Notifies turbo tha t it's not needed anymore. |
static Turbo |
singleton()
You do not need this until you need add event listeners. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static FileProperties getMeta(FileObject fileObject)
Threading: for convenience (or confusion) it protects
callers from introducing UI freezes. If called from GUI
thread it rather returns null
and spawns
asynchronous thread than synchronously computing the value.
null
for unknownpublic static FileProperties getRepositoryMeta(FileObject fileObject)
null
for unknownpublic static boolean prepareMeta(FileObject fileObject)
fileObject
-
true
on available data, no listener will firepublic static FileProperties getCachedMeta(FileObject fileObject)
Threading: for convenience (or confusion) it protects
callers from introducing UI freezes. If called from GUI
thread it rather returns null
and spawns
asynchronous thread than synchronously computing the value.
null
for unknownpublic static FileProperties getMemoryMeta(FileObject fileObject)
null
for unknownpublic static void setMeta(FileObject fileObject, FileProperties status)
status
- new status or for invalidating
public static void setMeta(File file, FileProperties status)
FileObject
prenatal situations.
file
- public void addTurboListener(TurboListener l)
public void removeTurboListener(TurboListener l)
public static Turbo singleton()
public static void shutdown()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |