File tree Expand file tree Collapse file tree
src/main/kotlin/spp/cli/commands/instrument Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,9 +35,13 @@ import io.vertx.ext.eventbus.bridge.tcp.impl.protocol.FrameParser
3535import io.vertx.kotlin.coroutines.await
3636import kotlinx.coroutines.runBlocking
3737import spp.cli.PlatformCLI
38+ import spp.protocol.ProtocolMarshaller.deserializeLiveInstrumentRemoved
3839import spp.protocol.SourceServices
3940import spp.protocol.extend.TCPServiceFrameParser
40- import spp.protocol.instrument.event.*
41+ import spp.protocol.instrument.event.LiveBreakpointHit
42+ import spp.protocol.instrument.event.LiveInstrumentEvent
43+ import spp.protocol.instrument.event.LiveInstrumentEventType
44+ import spp.protocol.instrument.event.LiveLogHit
4145
4246class SubscribeEvents : CliktCommand (
4347 help = " Listens for and outputs live events. Subscribes to all events by default"
@@ -103,7 +107,7 @@ class SubscribeEvents : CliktCommand(
103107 }
104108 }
105109 LiveInstrumentEventType .BREAKPOINT_REMOVED , LiveInstrumentEventType .LOG_REMOVED -> {
106- val logRemoved = Json .decodeValue( liveEvent.data, LiveInstrumentRemoved :: class .java )
110+ val logRemoved = deserializeLiveInstrumentRemoved( JsonObject ( liveEvent.data) )
107111 if (logRemoved.liveInstrument.id !in instrumentIds) {
108112 return @consumer
109113 }
You can’t perform that action at this time.
0 commit comments