t

tiscaf

HServer

trait HServer extends HLoggable

A server provides:

  • few common settings,
  • list of tiscaf.HApplications,
  • start/stop methods
Self Type
HServer
Source
HServer.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HServer
  2. HLoggable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apps: Seq[HApp]

    Returns the list of available applications.

    Returns the list of available applications.

    Attributes
    protected
    See also

    tiscaf.HApp

  2. abstract def ports: Set[Int]

    Returns the list of ports, the server listens to.

    Returns the list of ports, the server listens to.

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def bindHost: String

    The host the server binds to

    The host the server binds to

    Attributes
    protected
  6. def bufferSize: Int

    Returns the NIO buffer size.

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def connectionTimeoutSeconds: Int

    Returns the connection timeout.

    Returns the connection timeout. It has to purposes:

    • a connection without any socket activity during this period will be closed
    • if you use (and client wants) 'keep-alive' connection, this period is declared in response header
  9. def defaultHeaders: Map[String, String]

    The list of defaults headers that are set by the server for each request.

    The list of defaults headers that are set by the server for each request. Each let may override (or remove) them later

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def error(msg: String, t: Throwable): Unit

    Called to log a tiscaf internal error.

    Called to log a tiscaf internal error. Note: This methods is not intended to be called by applications using tiscaf. Override it to log using your favorite logging library. By default, logs the message and the stack trace to stderr.

    Definition Classes
    HServerHLoggable
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def info(msg: String): Unit

    Called to log a tiscaf internal information.

    Called to log a tiscaf internal information. Note: This methods is not intended to be called by applications using tiscaf. Override it to log using your favorite logging library. By default, logs the message to stdout.

    Definition Classes
    HServerHLoggable
  17. def interruptTimeoutMillis: Int

    Returns the time a shutdown process let the HLets a chance to finish properly.

  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. val logInternals: Boolean

    Sets it to true to have internal information from tiscaf logged

    Sets it to true to have internal information from tiscaf logged

    Attributes
    protected
  20. def maxPostDataLength: Int

    Returns the maximum upload size allowed.

    Returns the maximum upload size allowed.

    Attributes
    protected
  21. def name: String

    Returns the server name, used in response headers.

    Returns the server name, used in response headers.

    Attributes
    protected
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. def onStart(): Unit

    Executed at the end of the server is started

    Executed at the end of the server is started

    Attributes
    protected
  26. def onStop(): Unit

    Executed before the server is stopped

    Executed before the server is stopped

    Attributes
    protected
  27. def poolSize: Int

    Returns the executor pool size.

    Returns the executor pool size.

    Attributes
    protected
  28. def queueSize: Int

    Returns the executor queue size.

    Returns the executor queue size.

    Attributes
    protected
  29. def ssl: List[HSslContext]

    Returns the SSL settings if any.

  30. def start: Unit

    Starts the server.

  31. def startStopListener: Unit

    Starts the stop listener.

    Starts the stop listener. Override if you want more elaborated shutdown procedure (and replace tiscaf.HStop)

    Attributes
    protected
  32. def stop: Unit

    Stops the server.

  33. def stopHost: String

    Returns the host to listen to for stop message.

  34. def stopPort: Int

    Returns the port number listened to for a stop message.

  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def tcpNoDelay: Boolean
    Attributes
    protected
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  41. def warning(msg: String): Unit

    Called to log a tiscaf internal warning.

    Called to log a tiscaf internal warning. Note: This methods is not intended to be called by applications using tiscaf. Override it to log using your favorite logging library. By default, logs the message to stdout.

    Definition Classes
    HServerHLoggable

Inherited from HLoggable

Inherited from AnyRef

Inherited from Any

Ungrouped