Class: Cassandra::Execution::Trace
- Inherits:
-
Object
- Object
- Cassandra::Execution::Trace
- Includes:
- MonitorMixin
- Defined in:
- lib/cassandra/execution/trace.rb
Defined Under Namespace
Classes: Event
Instance Attribute Summary collapse
-
#id ⇒ Cassandra::Uuid
readonly
Trace id.
Instance Method Summary collapse
-
#coordinator ⇒ IPAddr
Returns the ip of coordinator node.
- #duration ⇒ Object
-
#events ⇒ Array<Cassandra::Execution::Trace::Event>
Returns all trace events.
- #inspect ⇒ Object
- #parameters ⇒ Object
- #request ⇒ Object
- #started_at ⇒ Object
Instance Attribute Details
#id ⇒ Cassandra::Uuid (readonly)
Returns trace id.
52 53 54 |
# File 'lib/cassandra/execution/trace.rb', line 52 def id @id end |
Instance Method Details
#coordinator ⇒ IPAddr
Returns the ip of coordinator node. Typically the same as Info#hosts.last
65 66 67 68 69 |
# File 'lib/cassandra/execution/trace.rb', line 65 def coordinator load unless @coordinator @coordinator end |
#duration ⇒ Object
71 72 73 74 75 |
# File 'lib/cassandra/execution/trace.rb', line 71 def duration load unless @duration @duration end |
#events ⇒ Array<Cassandra::Execution::Trace::Event>
Returns all trace events
98 99 100 101 102 |
# File 'lib/cassandra/execution/trace.rb', line 98 def events load_events unless @events @events end |
#inspect ⇒ Object
104 105 106 |
# File 'lib/cassandra/execution/trace.rb', line 104 def inspect "#<#{self.class.name}:0x#{self.object_id.to_s(16)} @id=#{@id.inspect}>" end |
#parameters ⇒ Object
77 78 79 80 81 |
# File 'lib/cassandra/execution/trace.rb', line 77 def parameters load unless @parameters @parameters end |
#request ⇒ Object
83 84 85 86 87 |
# File 'lib/cassandra/execution/trace.rb', line 83 def request load unless @request @request end |
#started_at ⇒ Object
89 90 91 92 93 |
# File 'lib/cassandra/execution/trace.rb', line 89 def started_at load unless @started_at @started_at end |