datawire_mdk 2.0.29 → 2.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/mdk_rtp.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  require "quark"
4
4
  def self.mdk_rtp; MdkRtp; end
data/lib/mdk_runtime.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  require "quark"
4
4
  def self.mdk_runtime; MdkRuntime; end
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  require "quark"
4
4
  def self.mdk_runtime; MdkRuntime; end
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  require "quark"
4
4
  def self.mdk_runtime; MdkRuntime; end
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  require "quark"
4
4
  def self.mdk_runtime; MdkRuntime; end
data/lib/mdk_tracing.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  require "quark"
4
4
  def self.mdk_tracing; MdkTracing; end
@@ -35,9 +35,9 @@ class TracingDestination < ::DatawireQuarkCore::QuarkObject
35
35
 
36
36
 
37
37
  ##
38
- # Send a log message to the server.
38
+ # Send a log message to the server. Call using logToTracer().
39
39
 
40
- def log(ctx, procUUID, level, category, text)
40
+ def log(event)
41
41
  raise NotImplementedError, '`TracingDestination.log` is an abstract method'
42
42
 
43
43
  nil
@@ -53,6 +53,26 @@ class TracingDestination < ::DatawireQuarkCore::QuarkObject
53
53
  end
54
54
  TracingDestination.unlazy_statics
55
55
 
56
+ ##
57
+ # Construct a LogEvent and write to a tracer.
58
+
59
+ def self.createLogEvent(ctx, procUUID, level, category, text)
60
+
61
+ ctx.tick()
62
+ evt = ::Quark.mdk_tracing.protocol.LogEvent.new()
63
+ (evt).context = ctx.copy()
64
+ (evt).timestamp = ::Quark.quark.now()
65
+ (evt).node = procUUID
66
+ (evt).level = level
67
+ (evt).category = category
68
+ (evt).contentType = "text/plain"
69
+ (evt).text = text
70
+ return evt
71
+
72
+
73
+ nil
74
+ end
75
+
56
76
  def self.FakeTracer; FakeTracer; end
57
77
  ##
58
78
  # In-memory testing of logs.
@@ -74,9 +94,9 @@ class FakeTracer < ::DatawireQuarkCore::QuarkObject
74
94
 
75
95
 
76
96
 
77
- def log(ctx, procUUID, level, category, text)
97
+ def log(event)
78
98
 
79
- (@messages) << ({"level" => level, "category" => category, "text" => text, "context" => (ctx).traceId})
99
+ (@messages) << ({"level" => (event).level, "category" => (event).category, "text" => (event).text, "context" => ((event).context).traceId})
80
100
 
81
101
  nil
82
102
  end
@@ -209,19 +229,10 @@ class Tracer < ::DatawireQuarkCore::QuarkObject
209
229
  ##
210
230
  # Send a log message to the server.
211
231
 
212
- def log(ctx, procUUID, level, category, text)
232
+ def log(event)
213
233
 
214
- ctx.tick()
215
- @logger.trace(("CTX ") + (ctx.toString()))
216
- evt = ::Quark.mdk_tracing.protocol.LogEvent.new()
217
- (evt).context = ctx.copy()
218
- (evt).timestamp = ::Quark.quark.now()
219
- (evt).node = procUUID
220
- (evt).level = level
221
- (evt).category = category
222
- (evt).contentType = "text/plain"
223
- (evt).text = text
224
- @_client.log(evt)
234
+ @logger.trace(("CTX ") + ((event).context.toString()))
235
+ @_client.log(event)
225
236
 
226
237
  nil
227
238
  end
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  require "quark"
4
4
  def self.mdk_tracing; MdkTracing; end
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  require "quark"
4
4
  def self.mdk_tracing; MdkTracing; end
@@ -327,10 +327,10 @@ class TracingClient < ::DatawireQuarkCore::QuarkObject
327
327
 
328
328
  @_mutex.acquire()
329
329
  (self)._sock = websock
330
- (self)._sendWithAcks.onConnected(self, (self)._dispatcher, websock)
331
330
  if ((@_handler) != (nil))
332
331
  (self)._dispatcher.tell(self, ::Quark.mdk_tracing.protocol.Subscribe.new().encode(), (self)._sock)
333
332
  end
333
+ (self)._sendWithAcks.onConnected(::Quark.mdk_protocol.WSSend.new(self, (self)._dispatcher, (self)._sock))
334
334
  @_mutex.release()
335
335
 
336
336
  nil
@@ -339,7 +339,7 @@ class TracingClient < ::DatawireQuarkCore::QuarkObject
339
339
  def onPump()
340
340
 
341
341
  @_mutex.acquire()
342
- (self)._sendWithAcks.onPump(self, (self)._dispatcher, (self)._sock)
342
+ (self)._sendWithAcks.onPump(::Quark.mdk_protocol.WSSend.new(self, (self)._dispatcher, (self)._sock))
343
343
  @_mutex.release()
344
344
 
345
345
  nil
data/lib/mdk_util.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  require "quark"
4
4
  def self.mdk_util; MdkUtil; end
data/lib/quark.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  require_relative "datawire-quark-core"
4
4
  def self.quark; Quark; end
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  def self.quark; Quark; end
4
4
  module Quark
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  def self.quark; Quark; end
4
4
  module Quark
data/lib/quark/error.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  def self.quark; Quark; end
4
4
  module Quark
data/lib/quark/logging.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  def self.quark; Quark; end
4
4
  module Quark
data/lib/quark/mock.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  def self.quark; Quark; end
4
4
  module Quark
data/lib/quark/os.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  def self.quark; Quark; end
4
4
  module Quark
data/lib/quark/reflect.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  def self.quark; Quark; end
4
4
  module Quark
data/lib/quark/spi.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  def self.quark; Quark; end
4
4
  module Quark
data/lib/quark/spi_api.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  def self.quark; Quark; end
4
4
  module Quark
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  def self.quark; Quark; end
4
4
  module Quark
data/lib/quark/test.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Quark 1.0.452 run at 2016-11-04 17:24:33.914374
1
+ # Quark 1.0.452 run at 2016-11-10 18:39:58.222591
2
2
  module Quark
3
3
  def self.quark; Quark; end
4
4
  module Quark
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datawire_mdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.29
4
+ version: 2.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Quark compiled code
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-04 00:00:00.000000000 Z
11
+ date: 2016-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby