| Line |
Stmt Id |
Pos |
Tree |
Symbol |
Tests |
Code |
|
30
|
53156
|
1201
-
1271
|
Apply
|
com.typesafe.config.ConfigFactory.parseString
|
|
com.typesafe.config.ConfigFactory.parseString("{units:seconds,interval:\"60 seconds\"}")
|
|
34
|
53157
|
1405
-
1419
|
Select
|
org.locationtech.geomesa.metrics.core.ReporterFactory.ReporterReader
|
|
ReporterFactory.this.ReporterReader
|
|
44
|
53158
|
1663
-
1663
|
Select
|
scala.Tuple3._1
|
|
x$1._1
|
|
44
|
53159
|
1670
-
1670
|
Select
|
scala.Tuple3._2
|
|
x$1._2
|
|
44
|
53160
|
1681
-
1681
|
Select
|
scala.Tuple3._3
|
|
x$1._3
|
|
46
|
53161
|
1828
-
1871
|
Apply
|
org.locationtech.geomesa.metrics.core.ReporterFactory.apply
|
|
x$2.apply(config, registry, rates, durations)
|
|
46
|
53162
|
1828
-
1871
|
ApplyImplicitView
|
scala.Option.option2Iterable
|
|
scala.this.Option.option2Iterable[com.codahale.metrics.ScheduledReporter](x$2.apply(config, registry, rates, durations))
|
|
46
|
53163
|
1827
-
1827
|
TypeApply
|
scala.collection.immutable.Stream.canBuildFrom
|
|
immutable.this.Stream.canBuildFrom[com.codahale.metrics.ScheduledReporter]
|
|
46
|
53165
|
1801
-
2037
|
Apply
|
scala.Option.getOrElse
|
|
ReporterFactory.this.factories.toStream.flatMap[com.codahale.metrics.ScheduledReporter, scala.collection.immutable.Stream[com.codahale.metrics.ScheduledReporter]](((x$2: org.locationtech.geomesa.metrics.core.ReporterFactory) => scala.this.Option.option2Iterable[com.codahale.metrics.ScheduledReporter](x$2.apply(config, registry, rates, durations))))(immutable.this.Stream.canBuildFrom[com.codahale.metrics.ScheduledReporter]).headOption.getOrElse[com.codahale.metrics.ScheduledReporter](throw new scala.`package`.IllegalArgumentException(scala.StringContext.apply("Could not load reporter factory using provided config:\\n", "").s(config.root().render())))
|
|
47
|
53164
|
1902
-
2031
|
Throw
|
<nosymbol>
|
|
throw new scala.`package`.IllegalArgumentException(scala.StringContext.apply("Could not load reporter factory using provided config:\\n", "").s(config.root().render()))
|
|
50
|
53166
|
2046
-
2058
|
Apply
|
scala.Long.>
|
|
interval.>(0)
|
|
50
|
53169
|
2042
-
2042
|
Literal
|
<nosymbol>
|
|
()
|
|
50
|
53170
|
2042
-
2042
|
Block
|
<nosymbol>
|
|
()
|
|
51
|
53167
|
2068
-
2115
|
Apply
|
com.codahale.metrics.ScheduledReporter.start
|
|
reporter.start(interval, MILLISECONDS)
|
|
51
|
53168
|
2068
-
2115
|
Block
|
com.codahale.metrics.ScheduledReporter.start
|
|
reporter.start(interval, MILLISECONDS)
|
|
61
|
53180
|
2383
-
2703
|
Apply
|
scala.util.Either.RightProjection.flatMap
|
|
cur.asObjectCursor.right.flatMap[pureconfig.error.ConfigReaderFailures, org.locationtech.geomesa.metrics.core.ReporterFactory.ReporterConfig](((obj: pureconfig.ConfigObjectCursor) => ReporterReader.this.timeUnit(obj, "rate-units", "units").right.flatMap[pureconfig.error.ConfigReaderFailures, org.locationtech.geomesa.metrics.core.ReporterFactory.ReporterConfig](((rate: java.util.concurrent.TimeUnit) => ReporterReader.this.timeUnit(obj, "duration-units", "units").right.flatMap[pureconfig.error.ConfigReaderFailures, org.locationtech.geomesa.metrics.core.ReporterFactory.ReporterConfig](((duration: java.util.concurrent.TimeUnit) => ReporterReader.this.durationMillis(obj.atKeyOrUndefined("interval")).right.map[org.locationtech.geomesa.metrics.core.ReporterFactory.ReporterConfig](((interval: Long) => ReporterFactory.this.ReporterConfig.apply(rate, duration, interval)))))))))
|
|
62
|
53171
|
2468
-
2480
|
Literal
|
<nosymbol>
|
|
"rate-units"
|
|
62
|
53172
|
2482
-
2489
|
Literal
|
<nosymbol>
|
|
"units"
|
|
62
|
53179
|
2442
-
2703
|
Apply
|
scala.util.Either.RightProjection.flatMap
|
|
ReporterReader.this.timeUnit(obj, "rate-units", "units").right.flatMap[pureconfig.error.ConfigReaderFailures, org.locationtech.geomesa.metrics.core.ReporterFactory.ReporterConfig](((rate: java.util.concurrent.TimeUnit) => ReporterReader.this.timeUnit(obj, "duration-units", "units").right.flatMap[pureconfig.error.ConfigReaderFailures, org.locationtech.geomesa.metrics.core.ReporterFactory.ReporterConfig](((duration: java.util.concurrent.TimeUnit) => ReporterReader.this.durationMillis(obj.atKeyOrUndefined("interval")).right.map[org.locationtech.geomesa.metrics.core.ReporterFactory.ReporterConfig](((interval: Long) => ReporterFactory.this.ReporterConfig.apply(rate, duration, interval)))))))
|
|
63
|
53173
|
2531
-
2547
|
Literal
|
<nosymbol>
|
|
"duration-units"
|
|
63
|
53174
|
2549
-
2556
|
Literal
|
<nosymbol>
|
|
"units"
|
|
63
|
53178
|
2505
-
2703
|
Apply
|
scala.util.Either.RightProjection.flatMap
|
|
ReporterReader.this.timeUnit(obj, "duration-units", "units").right.flatMap[pureconfig.error.ConfigReaderFailures, org.locationtech.geomesa.metrics.core.ReporterFactory.ReporterConfig](((duration: java.util.concurrent.TimeUnit) => ReporterReader.this.durationMillis(obj.atKeyOrUndefined("interval")).right.map[org.locationtech.geomesa.metrics.core.ReporterFactory.ReporterConfig](((interval: Long) => ReporterFactory.this.ReporterConfig.apply(rate, duration, interval)))))
|
|
64
|
53175
|
2599
-
2631
|
Apply
|
pureconfig.ConfigObjectCursor.atKeyOrUndefined
|
|
obj.atKeyOrUndefined("interval")
|
|
64
|
53177
|
2572
-
2703
|
Apply
|
scala.util.Either.RightProjection.map
|
|
ReporterReader.this.durationMillis(obj.atKeyOrUndefined("interval")).right.map[org.locationtech.geomesa.metrics.core.ReporterFactory.ReporterConfig](((interval: Long) => ReporterFactory.this.ReporterConfig.apply(rate, duration, interval)))
|
|
66
|
53176
|
2663
-
2703
|
Apply
|
org.locationtech.geomesa.metrics.core.ReporterFactory.ReporterConfig.apply
|
|
ReporterFactory.this.ReporterConfig.apply(rate, duration, interval)
|
|
71
|
53181
|
2893
-
2903
|
Select
|
pureconfig.ConfigCursor.asString
|
|
x$3.asString
|
|
71
|
53193
|
2864
-
3183
|
Apply
|
scala.util.Either.RightProjection.flatMap
|
|
cur.atKey(key).right.flatMap[pureconfig.error.ConfigReaderFailures, String](((x$3: pureconfig.ConfigCursor) => x$3.asString)).right.flatMap[pureconfig.error.ConfigReaderFailures, java.util.concurrent.TimeUnit](((unit: String) => scala.Predef.refArrayOps[java.util.concurrent.TimeUnit](java.util.concurrent.TimeUnit.values()).find(((x$4: java.util.concurrent.TimeUnit) => x$4.toString().equalsIgnoreCase(unit))).toRight[pureconfig.error.ConfigReaderFailures](pureconfig.error.ConfigReaderFailures.apply(cur.failureFor(pureconfig.error.CannotConvert.apply(cur.valueOpt.map[String](((x$5: com.typesafe.config.ConfigObject) => x$5.toString())).orNull[String](scala.Predef.$conforms[Null]), "TimeUnit", "Does not match a TimeUnit"))))))
|
|
72
|
53182
|
2937
-
2954
|
Apply
|
java.util.concurrent.TimeUnit.values
|
|
java.util.concurrent.TimeUnit.values()
|
|
72
|
53183
|
2960
-
2993
|
Apply
|
java.lang.String.equalsIgnoreCase
|
|
x$4.toString().equalsIgnoreCase(unit)
|
|
72
|
53192
|
2937
-
3175
|
Apply
|
scala.Option.toRight
|
|
scala.Predef.refArrayOps[java.util.concurrent.TimeUnit](java.util.concurrent.TimeUnit.values()).find(((x$4: java.util.concurrent.TimeUnit) => x$4.toString().equalsIgnoreCase(unit))).toRight[pureconfig.error.ConfigReaderFailures](pureconfig.error.ConfigReaderFailures.apply(cur.failureFor(pureconfig.error.CannotConvert.apply(cur.valueOpt.map[String](((x$5: com.typesafe.config.ConfigObject) => x$5.toString())).orNull[String](scala.Predef.$conforms[Null]), "TimeUnit", "Does not match a TimeUnit"))))
|
|
73
|
53184
|
3103
-
3113
|
Apply
|
java.lang.Object.toString
|
|
x$5.toString()
|
|
73
|
53185
|
3115
-
3115
|
TypeApply
|
scala.Predef.$conforms
|
|
scala.Predef.$conforms[Null]
|
|
73
|
53186
|
3086
-
3121
|
ApplyToImplicitArgs
|
scala.Option.orNull
|
|
cur.valueOpt.map[String](((x$5: com.typesafe.config.ConfigObject) => x$5.toString())).orNull[String](scala.Predef.$conforms[Null])
|
|
73
|
53187
|
3123
-
3133
|
Literal
|
<nosymbol>
|
|
"TimeUnit"
|
|
73
|
53188
|
3135
-
3162
|
Literal
|
<nosymbol>
|
|
"Does not match a TimeUnit"
|
|
73
|
53189
|
3072
-
3163
|
Apply
|
pureconfig.error.CannotConvert.apply
|
|
pureconfig.error.CannotConvert.apply(cur.valueOpt.map[String](((x$5: com.typesafe.config.ConfigObject) => x$5.toString())).orNull[String](scala.Predef.$conforms[Null]), "TimeUnit", "Does not match a TimeUnit")
|
|
73
|
53190
|
3057
-
3164
|
Apply
|
pureconfig.ConfigCursor.failureFor
|
|
cur.failureFor(pureconfig.error.CannotConvert.apply(cur.valueOpt.map[String](((x$5: com.typesafe.config.ConfigObject) => x$5.toString())).orNull[String](scala.Predef.$conforms[Null]), "TimeUnit", "Does not match a TimeUnit"))
|
|
73
|
53191
|
3036
-
3165
|
Apply
|
pureconfig.error.ConfigReaderFailures.apply
|
|
pureconfig.error.ConfigReaderFailures.apply(cur.failureFor(pureconfig.error.CannotConvert.apply(cur.valueOpt.map[String](((x$5: com.typesafe.config.ConfigObject) => x$5.toString())).orNull[String](scala.Predef.$conforms[Null]), "TimeUnit", "Does not match a TimeUnit")))
|
|
76
|
53194
|
3213
-
3229
|
Apply
|
java.lang.Object.==
|
|
fallback.==(null)
|
|
76
|
53195
|
3194
-
3229
|
Apply
|
scala.Boolean.||
|
|
primary.isRight.||(fallback.==(null))
|
|
76
|
53196
|
3233
-
3240
|
Ident
|
org.locationtech.geomesa.metrics.core.ReporterFactory.ReporterReader.primary
|
|
primary
|
|
78
|
53197
|
3363
-
3367
|
Literal
|
<nosymbol>
|
|
null
|
|
78
|
53198
|
3339
-
3395
|
Apply
|
scala.util.Either.LeftProjection.flatMap
|
|
ReporterReader.this.timeUnit(cur, fallback, null).left.flatMap[pureconfig.error.ConfigReaderFailures, java.util.concurrent.TimeUnit](((x$6: pureconfig.error.ConfigReaderFailures) => primary))
|
|
78
|
53199
|
3339
-
3395
|
Block
|
scala.util.Either.LeftProjection.flatMap
|
|
ReporterReader.this.timeUnit(cur, fallback, null).left.flatMap[pureconfig.error.ConfigReaderFailures, java.util.concurrent.TimeUnit](((x$6: pureconfig.error.ConfigReaderFailures) => primary))
|
|
83
|
53200
|
3511
-
3526
|
Select
|
pureconfig.ConfigCursor.isUndefined
|
|
cur.isUndefined
|
|
83
|
53201
|
3530
-
3540
|
Apply
|
scala.util.Right.apply
|
|
scala.`package`.Right.apply[Nothing, Long](-1L)
|
|
83
|
53202
|
3530
-
3540
|
Block
|
scala.util.Right.apply
|
|
scala.`package`.Right.apply[Nothing, Long](-1L)
|
|
84
|
53214
|
3558
-
3788
|
Apply
|
scala.util.Either.RightProjection.flatMap
|
|
cur.asString.right.flatMap[pureconfig.error.ConfigReaderFailures, Long](((d: String) => try {
scala.`package`.Right.apply[Nothing, Long](scala.concurrent.duration.Duration.apply(d).toMillis)
} catch {
case scala.util.control.NonFatal.unapply(<unapply-selector>) <unapply> ((e @ _)) => cur.failed[Nothing](pureconfig.error.CannotConvert.apply(cur.valueOpt.map[String](((x$7: com.typesafe.config.ConfigValue) => x$7.toString())).orNull[String](scala.Predef.$conforms[Null]), "Duration", e.getMessage()))
}))
|
|
84
|
53215
|
3558
-
3788
|
Block
|
scala.util.Either.RightProjection.flatMap
|
|
cur.asString.right.flatMap[pureconfig.error.ConfigReaderFailures, Long](((d: String) => try {
scala.`package`.Right.apply[Nothing, Long](scala.concurrent.duration.Duration.apply(d).toMillis)
} catch {
case scala.util.control.NonFatal.unapply(<unapply-selector>) <unapply> ((e @ _)) => cur.failed[Nothing](pureconfig.error.CannotConvert.apply(cur.valueOpt.map[String](((x$7: com.typesafe.config.ConfigValue) => x$7.toString())).orNull[String](scala.Predef.$conforms[Null]), "Duration", e.getMessage()))
}))
|
|
85
|
53203
|
3614
-
3634
|
Select
|
scala.concurrent.duration.Duration.toMillis
|
|
scala.concurrent.duration.Duration.apply(d).toMillis
|
|
85
|
53204
|
3608
-
3635
|
Apply
|
scala.util.Right.apply
|
|
scala.`package`.Right.apply[Nothing, Long](scala.concurrent.duration.Duration.apply(d).toMillis)
|
|
85
|
53205
|
3608
-
3635
|
Block
|
scala.util.Right.apply
|
|
scala.`package`.Right.apply[Nothing, Long](scala.concurrent.duration.Duration.apply(d).toMillis)
|
|
86
|
53206
|
3720
-
3730
|
Apply
|
java.lang.Object.toString
|
|
x$7.toString()
|
|
86
|
53207
|
3732
-
3732
|
TypeApply
|
scala.Predef.$conforms
|
|
scala.Predef.$conforms[Null]
|
|
86
|
53208
|
3703
-
3738
|
ApplyToImplicitArgs
|
scala.Option.orNull
|
|
cur.valueOpt.map[String](((x$7: com.typesafe.config.ConfigValue) => x$7.toString())).orNull[String](scala.Predef.$conforms[Null])
|
|
86
|
53209
|
3740
-
3750
|
Literal
|
<nosymbol>
|
|
"Duration"
|
|
86
|
53210
|
3752
-
3764
|
Apply
|
java.lang.Throwable.getMessage
|
|
e.getMessage()
|
|
86
|
53211
|
3689
-
3765
|
Apply
|
pureconfig.error.CannotConvert.apply
|
|
pureconfig.error.CannotConvert.apply(cur.valueOpt.map[String](((x$7: com.typesafe.config.ConfigValue) => x$7.toString())).orNull[String](scala.Predef.$conforms[Null]), "Duration", e.getMessage())
|
|
86
|
53212
|
3678
-
3766
|
Apply
|
pureconfig.ConfigCursor.failed
|
|
cur.failed[Nothing](pureconfig.error.CannotConvert.apply(cur.valueOpt.map[String](((x$7: com.typesafe.config.ConfigValue) => x$7.toString())).orNull[String](scala.Predef.$conforms[Null]), "Duration", e.getMessage()))
|
|
86
|
53213
|
3678
-
3766
|
Block
|
pureconfig.ConfigCursor.failed
|
|
cur.failed[Nothing](pureconfig.error.CannotConvert.apply(cur.valueOpt.map[String](((x$7: com.typesafe.config.ConfigValue) => x$7.toString())).orNull[String](scala.Predef.$conforms[Null]), "Duration", e.getMessage()))
|