Packages

c

scala.tools.nsc.fsc

StandardCompileServer

class StandardCompileServer extends SocketServer

The server part of the fsc offline compiler. It awaits compilation commands and executes them. It caches a compiler instance so that it can respond more quickly.

Source
CompileServer.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StandardCompileServer
  2. SocketServer
  3. CompileOutputCommon
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new StandardCompileServer(fixPort: Int = 0)

Value Members

  1. val BufferSize: Int
    Definition Classes
    SocketServer
  2. val MaxCharge: Double
  3. lazy val compileSocket: CompileSocket
  4. def doSession(clientSocket: Socket): Unit
    Definition Classes
    SocketServer
  5. def echo(msg: String): Unit
    Definition Classes
    CompileOutputCommon
  6. def fatal(msg: String): Nothing
    Definition Classes
    CompileOutputCommon
  7. var in: BufferedReader
    Definition Classes
    SocketServer
  8. def info(msg: String): Unit
    Definition Classes
    CompileOutputCommon
  9. def isMemoryFullEnough(): Boolean
  10. var out: PrintWriter
    Definition Classes
    SocketServer
  11. lazy val port: Int
    Definition Classes
    SocketServer
  12. def printMemoryStats(): Unit
  13. var reporter: ConsoleReporter
  14. def run(): Unit
    Definition Classes
    SocketServer
  15. lazy val serverSocket: ServerSocket
    Definition Classes
    SocketServer
  16. def session(): Unit
    Definition Classes
    StandardCompileServerSocketServer
  17. var shutdown: Boolean
    Definition Classes
    StandardCompileServerSocketServer
  18. def timeout(): Unit
    Definition Classes
    StandardCompileServerSocketServer
  19. def unequalSettings(s1: Settings, s2: Settings): Set[Settings.Setting]

    Problematically, Settings are only considered equal if every setting is exactly equal.

    Problematically, Settings are only considered equal if every setting is exactly equal. In fsc this immediately breaks down because the randomly chosen temporary outdirs differ between client and server. Among other things. Long term we could use a meaningful equality; short term I'm just ignoring options which I can see causing a new compiler instance every time and which do not interestingly influence compilation products.

  20. var verbose: Boolean
  21. def warn(msg: String): Unit
    Definition Classes
    CompileOutputCommon