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:



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

def id
  @id
end

Instance Method Details

#clientIPAddr?

Returns the ip of the client node, the node that ran the driver instance that started tracing.

Returns:

  • (IPAddr, nil)

    ip of the client node running the driver



87
88
89
90
91
# File 'lib/cassandra/execution/trace.rb', line 87

def client
  load unless @loaded

  @client_ip
end

#coordinatorIPAddr

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

Returns:

  • (IPAddr)

    ip of the coordinator node



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

def coordinator
  load unless @loaded

  @coordinator
end

#durationObject



93
94
95
96
97
# File 'lib/cassandra/execution/trace.rb', line 93

def duration
  load unless @loaded

  @duration
end

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

Returns all trace events

Returns:



120
121
122
123
124
# File 'lib/cassandra/execution/trace.rb', line 120

def events
  load_events unless @loaded_events

  @events
end

#parametersObject



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

def parameters
  load unless @loaded

  @parameters
end

#requestObject



105
106
107
108
109
# File 'lib/cassandra/execution/trace.rb', line 105

def request
  load unless @loaded

  @request
end

#started_atObject



111
112
113
114
115
# File 'lib/cassandra/execution/trace.rb', line 111

def started_at
  load unless @loaded

  @started_at
end