@@ -52,7 +52,7 @@ public class MyMapper extends RichMapFunction<String, String> {
52
52
private transient Counter counter;
53
53
54
54
@Override
55
- public void open (Configuration config ) {
55
+ public void open (OpenContext ctx ) {
56
56
this . counter = getRuntimeContext()
57
57
.getMetricGroup()
58
58
.counter(" myCounter" );
@@ -116,7 +116,7 @@ public class MyMapper extends RichMapFunction<String, String> {
116
116
private transient Counter counter;
117
117
118
118
@Override
119
- public void open (Configuration config ) {
119
+ public void open (OpenContext ctx ) {
120
120
this . counter = getRuntimeContext()
121
121
.getMetricGroup()
122
122
.counter(" myCustomCounter" , new CustomCounter ());
@@ -173,7 +173,7 @@ public class MyMapper extends RichMapFunction<String, String> {
173
173
private transient int valueToExpose = 0 ;
174
174
175
175
@Override
176
- public void open (Configuration config ) {
176
+ public void open (OpenContext ctx ) {
177
177
getRuntimeContext()
178
178
.getMetricGroup()
179
179
.gauge(" MyGauge" , new Gauge<Integer > () {
@@ -247,7 +247,7 @@ public class MyMapper extends RichMapFunction<Long, Long> {
247
247
private transient Histogram histogram;
248
248
249
249
@Override
250
- public void open (Configuration config ) {
250
+ public void open (OpenContext ctx ) {
251
251
this . histogram = getRuntimeContext()
252
252
.getMetricGroup()
253
253
.histogram(" myHistogram" , new MyHistogram ());
@@ -307,7 +307,7 @@ public class MyMapper extends RichMapFunction<Long, Long> {
307
307
private transient Histogram histogram;
308
308
309
309
@Override
310
- public void open (Configuration config ) {
310
+ public void open (OpenContext ctx ) {
311
311
com.codahale.metrics. Histogram dropwizardHistogram =
312
312
new com.codahale.metrics. Histogram (new SlidingWindowReservoir (500 ));
313
313
@@ -366,7 +366,7 @@ public class MyMapper extends RichMapFunction<Long, Long> {
366
366
private transient Meter meter;
367
367
368
368
@Override
369
- public void open (Configuration config ) {
369
+ public void open (OpenContext ctx ) {
370
370
this . meter = getRuntimeContext()
371
371
.getMetricGroup()
372
372
.meter(" myMeter" , new MyMeter ());
@@ -440,7 +440,7 @@ public class MyMapper extends RichMapFunction<Long, Long> {
440
440
private transient Meter meter;
441
441
442
442
@Override
443
- public void open (Configuration config ) {
443
+ public void open (OpenContext ctx ) {
444
444
com.codahale.metrics. Meter dropwizardMeter = new com.codahale.metrics. Meter ();
445
445
446
446
this . meter = getRuntimeContext()
0 commit comments