Skip to content

Commit 3459745

Browse files
committed
refactor
1 parent 49623ad commit 3459745

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

control/src/main/kotlin/spp/probe/control/LiveInstrumentRemote.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import spp.protocol.ProtocolMarshaller
3030
import spp.protocol.instrument.*
3131
import spp.protocol.instrument.command.CommandType
3232
import spp.protocol.instrument.command.LiveInstrumentCommand
33-
import spp.protocol.platform.PlatformAddress
3433
import spp.protocol.platform.ProbeAddress
34+
import spp.protocol.platform.ProcessorAddress
3535
import java.lang.instrument.Instrumentation
3636
import java.lang.reflect.InvocationTargetException
3737
import java.lang.reflect.Method
@@ -128,7 +128,7 @@ class LiveInstrumentRemote : AbstractVerticle() {
128128
map["cause"] = ThrowableTransformer.INSTANCE.convert2String(ex, 4000)
129129

130130
FrameHelper.sendFrame(
131-
BridgeEventType.PUBLISH.name.lowercase(), PlatformAddress.LIVE_INSTRUMENT_REMOVED,
131+
BridgeEventType.PUBLISH.name.lowercase(), ProcessorAddress.LIVE_INSTRUMENT_REMOVED,
132132
JsonObject.mapFrom(map), SourceProbe.tcpSocket
133133
)
134134
}

services/src/main/kotlin/spp/probe/services/instrument/LiveInstrumentService.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import spp.probe.services.common.model.ActiveLiveInstrument
3030
import spp.probe.services.common.transform.LiveTransformer
3131
import spp.probe.services.error.LiveInstrumentException
3232
import spp.protocol.instrument.LiveInstrument
33-
import spp.protocol.platform.PlatformAddress
33+
import spp.protocol.platform.ProcessorAddress
3434
import java.lang.instrument.Instrumentation
3535
import java.lang.instrument.UnmodifiableClassException
3636
import java.util.*
@@ -117,7 +117,7 @@ object LiveInstrumentService {
117117
instrument.isLive = true
118118
if (!instrument.isRemoval) {
119119
instrumentEventConsumer!!.accept(
120-
PlatformAddress.LIVE_INSTRUMENT_APPLIED,
120+
ProcessorAddress.LIVE_INSTRUMENT_APPLIED,
121121
ModelSerializer.INSTANCE.toJson(instrument.instrument)
122122
)
123123
}
@@ -227,7 +227,7 @@ object LiveInstrumentService {
227227
}
228228

229229
instrumentEventConsumer!!.accept(
230-
PlatformAddress.LIVE_INSTRUMENT_REMOVED,
230+
ProcessorAddress.LIVE_INSTRUMENT_REMOVED,
231231
ModelSerializer.INSTANCE.toJson(map)
232232
)
233233
}

0 commit comments

Comments
 (0)