java docs for Artery, #21209

* and a few other things
* fixed some remaining akka.tcp
This commit is contained in:
Patrik Nordwall 2016-09-30 18:20:47 +02:00
parent 4a4f9c76f9
commit 7af814d3df
13 changed files with 848 additions and 39 deletions

View file

@ -35,6 +35,14 @@ public class RemoteDeploymentDocTest {
private final ActorSystem system = actorSystemResource.getSystem();
@SuppressWarnings("unused")
void makeAddress() {
//#make-address-artery
Address addr = new Address("akka", "sys", "host", 1234);
addr = AddressFromURIString.parse("akka://sys@host:1234"); // the same
//#make-address-artery
}
@Test
public void demonstrateDeployment() {
//#make-address
@ -63,6 +71,11 @@ public class RemoteDeploymentDocTest {
ConfigFactory.parseString("akka.remote.netty.tcp.hostname=\"1.2.3.4\"")
.withFallback(ConfigFactory.load());
//#programmatic
//#programmatic-artery
ConfigFactory.parseString("akka.remote.artery.canonical.hostname=\"1.2.3.4\"")
.withFallback(ConfigFactory.load());
//#programmatic-artery
}