mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +00:00
Add some comments and clean up.
This commit is contained in:
parent
1d5d54e063
commit
6fc981e13d
@ -8,6 +8,11 @@ import java.nio.file.Files
|
||||
import java.nio.file.Paths
|
||||
import kotlin.streams.asSequence
|
||||
|
||||
/**
|
||||
* A wrapper around JMeter to make it run without having a JMeter download installed locally. One mode is used for
|
||||
* running on a remote cluster using an all-in-one bundle JAR using Capsule. The other is just used to run based on current
|
||||
* classpath, but with optional SSH tunnelling logic automatically invoked.
|
||||
*/
|
||||
class Launcher {
|
||||
companion object {
|
||||
@JvmStatic
|
||||
@ -50,6 +55,8 @@ class Launcher {
|
||||
}
|
||||
|
||||
private fun maybeOpenSshTunnels(args: Array<String>): Array<String> {
|
||||
// We trim the args at the point "-Xssh" appears in the array of args. Anything after that is a host to
|
||||
// SSH tunnel to.
|
||||
var index = 0
|
||||
for (arg in args) {
|
||||
if (arg == "-Xssh") {
|
||||
|
Loading…
Reference in New Issue
Block a user