Sha256: 5530c68ea0d334991380eb2a192d895997038ced0d87a887981b1db847c0c57f

Contents?: true

Size: 776 Bytes

Versions: 8

Compression:

Stored size: 776 Bytes

Contents

module Pione
  module Front
    # ClientFront is a front class for +pione-client+ command.
    class ClientFront < BasicFront
      extend Forwardable
      include TaskWorkerOwner
      include TupleSpaceProviderOwner

      def_delegator :@command, :tuple_space_server
      def_delegator :@command, :name

      # Create a new front.
      def initialize(command)
        super(command, Global.client_front_port_range)
        initialize_task_worker_owner
      end

      # Returns client's tuple space server for task workers.
      # @param [String] connection_id
      #   connection id of task worker
      # @return [TupleSpaceServer]
      #   tuple space server
      def get_tuple_space_server(connection_id)
        tuple_space_server
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pione-0.2.2 lib/pione/front/client-front.rb
pione-0.2.1 lib/pione/front/client-front.rb
pione-0.2.0 lib/pione/front/client-front.rb
pione-0.1.4 lib/pione/front/client-front.rb
pione-0.1.3 lib/pione/front/client-front.rb
pione-0.1.2 lib/pione/front/client-front.rb
pione-0.1.1 lib/pione/front/client-front.rb
pione-0.1.0 lib/pione/front/client-front.rb