public class MetadataManager extends Object implements StoreKeyValue
Modifier and Type | Class and Description |
---|---|
static 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.DatabaseException
IOException
public 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
Exception
public static StoreKeyValue.Factory getFactory()
public void put(byte[] key, byte[] value)
public void put(String key, byte[] value)
put
in interface StoreKeyValue
public byte[] get(byte[] key)
public byte[] getBytes(String key)
getBytes
in interface StoreKeyValue
public void delete(String theKey)
public void close()
close
in interface StoreKeyValue
public void showStats(Formatter f)
public List<MetadataManager.KeyValue> getContent() throws com.sleepycat.je.DatabaseException, UnsupportedEncodingException
com.sleepycat.je.DatabaseException
UnsupportedEncodingException
Copyright © 1999–2019 UCAR/Unidata. All rights reserved.