public class HsqldbRepoProvider
extends java.lang.Object
Based on the HSQL database temporary resource storage implementation, the warehouse supports multi-node sharing.
That is, iServer A created temporary resources, iServer B can also be seen, provided that iServer A and B share a Hsqldb service.
Built-in process cache, performance is relatively high
Constructor and Description |
---|
HsqldbRepoProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
contain(java.lang.String groupId, java.lang.String id) |
protected void |
decodeParamResultEntity(ParamResultEntity obj)
Hsqldb uses the fastjson class to serialize the java object internally.
|
void |
destroy() |
protected ParamResultEntity |
encodeParamResultEntity(ParamResultEntity obj)
Hsqldb uses the fastjson class to serialize the java object internally.
|
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 |
getCache() |
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 getCache()
protected int getPort()
protected boolean isAvaliable()