Class: Vertica::Protocol::BackendKeyData

Inherits:
BackendMessage show all
Defined in:
lib/vertica/protocol/backend/backend_key_data.rb

Constant Summary

Constants inherited from BackendMessage

Vertica::Protocol::BackendMessage::MessageIdMap

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BackendMessage

factory, message_id

Methods inherited from Message

message_id

Constructor Details

#initialize(data) ⇒ BackendKeyData

Returns a new instance of BackendKeyData.



8
9
10
# File 'lib/vertica/protocol/backend/backend_key_data.rb', line 8

def initialize(data)
  @pid, @key = data.unpack('NN')
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



6
7
8
# File 'lib/vertica/protocol/backend/backend_key_data.rb', line 6

def key
  @key
end

#pidObject (readonly)

Returns the value of attribute pid.



6
7
8
# File 'lib/vertica/protocol/backend/backend_key_data.rb', line 6

def pid
  @pid
end