Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
joram
joram
Commits
7e49c039
Commit
7e49c039
authored
Jan 13, 2021
by
Andre Freyssinet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix: the return value is now false if the message is not received.
Adds a toString method.
parent
aa537cb3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
350 additions
and
329 deletions
+350
-329
joram/joram/tools/jmscheck/src/main/java/org/ow2/joram/tools/jmscheck/JMSConnectorCheck.java
.../java/org/ow2/joram/tools/jmscheck/JMSConnectorCheck.java
+350
-329
No files found.
joram/joram/tools/jmscheck/src/main/java/org/ow2/joram/tools/jmscheck/JMSConnectorCheck.java
View file @
7e49c039
...
...
@@ -299,10 +299,12 @@ public final class JMSConnectorCheck {
setStatus
(
getStatus
()+
1
);
setLatencyPubSub
(-
1L
);
errorMsg
=
"Message not received"
;
return
false
;
}
else
{
retryStatusCount
=
0
;
setLatencyPubSub
(
dt
/
1000000L
);
errorMsg
=
null
;
return
true
;
}
}
catch
(
JMSException
exc
)
{
failures
+=
1
;
...
...
@@ -324,6 +326,25 @@ public final class JMSConnectorCheck {
logger
.
log
(
BasicLevel
.
WARN
,
"JMSConnectorStatus.check("
+
cfname
+
"): Error closing connection."
);
}
}
return
true
;
}
@Override
public
String
toString
()
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
append
(
"JMSConnectorCheck ["
)
.
append
(
"cfname="
).
append
(
cfname
)
.
append
(
", user="
).
append
(
user
)
.
append
(
", pass=****"
)
.
append
(
", qname="
).
append
(
qname
)
.
append
(
", timeout="
).
append
(
timeout
)
.
append
(
"] -> ["
)
.
append
(
"retryStatusCount="
).
append
(
retryStatusCount
)
.
append
(
", nbtry="
).
append
(
nbtry
)
.
append
(
", errorMsg="
).
append
(
errorMsg
)
.
append
(
", lastConnectTime="
).
append
(
lastConnectTime
)
.
append
(
", latencyConnect="
).
append
(
latencyConnect
)
.
append
(
", latencyPubSub="
).
append
(
latencyPubSub
)
.
append
(
"]"
);
return
builder
.
toString
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment