Class: Cassandra::Execution::Trace

Inherits:
Object
  • Object
show all
Includes:
MonitorMixin
Defined in:
lib/cassandra/execution/trace.rb

Defined Under Namespace

Classes: Event

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idCassandra::Uuid (readonly)

Returns trace id.

Returns:



52
53
54
# File 'lib/cassandra/execution/trace.rb', line 52

def id
  @id
end

Instance Method Details

#coordinatorIPAddr

Returns the ip of coordinator node. Typically the same as Info#hosts.last

Returns:

  • (IPAddr)

    ip of the coordinator node



65
66
67
68
69
# File 'lib/cassandra/execution/trace.rb', line 65

def coordinator
  load unless @coordinator

  @coordinator
end

#durationObject



71
72
73
74
75
# File 'lib/cassandra/execution/trace.rb', line 71

def duration
  load unless @duration

  @duration
end

#eventsArray<Cassandra::Execution::Trace::Event>

Returns all trace events

Returns:



98
99
100
101
102
# File 'lib/cassandra/execution/trace.rb', line 98

def events
  load_events unless @events

  @events
end

#inspectObject



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

#parametersObject



77
78
79
80
81
# File 'lib/cassandra/execution/trace.rb', line 77

def parameters
  load unless @parameters

  @parameters
end

#requestObject



83
84
85
86
87
# File 'lib/cassandra/execution/trace.rb', line 83

def request
  load unless @request

  @request
end

#started_atObject



89
90
91
92
93
# File 'lib/cassandra/execution/trace.rb', line 89

def started_at
  load unless @started_at

  @started_at
end