File tree 2 files changed +5
-3
lines changed
mqtt_jmeter/src/main/java/net/xmeter/samplers
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ public void testEnded(String arg0) {
134
134
@ Override
135
135
public void testStarted () {
136
136
keepTime = Integer .parseInt (getConnKeepTime ());
137
- logger .info ("Keeptime is: " + keepTime );
137
+ logger .info ("*** Keeptime is: " + keepTime );
138
138
}
139
139
140
140
@ Override
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ public class PubSampler extends AbstractMQTTSampler implements ThreadListener {
29
29
private String payload = null ;
30
30
private String clientId = "" ;
31
31
private QoS qos_enum = QoS .AT_MOST_ONCE ;
32
+ private String topicName = "" ;
32
33
33
34
public String getQOS () {
34
35
return getPropertyAsString (QOS_LEVEL , String .valueOf (QOS_0 ));
@@ -117,6 +118,9 @@ public SampleResult sample(Entry arg0) {
117
118
payload = Util .generatePayload (Integer .parseInt (getMessageLength ()));
118
119
}
119
120
121
+ topicName = getTopic ();
122
+ logger .info ("*** topicName=" + topicName );
123
+
120
124
int qos = Integer .parseInt (getQOS ());
121
125
switch (qos ) {
122
126
case 0 :
@@ -143,8 +147,6 @@ public SampleResult sample(Entry arg0) {
143
147
SampleResult result = new SampleResult ();
144
148
result .setSampleLabel (getName ());
145
149
try {
146
- String topicName = getTopic ();
147
-
148
150
byte [] toSend = new byte []{};
149
151
byte [] tmp = new byte []{};
150
152
You can’t perform that action at this time.
0 commit comments