< A extends SimpleAggregator , T > AggregatorData < A , T > createAggregatorData ( Class < A > klass , String name , long timeWindowMillis ) { try { A aggregator = ( A ) CONSTRUCTORS . get ( klass ) . newInstance ( name ) ; return aggregator . createAggregatorData ( timeWindowMillis ) ; } catch ( Exception ex ) { throw new RuntimeException ( ex ) ; } }
Creates an AggregatorData .