本文整理了Java中javax.media.jai.JAI.enableDefaultTileCache()
方法的一些代码示例,展示了JAI.enableDefaultTileCache()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JAI.enableDefaultTileCache()
方法的具体详情如下:
包路径:javax.media.jai.JAI
类名称:JAI
方法名:enableDefaultTileCache
暂无
代码示例来源:origin: bcdev/beam
private void initializeJAI() {
long tileCacheCapacity = commandLineArgs.getTileCacheCapacity();
int tileSchedulerParallelism = commandLineArgs.getTileSchedulerParallelism();
if (tileCacheCapacity > 0) {
JAI.enableDefaultTileCache();
JAI.getDefaultInstance().getTileCache().setMemoryCapacity(tileCacheCapacity);
} else {
JAI.getDefaultInstance().getTileCache().setMemoryCapacity(0L);
JAI.disableDefaultTileCache();
}
if (tileSchedulerParallelism > 0) {
JAI.getDefaultInstance().getTileScheduler().setParallelism(tileSchedulerParallelism);
}
final long tileCacheSize = JAI.getDefaultInstance().getTileCache().getMemoryCapacity() / (1024L * 1024L);
commandLineContext.getLogger().info(MessageFormat.format("JAI tile cache size is {0} MB", tileCacheSize));
final int schedulerParallelism = JAI.getDefaultInstance().getTileScheduler().getParallelism();
commandLineContext.getLogger().info(
MessageFormat.format("JAI tile scheduler parallelism is {0}", schedulerParallelism));
}
代码示例来源:origin: bcdev/beam
} else {
JAI.getDefaultInstance().getTileCache().setMemoryCapacity(cacheSize);
JAI.enableDefaultTileCache();
内容来源于网络,如有侵权,请联系作者删除!