/*
 * Copyright 2015 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.example;

import java.util.Map;

import org.glowroot.collector.spi.model.AggregateOuterClass.Aggregate;
import org.glowroot.collector.spi.model.GaugeValueOuterClass.GaugeValue;
import org.glowroot.collector.spi.model.TraceOuterClass.Trace;

public class GlowrootCollector implements org.glowroot.collector.spi.Collector {

    public void collectTrace(Trace trace) throws Exception {
        System.out.println("========================================");
        PrintTrace.printTrace(trace);
        System.out.println("========================================");
    }

    public void collectAggregates(Map<String, Aggregate> overallAggregates,
            Map<String, Map<String, Aggregate>> transactionAggregates, long captureTime)
                    throws Exception {
        System.out.println("collectAggregates");
    }

    public void collectGaugeValues(Map<String, GaugeValue> gaugeValues) throws Exception {
        System.out.println("collectGaugeValues: " + gaugeValues.size());
    }
}

@@ -643,19 +643,20 @@
 va.util.
-Map
+List
 ;%0A%0Aimpor
@@ -710,16 +710,105 @@
 erClass.
+OverallAggregate;%0Aimport org.glowroot.collector.spi.model.AggregateOuterClass.Transaction
 Aggregat
@@ -1313,28 +1313,46 @@
 regates(
-Map%3CString, 
+long captureTime, List%3COverall
 Aggregat
@@ -1389,32 +1389,24 @@
     
-Map%3CString, Map%3CString, 
+List%3CTransaction
 Aggr
@@ -1411,17 +1411,16 @@
 gregate%3E
-%3E
  transac
@@ -1437,47 +1437,9 @@
 ates
-, long captureTime)%0A                   
+)
  thr
@@ -1549,20 +1549,13 @@
 ues(
-Map%3CString, 
+List%3C
 Gaug

Update to latest interface