Created
August 22, 2014 09:27
-
-
Save mbarton/29f0933d93f0a35ccb8d to your computer and use it in GitHub Desktop.
Cluster -> Client Reverse Connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log.info("Starting single node connected to two gateways") | |
val baseConfig = raw( | |
""" | |
machines { | |
machine {} | |
} | |
gateways { | |
gatewayA {} | |
gatewayB {} | |
} | |
nodes { | |
proto { | |
seed-nodes: ["nodeA"] | |
version: "2.0-SNAPSHOT" | |
} | |
nodeA {} | |
} | |
""") | |
doApply(baseConfig) | |
log.info("Press enter to switch to two nodes") | |
readLine() | |
val twoNodeConfig = baseConfig | |
.withValue("nodes.nodeB", empty.root) | |
doApply(twoNodeConfig) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment