Merge pull request #476 from corda/clint-cordformationh2

Added H2 port to cordformation config
This commit is contained in:
Clinton 2017-03-31 11:19:38 +01:00 committed by GitHub
commit 79e9c3f5c7
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,3 @@
gradlePluginsVersion=0.10.2
gradlePluginsVersion=0.10.3
kotlinVersion=1.1.1
guavaVersion=21.0

View File

@ -202,6 +202,7 @@ is a three node example;
p2pPort 10002
rpcPort 10003
webPort 10004
h2Port 11002
cordapps []
}
node {
@ -211,6 +212,7 @@ is a three node example;
p2pPort 10005
rpcPort 10006
webPort 10007
h2Port 11005
cordapps []
}
node {
@ -220,6 +222,7 @@ is a three node example;
p2pPort 10008
rpcPort 10009
webPort 10010
h2Port 11008
cordapps []
}
}

View File

@ -75,6 +75,13 @@ class Node {
config = config.withValue("useHTTPS", ConfigValueFactory.fromAnyRef(isHttps))
}
/**
* Sets the H2 port for this node
*/
void h2Port(Integer h2Port) {
config = config.withValue("h2port", ConfigValueFactory.fromAnyRef(h2Port))
}
void useTestClock(Boolean useTestClock) {
config = config.withValue("useTestClock", ConfigValueFactory.fromAnyRef(useTestClock))
}