|
org.netbeans.bootstrap/1 2.52 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.Stamps
public final class Stamps
Support for optimal checking of time stamps of certain files in NetBeans directory structure.
| Nested Class Summary | |
|---|---|
static interface |
Stamps.Updater
A callback interface to flush content of some cache at a suitable point in time. |
| Method Summary | |
|---|---|
ByteBuffer |
asByteBuffer(String cache)
Opens the access to cache object as a stream. |
MappedByteBuffer |
asMappedByteBuffer(String cache)
Getter for mmapped buffer access to the cache. |
InputStream |
asStream(String cache)
Opens the access to cache object as a stream. |
void |
discardCaches()
|
boolean |
exists(String cache)
Checks whether a cache exists |
void |
flush(int delay)
Flushes all caches. |
static Stamps |
getModulesJARs()
Creates instance of stamp that checks timestamp for all files that affect module classloading and related caches. |
long |
lastModified()
Finds out the time of last modifications of files that influnce this cache. |
void |
scheduleSave(Stamps.Updater updater,
String cache,
boolean append)
Method for registering updates to caches. |
void |
shutdown()
Waits for the worker to finish |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Stamps getModulesJARs()
public long lastModified()
public boolean exists(String cache)
cache - name of the cache
public InputStream asStream(String cache)
name - name of the cache
public MappedByteBuffer asMappedByteBuffer(String cache)
cache - the file to access
public ByteBuffer asByteBuffer(String cache)
name - name of the cache
public void scheduleSave(Stamps.Updater updater,
String cache,
boolean append)
updater - the callback to start when flushing cachesfile - name of the file to store the cache intoappend - write from scratch or append?public void flush(int delay)
delay - the delay to wait with starting the parsing, if zero, that also means
we want to wait for the end of parsingpublic void shutdown()
public void discardCaches()
|
org.netbeans.bootstrap/1 2.52 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||