Fix compilation error, getHostString, java7

This commit is contained in:
Patrik Nordwall 2012-05-24 11:58:57 +02:00
parent fa5960372c
commit 55b185be02
2 changed files with 2 additions and 2 deletions

View file

@ -397,7 +397,7 @@ private[akka] class Controller(private var initialParticipants: Int, controllerP
override def receive = LoggingReceive {
case CreateServerFSM(channel)
val (ip, port) = channel.getRemoteAddress match {
case s: InetSocketAddress (s.getHostString, s.getPort)
case s: InetSocketAddress (s.getHostName, s.getPort)
}
val name = ip + ":" + port + "-server" + generation.next
sender ! context.actorOf(Props(new ServerFSM(self, channel)), name)

View file

@ -135,7 +135,7 @@ private[akka] object NetworkFailureInjector {
}
/**
* Brief overview: all network traffic passes through the `sender`/`receiver` FSMs managed
* Brief overview: all network traffic passes through the `sender`/`receiver` FSMs managed
* by the FailureInjector of the TestConductor extension. These can
* pass through requests immediately, drop them or throttle to a desired rate. The FSMs are
* registered in the TestConductorExt.failureInjector so that settings can be applied from