org.apache.ignite.Ignite.dataRegionMetrics()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中org.apache.ignite.Ignite.dataRegionMetrics()方法的一些代码示例,展示了Ignite.dataRegionMetrics()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ignite.dataRegionMetrics()方法的具体详情如下:
包路径:org.apache.ignite.Ignite
类名称:Ignite
方法名:dataRegionMetrics

Ignite.dataRegionMetrics介绍

[英]Returns a collection of DataRegionMetrics that reflects page memory usage on this Apache Ignite node instance. Returns the collection that contains the latest snapshots for each memory region configured with DataRegionConfiguration on this Ignite node instance.
[中]返回DataRegionMetrics集合,该集合反映此Apache Ignite节点实例上的页面内存使用情况。返回包含此Ignite节点实例上使用DataRegionConfiguration配置的每个内存区域的最新快照的集合。

代码示例

代码示例来源:origin: apache/ignite

/** {@inheritDoc} */
@Nullable @Override public DataRegionMetrics dataRegionMetrics(String memPlcName) {
  checkIgnite();
  return g.dataRegionMetrics(memPlcName);
}

代码示例来源:origin: apache/ignite

/** {@inheritDoc} */
@Override public Collection<DataRegionMetrics> dataRegionMetrics() {
  checkIgnite();
  return g.dataRegionMetrics();
}

代码示例来源:origin: apache/ignite

/** */
private static DataRegionMetrics getDfltRegionMetrics(Ignite node) {
  for (DataRegionMetrics m : node.dataRegionMetrics())
    if (DFLT_DATA_REG_DEFAULT_NAME.equals(m.getName()))
      return m;
  throw new RuntimeException("No metrics found for default data region");
}

代码示例来源:origin: apache/ignite

Collection<DataRegionMetrics> metrics = prj.ignite().dataRegionMetrics();

代码示例来源:origin: apache/ignite

long c0 = testNode.dataRegionMetrics(DEFAULT_REGION).getPagesRead();
assertEquals("Read pages count must be same", c0, testNode.dataRegionMetrics(DEFAULT_REGION).getPagesRead());

代码示例来源:origin: apache/ignite

CacheGroupMetricsMXBean mxBean0Grp3 = mxBean(0, "cache4");
long totalPages = ignite.dataRegionMetrics("default").getTotalAllocatedPages();
totalPages = ignite.dataRegionMetrics("default").getTotalAllocatedPages();

代码示例来源:origin: org.apache.ignite/ignite-spring

/** {@inheritDoc} */
@Override public Collection<DataRegionMetrics> dataRegionMetrics() {
  checkIgnite();
  return g.dataRegionMetrics();
}

代码示例来源:origin: org.apache.ignite/ignite-spring

/** {@inheritDoc} */
@Nullable @Override public DataRegionMetrics dataRegionMetrics(String memPlcName) {
  checkIgnite();
  return g.dataRegionMetrics(memPlcName);
}

代码示例来源:origin: org.apache.ignite/ignite-core

Collection<DataRegionMetrics> metrics = prj.ignite().dataRegionMetrics();

相关文章