Skip to content

Commit

Permalink
Merge pull request #11 from julianghionoiu/cleanup
Browse files Browse the repository at this point in the history
 Remove old client code
  • Loading branch information
julianghionoiu committed Feb 7, 2018
2 parents 0e13f51 + 062309d commit a1933b3
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 145 deletions.
31 changes: 0 additions & 31 deletions examples/add_numbers.rb

This file was deleted.

1 change: 0 additions & 1 deletion lib/tdl.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'tdl/queue/client'
require 'tdl/queue/implementation_runner_config'
require 'tdl/queue/queue_based_implementation_runner'
require 'tdl/queue/queue_based_implementation_runner_builder'
Expand Down
112 changes: 0 additions & 112 deletions lib/tdl/queue/client.rb

This file was deleted.

28 changes: 27 additions & 1 deletion lib/tdl/queue/queue_based_implementation_runner.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'logging'

require 'tdl/queue/processing_rules'
require 'tdl/queue/transport/remote_broker'

module TDL
class QueueBasedImplementationRunner
Expand Down Expand Up @@ -73,3 +73,29 @@ def process_next_request_from(remote_broker, request)
end
end
end

class AuditStream

def initialize
@logger = Logging.logger[self]
start_line
end

def start_line
@str = ''
end

def log(auditable)
text = auditable.audit_text
if not text.empty? and @str.length > 0
@str << ', '
end

@str << text
end

def end_line
@logger.info @str
end

end
2 changes: 2 additions & 0 deletions lib/tdl/queue/transport/remote_broker.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require 'stomp'
require 'tdl/thread_timer'
require 'tdl/queue/serialization/json_rpc_serialization_provider'

module TDL
class RemoteBroker
Expand Down

0 comments on commit a1933b3

Please sign in to comment.