Packages

package host

Linear Supertypes
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. host
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class Error extends Throwable

    Top level application error and failures.

    Top level application error and failures. Extends throwable for ease of translation with tasks. Optional cause is encoded as default null as that is consistent with Throwable.

  2. type Host[+A] = ZIO[HostEnvironment, Error, A]

  3. abstract class HostApp[AppParams] extends PreludeBuilders with prelude.external.IOLogging

    An application hosting at least one server node.

    An application hosting at least one server node.

    By default:

    • initial state defined by configuration file or command line arguments
    • all service fragments under glngn.server.services are enabled
    • dynamic service instantiation of service fragments
    • operations interfaces for all instantiated services
    • ad-hoc definition of singleton services and operations by operators

    See also DefaultHostApp.

    The type NoAppParams is suitable if no additional application parameters are required.

  4. sealed trait HostCommand extends AnyRef

    Host application commands.

  5. type HostEnvironment = Blocking with Clock with Logging with Random with System

  6. type HostIO[+E, +A] = ZIO[HostEnvironment, E, A]

  7. type HostTask[+A] = ZIO[HostEnvironment, Throwable, A]

  8. type HostUIO[+A] = ZIO[HostEnvironment, Nothing, A]

  9. type InjectorProvider = Has[Service]

  10. type Logging = Has[Service]

  11. final case class NoAppParams() extends Product with Serializable

    Empty params structure.

  12. abstract class StandaloneSystem extends Client

    The first node currently cannot be stopped before system shutdown request.

    The first node currently cannot be stopped before system shutdown request. (#169, #114)

  13. sealed trait TermReason extends Product with Serializable

    Reason application is terminating.

    Reason application is terminating. In clustered mode this is always the termination reason of the node.

Value Members

  1. object DefaultHostApp extends HostApp[NoAppParams]

    A server with the default configuration.

    A server with the default configuration. This is exactly extends HostApp[DefaultHostParams].

  2. object Error extends Serializable

  3. object ExitCodes extends prelude.external.IOLogging

    Only the exit code 0 indicates success.

    Only the exit code 0 indicates success. All other exit codes imply the application behaved differently than expected. The host system should consider the exact exit code to determine best course of action.

    An exit code > 50 indicates an error in the implementation. Contact support@dogheadbone.com.

  4. object HostApp extends prelude.external.IOLogging

    A ZIO application hosting server nodes.

  5. object HostCommand

    Host application commands.

  6. object HostEnvironment
  7. object InjectorProvider

    Provide access to the glngn.server.core.rts.ImpureInjector instance in the application environment.

    Provide access to the glngn.server.core.rts.ImpureInjector instance in the application environment.

    Extend the glngn.server.host.HostApp.resolveImpureBindings method to extend the Injector for all service fragments.

    AppIO has additional methods for accessing the application environment.

    To do

    Preference is to extend the IO environment instead. use distage to inject this?

  8. object Logging
  9. object StandaloneSystem extends prelude.external.IOLogging
  10. object TermReason extends Serializable

    Reason application is terminating.

    Reason application is terminating. In clustered mode this is always the termination reason of the node.

Inherited from AnyRef

Inherited from Any

Service Logic

Implementation Detail

Ungrouped