public class BDBMap extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.sleepycat.je.Database |
db |
protected String |
dir |
protected com.sleepycat.je.Environment |
env |
protected String |
name |
| Constructor and Description |
|---|
BDBMap(String name,
String dir)
consturctor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addTimestampForId(String context,
String ip,
String time)
associate timestamp time with idenfier ip persistantly
|
String |
get(String keyStr)
retrieve the value assoicated with keyStr from persistant storage
|
static BDBMap |
getContextMap(String context) |
static String |
getTimestampForId(String context,
String ip)
return the timestamp associated with the identifier argument, or now
if no value is associated or something goes wrong.
|
protected void |
init() |
void |
put(String keyStr,
String valueStr)
persistantly store key-value pair
|
protected com.sleepycat.je.Environment env
protected com.sleepycat.je.Database db
protected String name
protected String dir
protected void init()
public void put(String keyStr, String valueStr)
keyStr - valueStr - public String get(String keyStr)
keyStr - public static BDBMap getContextMap(String context)
context - public static String getTimestampForId(String context, String ip)
context - ip - Copyright © 2005–2017 IIPC. All rights reserved.