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