Class: Riak::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/patches/db/riak.rb

Instance Method Summary collapse

Instance Method Details

#buckets(options = {}, &blk) ⇒ Object



21
22
23
# File 'lib/patches/db/riak.rb', line 21

def buckets(options={}, &blk)
  profile("buckets #{options}") { buckets_without_profiling(options, &blk) }
end

#buckets_without_profilingObject



20
# File 'lib/patches/db/riak.rb', line 20

alias_method :buckets_without_profiling, :buckets

#clear_bucket_props(bucket, options = {}) ⇒ Object



81
82
83
# File 'lib/patches/db/riak.rb', line 81

def clear_bucket_props(bucket, options={})
  profile("clear_bucket_props bucket=#{bucket.name} options=#{options}") { clear_bucket_props_without_profiling(bucket, options) }
end

#clear_bucket_props_without_profilingObject



80
# File 'lib/patches/db/riak.rb', line 80

alias_method :clear_bucket_props_without_profiling, :clear_bucket_props

#client_idObject



26
27
28
# File 'lib/patches/db/riak.rb', line 26

def client_id
  profile("client_id") { client_id_without_profiling }
end

#client_id_without_profilingObject



25
# File 'lib/patches/db/riak.rb', line 25

alias_method :client_id_without_profiling, :client_id

#delete_object(bucket, key, options = {}) ⇒ Object



31
32
33
# File 'lib/patches/db/riak.rb', line 31

def delete_object(bucket, key, options={})
  profile("delete_object bucket=#{bucket.name} key=#{key} options=#{options}") { delete_object_without_profiling(bucket, key, options) }
end

#delete_object_without_profilingObject



30
# File 'lib/patches/db/riak.rb', line 30

alias_method :delete_object_without_profiling, :delete_object

#get_bucket_props(bucket, options = {}) ⇒ Object



36
37
38
# File 'lib/patches/db/riak.rb', line 36

def get_bucket_props(bucket, options={})
  profile("get_bucket_props bucket=#{bucket.name} options=#{options}") { get_bucket_props_without_profiling(bucket, options) }
end

#get_bucket_props_without_profilingObject



35
# File 'lib/patches/db/riak.rb', line 35

alias_method :get_bucket_props_without_profiling, :get_bucket_props

#get_index(bucket, index, query, options = {}) ⇒ Object



41
42
43
# File 'lib/patches/db/riak.rb', line 41

def get_index(bucket, index, query, options={})
  profile("get_index bucket=#{bucket.name} index=#{index} query=#{query} options=#{options}") { get_index_without_profiling(bucket, index, query, options) }
end

#get_index_without_profilingObject



40
# File 'lib/patches/db/riak.rb', line 40

alias_method :get_index_without_profiling, :get_index

#get_object(bucket, key, options = {}) ⇒ Object



51
52
53
# File 'lib/patches/db/riak.rb', line 51

def get_object(bucket, key, options={})
  profile("get_object bucket=#{bucket.name} key=#{key} options=#{options}") { get_object_without_profiling(bucket, key, options) }
end

#get_object_without_profilingObject



50
# File 'lib/patches/db/riak.rb', line 50

alias_method :get_object_without_profiling, :get_object

#get_preflist(bucket, key, type = nil, options = {}) ⇒ Object



46
47
48
# File 'lib/patches/db/riak.rb', line 46

def get_preflist(bucket, key, type=nil, options={})
  profile("get_preflist bucket=#{bucket.name} key=#{key} type=#{type} options=#{options}") { get_preflist_without_profiling(bucket, key, type, options) }
end

#get_preflist_without_profilingObject



45
# File 'lib/patches/db/riak.rb', line 45

alias_method :get_preflist_without_profiling, :get_preflist

#list_keys(bucket, options = {}, &block) ⇒ Object



56
57
58
# File 'lib/patches/db/riak.rb', line 56

def list_keys(bucket, options={}, &block)
  profile("list_keys bucket=#{bucket.name} options=#{options}") { list_keys_without_profiling(bucket, options, &block) }
end

#list_keys_without_profilingObject



55
# File 'lib/patches/db/riak.rb', line 55

alias_method :list_keys_without_profiling, :list_keys

#mapred(mr, &block) ⇒ Object



61
62
63
# File 'lib/patches/db/riak.rb', line 61

def mapred(mr, &block)
  profile("mapred") { mapred_without_profiling(mr, &block) }
end

#mapred_without_profilingObject



60
# File 'lib/patches/db/riak.rb', line 60

alias_method :mapred_without_profiling, :mapred

#pingObject



66
67
68
# File 'lib/patches/db/riak.rb', line 66

def ping
  profile("ping") { ping_without_profiling }
end

#ping_without_profilingObject



65
# File 'lib/patches/db/riak.rb', line 65

alias_method :ping_without_profiling, :ping

#reload_object(object, options = {}) ⇒ Object



71
72
73
# File 'lib/patches/db/riak.rb', line 71

def reload_object(object, options={})
  profile("reload_object bucket=#{object.bucket.name} key=#{object.key} vclock=#{object.vclock} options=#{options}") { reload_object_without_profiling(object, options) }
end

#reload_object_without_profilingObject



70
# File 'lib/patches/db/riak.rb', line 70

alias_method :reload_object_without_profiling, :reload_object

#set_bucket_props(bucket, properties, type = nil) ⇒ Object



76
77
78
# File 'lib/patches/db/riak.rb', line 76

def set_bucket_props(bucket, properties, type=nil)
  profile("set_bucket_props bucket=#{bucket.name} type=#{type}") { set_bucket_props_without_profiling(bucket, properties, type) }
end

#set_bucket_props_without_profilingObject



75
# File 'lib/patches/db/riak.rb', line 75

alias_method :set_bucket_props_without_profiling, :set_bucket_props

#store_object(object, options = {}) ⇒ Object



86
87
88
# File 'lib/patches/db/riak.rb', line 86

def store_object(object, options={})
  profile("store_object bucket=#{object.bucket.name} key=#{object.key} vclock=#{object.vclock} options=#{options}") { store_object_without_profiling(object, options) }
end

#store_object_without_profilingObject



85
# File 'lib/patches/db/riak.rb', line 85

alias_method :store_object_without_profiling, :store_object