本文整理了Java中org.geowebcache.diskquota.storage.Quota.setTileSetId
方法的一些代码示例,展示了Quota.setTileSetId
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Quota.setTileSetId
方法的具体详情如下:
包路径:org.geowebcache.diskquota.storage.Quota
类名称:Quota
方法名:setTileSetId
暂无
代码示例来源:origin: GeoWebCache/geowebcache
public Quota mapRow(ResultSet rs, int rowNum) throws SQLException {
BigDecimal bytes = rs.getBigDecimal(1);
Quota quota = new Quota(bytes.toBigInteger());
quota.setTileSetId(tileSetId);
return quota;
}
},
代码示例来源:origin: GeoWebCache/geowebcache
private TileSet getOrCreateTileSet(final Transaction transaction, final TileSet tset) {
String id = tset.getId();
TileSet stored;
if (null == (stored = tileSetById.get(transaction, id, LockMode.DEFAULT))) {
log.debug("Creating TileSet for quota tracking: " + tset);
tileSetById.putNoReturn(transaction, tset);
stored = tset;
Quota tileSetUsedQuota = new Quota();
tileSetUsedQuota.setTileSetId(tset.getId());
usedQuotaById.putNoReturn(transaction, tileSetUsedQuota);
}
return stored;
}
代码示例来源:origin: GeoWebCache/geowebcache
globalQuota.setTileSetId(GLOBAL_QUOTA_NAME);
usedQuotaById.put(transaction, globalQuota);
log.debug("created Global Quota");
内容来源于网络,如有侵权,请联系作者删除!