lib/pione/front/client-front.rb in pione-0.2.2 vs lib/pione/front/client-front.rb in pione-0.3.0
- old
+ new
@@ -1,28 +1,20 @@
module Pione
module Front
- # ClientFront is a front class for +pione-client+ command.
+ # ClientFront is a front interface 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
+ def initialize
+ super(Global.client_front_port_range)
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
+ def set_tuple_space(tuple_space)
+ @tuple_space = tuple_space
+ end
+
+ # Get client's tuple space. +tuple_space_id+ is ignored.
+ def get_tuple_space(tuple_space_id)
+ @tuple_space
end
end
end
end