MillDaemonServer

mill.server.MillDaemonServer
See theMillDaemonServer companion object
abstract class MillDaemonServer[State](daemonDir: Path, acceptTimeout: FiniteDuration, locks: Locks, testLogEvenWhenServerIdWrong: Boolean) extends Server[DaemonServerData, Int]

Models a long-lived server that receives requests from a client and calls a main0 method to run the commands in-process. Provides the command args, env variables, JVM properties, wrapped input/output streams, and other metadata related to the client command

Attributes

Companion
object
Source
MillDaemonServer.scala
Graph
Supertypes
class Server[DaemonServerData, Int]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def initialStateCache: State

Attributes

Source
MillDaemonServer.scala
def main0(args: Array[String], stateCache: State, mainInteractive: Boolean, streams: SystemStreams, env: Map[String, String], setIdle: Boolean => Unit, userSpecifiedProperties: Map[String, String], initialSystemProperties: Map[String, String], stopServer: StopServer): (Boolean, State)

Attributes

Source
MillDaemonServer.scala
def outFolder: Path

Attributes

Source
MillDaemonServer.scala
def outLock: Lock

Attributes

Source
MillDaemonServer.scala

Concrete methods

override def checkIfClientAlive(connectionData: ConnectionData, data: DaemonServerData): Boolean

Attributes

Definition Classes
Source
MillDaemonServer.scala
override def connectionHandlerThreadName(socket: Socket): String

Attributes

Definition Classes
Source
MillDaemonServer.scala
override def endConnection(connectionData: ConnectionData, data: Option[DaemonServerData], result: Option[Int]): Unit

Attributes

Definition Classes
Source
MillDaemonServer.scala

Exit code to send to other clients when server is terminated while handling a request

Exit code to send to other clients when server is terminated while handling a request

Attributes

Source
MillDaemonServer.scala
override def handleConnection(connectionData: ConnectionData, stopServer: StopServer, setIdle: SetIdle, data: DaemonServerData): Int

Attributes

Definition Classes
Source
MillDaemonServer.scala
override def prepareConnection(connectionData: ConnectionData, stopServer: StopServer): DaemonServerData

Invoked before a thread that runs handleConnection is spawned.

Invoked before a thread that runs handleConnection is spawned.

Attributes

Definition Classes
Source
MillDaemonServer.scala
def systemExit(exitCode: Int): Nothing

Attributes

Source
MillDaemonServer.scala

Inherited methods

def run(): Option[Int]

Attributes

Inherited from:
Server
Source
Server.scala
def runLocked(initialSystemProperties: Map[String, String], socketPortFile: Path): Option[Int]

Attributes

Inherited from:
Server
Source
Server.scala
def runSocketHandler(clientSocket: Socket, initialSystemProperties: Map[String, String], closeServer0: Option[Int] => Unit, connectionTracker: ConnectionTracker): Unit

Attributes

Inherited from:
Server
Source
Server.scala
def serverLog(s: String): Unit

Attributes

Inherited from:
Server
Source
Server.scala
def serverLog0(s: String): Unit

Attributes

Inherited from:
Server
Source
Server.scala

Inherited fields

val acceptTimeoutMillisOpt: Option[Long]

Attributes

Inherited from:
Server
Source
Server.scala
val processId: Long

Attributes

Inherited from:
Server
Source
Server.scala