Added a h2 port configuration to Cordformation.

This commit is contained in:
Clinton Alexander 2017-02-01 17:31:32 +00:00
parent c7e5cf5079
commit 76eb713777
2 changed files with 10 additions and 0 deletions

View File

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

View File

@ -75,6 +75,13 @@ class Node {
config = config.withValue("useHTTPS", ConfigValueFactory.fromAnyRef(isHttps)) 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) { void useTestClock(Boolean useTestClock) {
config = config.withValue("useTestClock", ConfigValueFactory.fromAnyRef(useTestClock)) config = config.withValue("useTestClock", ConfigValueFactory.fromAnyRef(useTestClock))
} }