public void add(ColumnFamilyStoreMBean table) { String tableName = table.getTableName(); long tableWriteCount = ((CassandraMetricsRegistry.JmxTimerMBean) probe.getColumnFamilyMetric(name, tableName, "WriteLatency")).getCount(); long tableReadCount = ((CassandraMetricsRegistry.JmxTimerMBean) probe.getColumnFamilyMetric(name, tableName, "ReadLatency")).getCount(); if (tableReadCount > 0) { readCount += tableReadCount; totalReadTime += (long) probe.getColumnFamilyMetric(name, tableName, "ReadTotalLatency"); } if (tableWriteCount > 0) { writeCount += tableWriteCount; totalWriteTime += (long) probe.getColumnFamilyMetric(name, tableName, "WriteTotalLatency"); } pendingFlushes += (long) probe.getColumnFamilyMetric(name, tableName, "PendingFlushes"); }
public void add(ColumnFamilyStoreMBean table) { String tableName = table.getTableName(); long tableWriteCount = ((CassandraMetricsRegistry.JmxTimerMBean) probe.getColumnFamilyMetric(name, tableName, "WriteLatency")).getCount(); long tableReadCount = ((CassandraMetricsRegistry.JmxTimerMBean) probe.getColumnFamilyMetric(name, tableName, "ReadLatency")).getCount(); if (tableReadCount > 0) { readCount += tableReadCount; totalReadTime += (long) probe.getColumnFamilyMetric(name, tableName, "ReadTotalLatency"); } if (tableWriteCount > 0) { writeCount += tableWriteCount; totalWriteTime += (long) probe.getColumnFamilyMetric(name, tableName, "WriteTotalLatency"); } pendingFlushes += (long) probe.getColumnFamilyMetric(name, tableName, "PendingFlushes"); }
public void add(ColumnFamilyStoreMBean table) { String tableName = table.getTableName(); long tableWriteCount = ((CassandraMetricsRegistry.JmxTimerMBean) probe.getColumnFamilyMetric(name, tableName, "WriteLatency")).getCount(); long tableReadCount = ((CassandraMetricsRegistry.JmxTimerMBean) probe.getColumnFamilyMetric(name, tableName, "ReadLatency")).getCount(); if (tableReadCount > 0) { readCount += tableReadCount; totalReadTime += (long) probe.getColumnFamilyMetric(name, tableName, "ReadTotalLatency"); } if (tableWriteCount > 0) { writeCount += tableWriteCount; totalWriteTime += (long) probe.getColumnFamilyMetric(name, tableName, "WriteTotalLatency"); } pendingFlushes += (long) probe.getColumnFamilyMetric(name, tableName, "PendingFlushes"); }
if (filter.isTableIncluded(keyspaceName, tableProxy.getTableName())) selectedTableMbeans.put(keyspaceName, tableProxy); String tableName = table.getTableName(); StatsTable statsTable = new StatsTable(); statsTable.name = tableName;
if (filter.isTableIncluded(keyspaceName, tableProxy.getTableName())) selectedTableMbeans.put(keyspaceName, tableProxy); String tableName = table.getTableName(); StatsTable statsTable = new StatsTable(); statsTable.name = tableName;
if (filter.isTableIncluded(keyspaceName, tableProxy.getTableName())) selectedTableMbeans.put(keyspaceName, tableProxy); String tableName = table.getTableName(); StatsTable statsTable = new StatsTable(); statsTable.name = tableName;