Server

mill.server.Server
See theServer companion class
object Server

Attributes

Companion
class
Source
Server.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Server.type

Members list

Type members

Classlikes

case class Args(daemonDir: Path, acceptTimeout: Option[FiniteDuration], locks: Locks, bufferSize: Int, testLogEvenWhenServerIdWrong: Boolean)

Value parameters

acceptTimeout

shuts down after this timeout if no clients are connected

bufferSize

size of the buffer used to read/write from/to the client

daemonDir

directory used for exchanging pre-TCP data with a client

Attributes

Source
Server.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
@FunctionalInterface
trait SetIdle

Controls whether the server is considered idle.

Controls whether the server is considered idle.

Attributes

Source
Server.scala
Supertypes
class Object
trait Matchable
class Any
case class SocketInfo(remote: SocketAddress, local: SocketAddress)

Value parameters

local

the address of the server

remote

the address of the client

Attributes

Companion
object
Source
Server.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object SocketInfo

Attributes

Companion
class
Source
Server.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
SocketInfo.type
@FunctionalInterface
trait StopServer

Immediately stops the server with the given exit code.

Immediately stops the server with the given exit code.

Attributes

Source
Server.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def checkProcessIdFile(processIdFile: Path, processId: String): Option[String]

Attributes

Source
Server.scala
def computeProcessId(): Long

Attributes

Source
Server.scala
def overrideSigIntHandling(handler: SignalHandler): Unit

Attributes

Source
Server.scala
def tryLockBlock[T](lock: Lock, beforeClose: () => Unit, afterClose: () => Unit)(block: AutoCloseable => T): Option[T]

Attributes

Source
Server.scala
def watchProcessIdFile(processIdFile: Path, processId: Long, running: () => Boolean, exit: String => Unit, log: String => Unit): Unit

Runs a thread that invokes exit if the contents of processIdFile do not match processId.

Runs a thread that invokes exit if the contents of processIdFile do not match processId.

Attributes

Source
Server.scala