Class | Merb::Rack::AbstractAdapter |
In: |
lib/merb-core/rack/adapter/abstract.rb
|
Parent: | Object |
Exit the process with the specified status.
status<Integer>: | The exit code of the process. |
:api: private
This method is designed to be overridden in a rack adapter. It will be called to create a new instance of the server for the adapter to start. The adapter should attempt to bind to a port at this point. This is called from the AbstractAdapter start method.
port<Integer>: | The port the server should listen on |
:api: plugin @overridable
Set the process title.
whoami<Symbol>: | Either :spawner for the master process or :worker for any of the worker |
processes.
port<Integer>: | The base port that the app is running on. |
:api: private
Spawn a new worker process at a port.
port<Integer>: | The port to start the worker process on. |
:api: private
The main start method for bootloaders that support forking. This method launches the adapters which inherit using the new_server and start_server methods. This method should not be overridden in adapters which want to fork.
opts<Hash>: | A hash of options |
socket: the socket to bind to port: the port to bind to cluster: the number
:api: private
This method is designed to be overridden in a rack adapter. It will be called to start a server created with the new_server method. This is called from the AbstractAdapter start method.
:api: plugin @overridable
This method is designed to be overridden in a rack adapter. It will be called to stop the adapter server.
status<Integer>: | The exit status the adapter should exit with. |
Boolean: | True if the server was properly stopped. |
:api: plugin @overridable