Package persistence
Class JSONPersistentManager
- java.lang.Object
-
- persistence.JSONPersistentManager
-
public class JSONPersistentManager extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addKeywordForAPI(APINames apiName, java.lang.String keyword)
static JSONPersistentManager
getInstance()
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<java.lang.String>>>
getJsonMap()
java.util.List<java.lang.String>
getKeywordListForAPI(APINames apiName)
java.lang.String
getLastTimeCheckedForAPI(APINames apiName)
void
removeKeywordForAPI(APINames apiName, java.lang.String keyword)
void
setJsonPersistentHelper(JSONPersistentHelper jsonPersistentHelper)
void
setLastTimeCheckedForAPI(APINames apiName, long lastTimeCheckedSystemTimeMillis)
-
-
-
Method Detail
-
getInstance
public static JSONPersistentManager getInstance()
-
setJsonPersistentHelper
public void setJsonPersistentHelper(JSONPersistentHelper jsonPersistentHelper)
-
getJsonMap
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<java.lang.String>>> getJsonMap() throws java.lang.Exception
- Throws:
java.lang.Exception
-
addKeywordForAPI
public void addKeywordForAPI(APINames apiName, java.lang.String keyword)
-
removeKeywordForAPI
public void removeKeywordForAPI(APINames apiName, java.lang.String keyword)
-
getKeywordListForAPI
public java.util.List<java.lang.String> getKeywordListForAPI(APINames apiName) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setLastTimeCheckedForAPI
public void setLastTimeCheckedForAPI(APINames apiName, long lastTimeCheckedSystemTimeMillis)
-
getLastTimeCheckedForAPI
public java.lang.String getLastTimeCheckedForAPI(APINames apiName) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-