=all remove unused imports
This commit is contained in:
parent
4fcf08e7e8
commit
b6cbc7f13a
423 changed files with 488 additions and 1223 deletions
|
|
@ -4,11 +4,10 @@
|
|||
package akka.remote.testconductor
|
||||
|
||||
import language.postfixOps
|
||||
import akka.actor.{ Actor, ActorRef, ActorSystem, LoggingFSM, Props, NoSerializationVerificationNeeded }
|
||||
import akka.actor.{ Actor, ActorRef, LoggingFSM, Props, NoSerializationVerificationNeeded }
|
||||
import RemoteConnection.getAddrString
|
||||
import TestConductorProtocol._
|
||||
import org.jboss.netty.channel.{ Channel, SimpleChannelUpstreamHandler, ChannelHandlerContext, ChannelStateEvent, MessageEvent }
|
||||
import com.typesafe.config.ConfigFactory
|
||||
import scala.concurrent.duration._
|
||||
import akka.pattern.ask
|
||||
import scala.concurrent.Await
|
||||
|
|
@ -17,9 +16,8 @@ import scala.util.control.NoStackTrace
|
|||
import akka.event.LoggingReceive
|
||||
import java.net.InetSocketAddress
|
||||
import scala.concurrent.Future
|
||||
import akka.actor.{ OneForOneStrategy, SupervisorStrategy, Status, Address, PoisonPill }
|
||||
import akka.actor.{ OneForOneStrategy, SupervisorStrategy, Status, Address }
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
import java.util.concurrent.TimeUnit.MILLISECONDS
|
||||
import akka.util.{ Timeout }
|
||||
import scala.reflect.classTag
|
||||
import akka.ConfigurationException
|
||||
|
|
@ -302,7 +300,6 @@ private[akka] object ServerFSM {
|
|||
*/
|
||||
private[akka] class ServerFSM(val controller: ActorRef, val channel: Channel) extends Actor with LoggingFSM[ServerFSM.State, Option[ActorRef]] {
|
||||
import ServerFSM._
|
||||
import akka.actor.FSM._
|
||||
import Controller._
|
||||
|
||||
var roleName: RoleName = null
|
||||
|
|
@ -525,9 +522,7 @@ private[akka] object BarrierCoordinator {
|
|||
*/
|
||||
private[akka] class BarrierCoordinator extends Actor with LoggingFSM[BarrierCoordinator.State, BarrierCoordinator.Data] {
|
||||
import BarrierCoordinator._
|
||||
import akka.actor.FSM._
|
||||
import Controller._
|
||||
import akka.util.{ Timeout ⇒ auTimeout }
|
||||
|
||||
// this shall be set to true if all subsequent barriers shall fail
|
||||
var failed = false
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ import org.jboss.netty.handler.codec.oneone.OneToOneEncoder
|
|||
import org.jboss.netty.channel.ChannelHandlerContext
|
||||
import org.jboss.netty.channel.Channel
|
||||
import akka.remote.testconductor.{ TestConductorProtocol ⇒ TCP }
|
||||
import akka.protobuf.Message
|
||||
import akka.actor.Address
|
||||
import org.jboss.netty.handler.codec.oneone.OneToOneDecoder
|
||||
import scala.concurrent.duration._
|
||||
|
|
|
|||
|
|
@ -3,12 +3,9 @@
|
|||
*/
|
||||
package akka.remote.testconductor
|
||||
|
||||
import akka.actor.{ Extension, ExtensionId, ExtensionIdProvider, ExtendedActorSystem, ActorContext, ActorRef, Address, ActorSystem, Props }
|
||||
import akka.actor.{ Extension, ExtensionId, ExtensionIdProvider, ExtendedActorSystem, ActorContext, ActorSystem }
|
||||
import akka.remote.RemoteActorRefProvider
|
||||
import akka.util.Timeout
|
||||
import java.util.concurrent.TimeUnit.MILLISECONDS
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
import scala.concurrent.duration.Duration
|
||||
import com.typesafe.config.Config
|
||||
import akka.dispatch.ThreadPoolConfig
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@
|
|||
*/
|
||||
package akka.remote.testconductor
|
||||
|
||||
import language.postfixOps
|
||||
|
||||
import java.util.concurrent.TimeoutException
|
||||
import akka.actor._
|
||||
import akka.remote.testconductor.RemoteConnection.getAddrString
|
||||
|
|
@ -15,7 +13,7 @@ import scala.util.control.NoStackTrace
|
|||
import scala.reflect.classTag
|
||||
import akka.util.Timeout
|
||||
import org.jboss.netty.channel.{ Channel, SimpleChannelUpstreamHandler, ChannelHandlerContext, ChannelStateEvent, MessageEvent, WriteCompletionEvent, ExceptionEvent }
|
||||
import akka.pattern.{ ask, pipe, AskTimeoutException }
|
||||
import akka.pattern.{ ask, AskTimeoutException }
|
||||
import akka.event.{ LoggingAdapter, Logging }
|
||||
import java.net.{ InetSocketAddress, ConnectException }
|
||||
import akka.remote.transport.ThrottlerTransportAdapter.{ SetThrottle, TokenBucket, Blackhole, Unthrottled }
|
||||
|
|
@ -223,7 +221,6 @@ private[akka] class ClientFSM(name: RoleName, controllerAddr: InetSocketAddress)
|
|||
}
|
||||
stay using d.copy(runningOp = None)
|
||||
case t: ThrottleMsg ⇒
|
||||
import settings.QueryTimeout
|
||||
import context.dispatcher // FIXME is this the right EC for the future below?
|
||||
val mode = if (t.rateMBit < 0.0f) Unthrottled
|
||||
else if (t.rateMBit == 0.0f) Blackhole
|
||||
|
|
@ -240,8 +237,6 @@ private[akka] class ClientFSM(name: RoleName, controllerAddr: InetSocketAddress)
|
|||
}
|
||||
stay
|
||||
case d: DisconnectMsg ⇒
|
||||
import settings.QueryTimeout
|
||||
import context.dispatcher // FIXME is this the right EC for the future below?
|
||||
// FIXME: Currently ignoring, needs support from Remoting
|
||||
stay
|
||||
case TerminateMsg(Left(false)) ⇒
|
||||
|
|
|
|||
|
|
@ -3,12 +3,10 @@
|
|||
*/
|
||||
package akka.remote.testconductor
|
||||
|
||||
import org.jboss.netty.channel.{ Channel, ChannelPipeline, ChannelPipelineFactory, ChannelUpstreamHandler, SimpleChannelUpstreamHandler, DefaultChannelPipeline }
|
||||
import org.jboss.netty.channel.{ Channel, ChannelPipeline, ChannelPipelineFactory, ChannelUpstreamHandler, DefaultChannelPipeline }
|
||||
import org.jboss.netty.channel.socket.nio.{ NioClientSocketChannelFactory, NioServerSocketChannelFactory }
|
||||
import org.jboss.netty.bootstrap.{ ClientBootstrap, ServerBootstrap }
|
||||
import org.jboss.netty.handler.codec.frame.{ LengthFieldBasedFrameDecoder, LengthFieldPrepender }
|
||||
import org.jboss.netty.handler.codec.compression.{ ZlibDecoder, ZlibEncoder }
|
||||
import org.jboss.netty.handler.timeout.{ ReadTimeoutHandler, ReadTimeoutException }
|
||||
import java.net.InetSocketAddress
|
||||
import java.util.concurrent.Executors
|
||||
import akka.event.Logging
|
||||
|
|
|
|||
|
|
@ -4,9 +4,7 @@
|
|||
package akka.remote.testkit
|
||||
|
||||
import language.implicitConversions
|
||||
import language.postfixOps
|
||||
import java.net.{ InetAddress, InetSocketAddress }
|
||||
import java.util.concurrent.TimeoutException
|
||||
import com.typesafe.config.{ ConfigObject, ConfigFactory, Config }
|
||||
import scala.concurrent.{ Await, Awaitable }
|
||||
import scala.util.control.NonFatal
|
||||
|
|
@ -14,7 +12,6 @@ import scala.collection.immutable
|
|||
import akka.actor._
|
||||
import akka.util.Timeout
|
||||
import akka.remote.testconductor.{ TestConductorExt, TestConductor, RoleName }
|
||||
import akka.remote.RemoteActorRefProvider
|
||||
import akka.testkit._
|
||||
import akka.testkit.TestEvent._
|
||||
import scala.concurrent.duration._
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue