Class: Nonnative::ConfigurationServer

Inherits:
ConfigurationRunner show all
Defined in:
lib/nonnative/configuration_server.rb

Overview

Server-specific configuration.

A “server” is an in-process Ruby component started in a background thread and stopped via a server-specific shutdown routine. It is managed by Server at runtime.

Instances are usually created through Nonnative::Configuration#server.

See Also:

Instance Attribute Summary collapse

Attributes inherited from ConfigurationRunner

#host, #name, #port, #proxy, #wait

Method Summary

Methods inherited from ConfigurationRunner

#initialize

Constructor Details

This class inherits a constructor from Nonnative::ConfigurationRunner

Instance Attribute Details

#klassClass, ...

Returns:

  • (Class)

    a class that implements ‘#initialize(service)`, and lifecycle hooks expected by Server

  • (Numeric)

    readiness timeout (seconds) used when waiting for the port to open/close

  • (String)

    log file path used by server implementations (for example Puma/gRPC log files)



17
18
19
# File 'lib/nonnative/configuration_server.rb', line 17

def klass
  @klass
end

#logClass, ...

Returns:

  • (Class)

    a class that implements ‘#initialize(service)`, and lifecycle hooks expected by Server

  • (Numeric)

    readiness timeout (seconds) used when waiting for the port to open/close

  • (String)

    log file path used by server implementations (for example Puma/gRPC log files)



17
18
19
# File 'lib/nonnative/configuration_server.rb', line 17

def log
  @log
end

#timeoutClass, ...

Returns:

  • (Class)

    a class that implements ‘#initialize(service)`, and lifecycle hooks expected by Server

  • (Numeric)

    readiness timeout (seconds) used when waiting for the port to open/close

  • (String)

    log file path used by server implementations (for example Puma/gRPC log files)



17
18
19
# File 'lib/nonnative/configuration_server.rb', line 17

def timeout
  @timeout
end