public class HsqldbRepoProvider
extends java.lang.Object
基于HSQL数据库的临时资源存储实现 ,该仓库支持多节点共享。
即iServer A 创建的临时资源,在iServer B也可见,前提是iServer A 与 B 共用一个Hsqldb 服务。
内置进程内缓存,性能相对较高
构造器和说明 |
---|
HsqldbRepoProvider() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
contain(java.lang.String groupId, java.lang.String id) |
protected void |
decodeParamResultEntity(ParamResultEntity obj)
hsqldb内部采用fastjson类序列化java对象。
|
void |
destroy() |
protected ParamResultEntity |
encodeParamResultEntity(ParamResultEntity obj)
hsqldb内部采用fastjson类序列化java对象。
|
java.lang.Object |
get(java.lang.String groupId, java.lang.String id) |
java.util.List<java.lang.String> |
getAllStatusKeys(java.lang.String groupId) |
java.util.Map<java.lang.String,java.lang.Object> |
getAllStatusObject(java.lang.String groupId) |
protected HsqldbRepoProviderDaemon |
getDaemon() |
protected BasicDataSource |
getDatasoruce_previous() |
protected BasicDataSource |
getDatasoruce() |
protected int |
getPort() |
boolean |
init(RepositorySetting setting) |
protected boolean |
init(RepositorySetting setting, com.supermap.services.rest.repository.HsqldbRepoProvider.DBCPDataSourceFactory dsFactory, HsqldbRepoProviderDaemon daemon) |
protected boolean |
isAvaliable() |
boolean |
remove(java.lang.String groupId, java.lang.String id) |
boolean |
save(java.lang.String groupId, java.lang.String id, java.lang.Object obj, int holdTime) |
boolean |
update(java.lang.String groupId, java.lang.String id, java.lang.Object toUpdate) |
public boolean init(RepositorySetting setting)
protected boolean init(RepositorySetting setting, com.supermap.services.rest.repository.HsqldbRepoProvider.DBCPDataSourceFactory dsFactory, HsqldbRepoProviderDaemon daemon)
public boolean save(java.lang.String groupId, java.lang.String id, java.lang.Object obj, int holdTime)
protected ParamResultEntity encodeParamResultEntity(ParamResultEntity obj)
obj
-protected void decodeParamResultEntity(ParamResultEntity obj)
obj
-public boolean update(java.lang.String groupId, java.lang.String id, java.lang.Object toUpdate)
public boolean remove(java.lang.String groupId, java.lang.String id)
public boolean contain(java.lang.String groupId, java.lang.String id)
public java.util.Map<java.lang.String,java.lang.Object> getAllStatusObject(java.lang.String groupId)
public java.util.List<java.lang.String> getAllStatusKeys(java.lang.String groupId)
public java.lang.Object get(java.lang.String groupId, java.lang.String id)
public void destroy()
protected BasicDataSource getDatasoruce()
protected BasicDataSource getDatasoruce_previous()
protected HsqldbRepoProviderDaemon getDaemon()
protected int getPort()
protected boolean isAvaliable()