ProxyStreamServer

mill.server.ProxyStreamServer
abstract class ProxyStreamServer(args: Args) extends Server

Server that incorporates ProxyStream functionality.

Attributes

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

Members list

Type members

Classlikes

case class ProxyStreamServerData(stdout: PrintStream, stderr: PrintStream, writtenExitCode: AtomicBoolean, customData: PreHandleConnectionCustomData)

Attributes

Source
ProxyStreamServer.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Types

Replaces PreHandleConnectionData in this class.

Replaces PreHandleConnectionData in this class.

Attributes

Source
ProxyStreamServer.scala

Attributes

Source
ProxyStreamServer.scala

Value members

Abstract methods

protected def handleConnection(socketInfo: SocketInfo, stdin: BufferedInputStream, stdout: PrintStream, stderr: PrintStream, stopServer: StopServer, setIdle: SetIdle, initialSystemProperties: Map[String, String], data: PreHandleConnectionCustomData): Int

Handle a single client connection in a separate thread.

Handle a single client connection in a separate thread.

Attributes

Returns

the exit code to return to the client

Source
ProxyStreamServer.scala
protected def preHandleConnection(socketInfo: SocketInfo, stdin: BufferedInputStream, stdout: PrintStream, stderr: PrintStream, stopServer: StopServer, initialSystemProperties: Map[String, String]): PreHandleConnectionCustomData

Invoked before a thread that runs handleConnection is spawned.

Invoked before a thread that runs handleConnection is spawned.

Attributes

Source
ProxyStreamServer.scala

Concrete methods

override protected def beforeSocketClose(connectionData: ConnectionData, stopServer: StopServer, data: ProxyStreamServerData): Unit

Attributes

Definition Classes
Source
ProxyStreamServer.scala
override protected def checkIfClientAlive(connectionData: ConnectionData, stopServer: StopServer, data: PreHandleConnectionData): Boolean

Returns true if the client is still alive. Invoked from another thread.

Returns true if the client is still alive. Invoked from another thread.

Attributes

Definition Classes
Source
ProxyStreamServer.scala
final override protected def handleConnection(connectionData: ConnectionData, stopServer: StopServer, setIdle: SetIdle, data: PreHandleConnectionData): Unit

Handle a single client connection in a separate thread.

Handle a single client connection in a separate thread.

Attributes

Definition Classes
Source
ProxyStreamServer.scala
override protected def onExceptionInHandleConnection(connectionData: ConnectionData, stopServer: StopServer, data: ProxyStreamServerData, exception: Throwable): Unit

Invoked in handleConnection results in an exception.

Invoked in handleConnection results in an exception.

Attributes

Definition Classes
Source
ProxyStreamServer.scala
override protected def onStopServer(from: String, reason: String, exitCode: Int, connectionData: ConnectionData, data: Option[PreHandleConnectionData]): Unit

Invoked when the server is stopped.

Invoked when the server is stopped.

Value parameters

data

will be None if preHandleConnection haven't been invoked yet.

Attributes

Definition Classes
Source
ProxyStreamServer.scala
final override protected def preHandleConnection(connectionData: ConnectionData, stopServer: StopServer): PreHandleConnectionData

Invoked before a thread that runs handleConnection is spawned.

Invoked before a thread that runs handleConnection is spawned.

Attributes

Definition Classes
Source
ProxyStreamServer.scala

Inherited methods

def run(): 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 processId: Long

Attributes

Inherited from:
Server
Source
Server.scala