public class MetadataManager extends Object implements StoreKeyValue
| Modifier and Type | Class and Description |
|---|---|
class |
MetadataManager.KeyValue |
StoreKeyValue.Factory| Constructor and Description |
|---|
MetadataManager(String collectionName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static void |
closeAll() |
void |
delete(Map<String,MFile> current) |
void |
delete(String theKey) |
static void |
delete(String collectionName,
String key) |
static void |
deleteCollection(String collectionName) |
byte[] |
get(byte[] key) |
String |
get(String key) |
byte[] |
getBytes(String key) |
static String |
getCacheLocation() |
static List<String> |
getCollectionNames() |
List<MetadataManager.KeyValue> |
getContent() |
static StoreKeyValue.Factory |
getFactory() |
static void |
main(String[] args) |
void |
put(byte[] key,
byte[] value) |
void |
put(String key,
byte[] value) |
void |
put(String key,
String value) |
static void |
setCacheDirectory(String dir,
long _maxSizeBytes,
int _jvmPercent) |
static void |
showEnvStats(Formatter f) |
void |
showStats(Formatter f) |
static void |
sync() |
public MetadataManager(String collectionName) throws com.sleepycat.je.DatabaseException, IOException
com.sleepycat.je.DatabaseExceptionIOExceptionpublic static void setCacheDirectory(String dir, long _maxSizeBytes, int _jvmPercent)
public static void closeAll()
public static void showEnvStats(Formatter f)
public static String getCacheLocation()
public static void sync()
public static void deleteCollection(String collectionName) throws Exception
Exceptionpublic static StoreKeyValue.Factory getFactory()
public void put(byte[] key,
byte[] value)
public void put(String key, byte[] value)
put in interface StoreKeyValuepublic byte[] get(byte[] key)
public byte[] getBytes(String key)
getBytes in interface StoreKeyValuepublic void delete(String theKey)
public void close()
close in interface StoreKeyValuepublic void showStats(Formatter f)
public List<MetadataManager.KeyValue> getContent() throws com.sleepycat.je.DatabaseException, UnsupportedEncodingException
com.sleepycat.je.DatabaseExceptionUnsupportedEncodingExceptionCopyright © 1999–2013 UCAR/Unidata. All rights reserved.