com.metamatrix.common.extensionmodule.spi.jdbc
Class FileCache
java.lang.Object
com.metamatrix.common.extensionmodule.spi.jdbc.FileCache
public class FileCache
- extends java.lang.Object
Cache of files (byte[]s) and their checksums, by filename.
The values in the cache are contained in SoftReferences,
so they may be removed by the garbage collector when necessary.
Other than that, there is no cache replacement.
- Since:
- 4.2
Method Summary |
void |
addTypeToCache(java.lang.String type)
|
byte[] |
getBytes(java.lang.String filename)
|
long |
getChecksum(java.lang.String filename)
|
void |
put(java.lang.String filename,
long checksum,
byte[] bytes,
java.lang.String type)
|
int |
size()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNKNOWN_CHECKSUM
public static final long UNKNOWN_CHECKSUM
- See Also:
- Constant Field Values
FileCache
public FileCache()
addTypeToCache
public void addTypeToCache(java.lang.String type)
getChecksum
public long getChecksum(java.lang.String filename)
getBytes
public byte[] getBytes(java.lang.String filename)
put
public void put(java.lang.String filename,
long checksum,
byte[] bytes,
java.lang.String type)
size
public int size()
Copyright © 2009. All Rights Reserved.