Class: Akephalos::ClientManager Private

Inherits:
Object
  • Object
show all
Includes:
DRbUndumped
Defined in:
lib/akephalos/server.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

The ClientManager is shared over DRb with the remote process, and facilitates communication between the processes.

Class Method Summary collapse

Class Method Details

.configuration=(config) ⇒ Hash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Set the global configuration settings for Akephalos.

Parameters:

  • config (Hash)

    the configuration settings

Returns:

  • (Hash)

    the configuration



43
44
45
# File 'lib/akephalos/server.rb', line 43

def self.configuration=(config)
  Akephalos.configuration = config
end

.new_client(options = {}) ⇒ Akephalos::Client

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new client instance.

Returns:



34
35
36
37
# File 'lib/akephalos/server.rb', line 34

def self.new_client(options = {})
  # Store the client to ensure it isn't prematurely garbage collected.
  @client = Client.new(options)
end