Skip to content

Commit 49623ad

Browse files
committed
refactor
1 parent 813e899 commit 49623ad

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,20 +267,20 @@ object SourceProbe {
267267
//register remotes
268268
FrameHelper.sendFrame(
269269
BridgeEventType.REGISTER.name.lowercase(),
270-
ProbeAddress.LIVE_INSTRUMENT_REMOTE.address,
270+
ProbeAddress.LIVE_INSTRUMENT_REMOTE,
271271
JsonObject(),
272272
tcpSocket
273273
)
274274
FrameHelper.sendFrame(
275275
BridgeEventType.REGISTER.name.lowercase(),
276-
ProbeAddress.LIVE_INSTRUMENT_REMOTE.address + ":" + PROBE_ID,
276+
ProbeAddress.LIVE_INSTRUMENT_REMOTE + ":" + PROBE_ID,
277277
JsonObject(),
278278
tcpSocket
279279
)
280280
consumer.unregister()
281281
}
282282
FrameHelper.sendFrame(
283-
BridgeEventType.SEND.name.lowercase(), PlatformAddress.PROBE_CONNECTED.address,
283+
BridgeEventType.SEND.name.lowercase(), PlatformAddress.PROBE_CONNECTED,
284284
replyAddress, JsonObject(), true, JsonObject.mapFrom(pc), socket.result()
285285
)
286286
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ class LiveInstrumentRemote : AbstractVerticle() {
9696
}
9797

9898
vertx.eventBus() //global instrument remote
99-
.localConsumer<JsonObject>(ProbeAddress.LIVE_INSTRUMENT_REMOTE.address)
99+
.localConsumer<JsonObject>(ProbeAddress.LIVE_INSTRUMENT_REMOTE)
100100
.handler { handleInstrumentationRequest(it) }
101101
vertx.eventBus() //probe specific instrument remote
102-
.localConsumer<JsonObject>(ProbeAddress.LIVE_INSTRUMENT_REMOTE.address + ":" + SourceProbe.PROBE_ID)
102+
.localConsumer<JsonObject>(ProbeAddress.LIVE_INSTRUMENT_REMOTE + ":" + SourceProbe.PROBE_ID)
103103
.handler { handleInstrumentationRequest(it) }
104104
}
105105

@@ -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.address,
131+
BridgeEventType.PUBLISH.name.lowercase(), PlatformAddress.LIVE_INSTRUMENT_REMOVED,
132132
JsonObject.mapFrom(map), SourceProbe.tcpSocket
133133
)
134134
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ object LiveInstrumentService {
117117
instrument.isLive = true
118118
if (!instrument.isRemoval) {
119119
instrumentEventConsumer!!.accept(
120-
PlatformAddress.LIVE_INSTRUMENT_APPLIED.address,
120+
PlatformAddress.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.address,
230+
PlatformAddress.LIVE_INSTRUMENT_REMOVED,
231231
ModelSerializer.INSTANCE.toJson(map)
232232
)
233233
}

0 commit comments

Comments
 (0)