mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
Update node/src/integration-test/kotlin/net/corda/node/jmx/NodeStatus.kt
Co-authored-by: Viktor Kolomeyko <viktor.kolomeyko@r3.com>
This commit is contained in:
parent
0232146515
commit
4b1aabb164
@ -19,7 +19,12 @@ class NodeStatusTest {
|
||||
driver(DriverParameters(notarySpecs = emptyList(), jmxPolicy = JmxPolicy.defaultEnabled())) {
|
||||
val jmxAddress = startNode().get().jmxAddress.toString()
|
||||
val nodeStatusURL = URL("http://$jmxAddress/jolokia/read/net.corda:name=Status,type=Node")
|
||||
var jmxInfo = ""
|
||||
val jmxInfo = with(nodeStatusURL.openConnection() as HttpURLConnection) {
|
||||
requestMethod = "GET"
|
||||
inputStream.bufferedReader().use {
|
||||
it.lines().collect(Collectors.toList()).joinToString()
|
||||
}
|
||||
}
|
||||
|
||||
with(nodeStatusURL.openConnection() as HttpURLConnection) {
|
||||
requestMethod = "GET"
|
||||
|
Loading…
Reference in New Issue
Block a user