use of org.apache.ignite.DataRegionMetrics in project ignite by apache.
the class IgniteCacheDatabaseSharedManager method registerMetricsMBeans.
/**
* Registers MBeans for all DataRegionMetrics configured in this instance.
*/
private void registerMetricsMBeans() {
if (U.IGNITE_MBEANS_DISABLED)
return;
IgniteConfiguration cfg = cctx.gridConfig();
for (DataRegionMetrics memMetrics : memMetricsMap.values()) {
DataRegionConfiguration memPlcCfg = dataRegionMap.get(memMetrics.getName()).config();
registerMetricsMBean((DataRegionMetricsImpl) memMetrics, memPlcCfg, cfg);
}
}
use of org.apache.ignite.DataRegionMetrics in project ignite by apache.
the class DataStorageMetricsImpl method getUsedCheckpointBufferSize.
/**
* {@inheritDoc}
*/
@Override
public long getUsedCheckpointBufferSize() {
if (!metricsEnabled)
return 0;
Collection<DataRegionMetrics> regionMetrics0 = regionMetrics;
if (F.isEmpty(regionMetrics0))
return 0;
long usedCheckpointBufferSize = 0L;
for (DataRegionMetrics rm : regionMetrics0) usedCheckpointBufferSize += rm.getUsedCheckpointBufferSize();
return usedCheckpointBufferSize;
}
use of org.apache.ignite.DataRegionMetrics in project ignite by apache.
the class DataStorageMetricsImpl method getOffHeapSize.
/**
* {@inheritDoc}
*/
@Override
public long getOffHeapSize() {
if (!metricsEnabled)
return 0;
Collection<DataRegionMetrics> regionMetrics0 = regionMetrics;
if (F.isEmpty(regionMetrics0))
return 0;
long offHeapSize = 0L;
for (DataRegionMetrics rm : regionMetrics0) offHeapSize += rm.getOffHeapSize();
return offHeapSize;
}
use of org.apache.ignite.DataRegionMetrics in project ignite by apache.
the class DataStorageMetricsImpl method getUsedCheckpointBufferPages.
/**
* {@inheritDoc}
*/
@Override
public long getUsedCheckpointBufferPages() {
if (!metricsEnabled)
return 0;
Collection<DataRegionMetrics> regionMetrics0 = regionMetrics;
if (F.isEmpty(regionMetrics0))
return 0;
long usedCheckpointBufferPages = 0L;
for (DataRegionMetrics rm : regionMetrics0) usedCheckpointBufferPages += rm.getUsedCheckpointBufferPages();
return usedCheckpointBufferPages;
}
use of org.apache.ignite.DataRegionMetrics in project ignite by apache.
the class DataStorageMetricsImpl method getPagesRead.
/**
* {@inheritDoc}
*/
@Override
public long getPagesRead() {
if (!metricsEnabled)
return 0;
Collection<DataRegionMetrics> regionMetrics0 = regionMetrics;
if (F.isEmpty(regionMetrics0))
return 0;
long readPages = 0L;
for (DataRegionMetrics rm : regionMetrics0) readPages += rm.getPagesRead();
return readPages;
}
Aggregations