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