mirror of
https://github.com/corda/corda.git
synced 2025-01-15 01:10:33 +00:00
Some clean up. Remote slave via capsule is working.
This commit is contained in:
parent
18cca32d11
commit
029cc1c2f0
@ -1,13 +1,23 @@
|
|||||||
package net.corda.jmeter
|
package net.corda.jmeter
|
||||||
|
|
||||||
import org.apache.jmeter.JMeter
|
import org.apache.jmeter.JMeter
|
||||||
|
import org.slf4j.LoggerFactory
|
||||||
|
|
||||||
class Launcher {
|
class Launcher {
|
||||||
companion object {
|
companion object {
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
|
val logger = LoggerFactory.getLogger(this::class.java)
|
||||||
val jmeter = JMeter()
|
val jmeter = JMeter()
|
||||||
|
val capsuleDir = System.getProperty("capsule.dir")
|
||||||
|
if (capsuleDir != null) {
|
||||||
|
// We are running under Capsule, so assume we want a JMeter distributed server to be controlled from
|
||||||
|
// elsewhere.
|
||||||
|
logger.info("Starting JMeter in server mode from $capsuleDir")
|
||||||
|
jmeter.start(arrayOf("-s", "-d", capsuleDir, "-p", "$capsuleDir/jmeter.properties") + args)
|
||||||
|
} else {
|
||||||
jmeter.start(args)
|
jmeter.start(args)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user