blueflood-core/src/main/java/com/rackspacecloud/blueflood/io/datastax/DBasicMetricsRW.java
@Override
    public void insertMetrics( Collection<IMetric> metrics ) throws IOException {

        Timer.Context ctx = Instrumentation.getWriteTimerContext( CassandraModel.CF_METRICS_FULL_NAME );
        try {
            if ( isBatchIngestEnabled ) {
                insertMetricsInBatch(metrics);
            } else {
                insertMetricsIndividually(metrics);
            }
        }
        finally {
            ctx.stop();
        }
    }
@Override
    public void insertMetrics( Collection<IMetric> metrics ) throws IOException {

        Timer.Context ctx = Instrumentation.getWriteTimerContext( CassandraModel.CF_METRICS_FULL_NAME );
        try {
            if ( isBatchIngestEnabled ) {
                insertMetricsInBatch(metrics);
            } else {
                insertMetricsIndividually(metrics);
            }
        }
        finally {
            ctx.stop();
        }
    }
@ Override public void insertMetrics ( Collection < IMetric > metrics ) throws IOException { Timer . Context ctx = Instrumentation . getWriteTimerContext ( CassandraModel . CF_METRICS_FULL_NAME ) ; try { if ( isBatchIngestEnabled ) { insertMetricsInBatch ( metrics ) ; } else { insertMetricsIndividually ( metrics ) ; } } finally { ctx . stop ( ) ; } }
This method inserts a collection of {@link com.rackspacecloud.blueflood.types.IMetric} objects
to the appropriate Cassandra column family. Effectively, this method is only called to write
the raw metrics received during Ingest requests. Another method, insertRollups, is used by
the Rollup processes to write rolled up metrics.

@param metrics

@throws IOException
This method inserts a collection of { @link com . rackspacecloud . blueflood . types . IMetric } objects to the appropriate Cassandra column family . Effectively this method is only called to write the raw metrics received during Ingest requests . Another method insertRollups is used by the Rollup processes to write rolled up metrics .