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



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

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

#buckets_without_profilingObject



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

alias_method :buckets_without_profiling, :buckets

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



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

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



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

alias_method :clear_bucket_props_without_profiling, :clear_bucket_props

#client_idObject



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

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

#client_id_without_profilingObject



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

alias_method :client_id_without_profiling, :client_id

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



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

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



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

alias_method :delete_object_without_profiling, :delete_object

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



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

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



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

alias_method :get_bucket_props_without_profiling, :get_bucket_props

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



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

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



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

alias_method :get_index_without_profiling, :get_index

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



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

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



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

alias_method :get_object_without_profiling, :get_object

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



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

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



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

alias_method :get_preflist_without_profiling, :get_preflist

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



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

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



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

alias_method :list_keys_without_profiling, :list_keys

#mapred(mr, &block) ⇒ Object



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

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

#mapred_without_profilingObject



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

alias_method :mapred_without_profiling, :mapred

#pingObject



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

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

#ping_without_profilingObject



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

alias_method :ping_without_profiling, :ping

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



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

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



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

alias_method :reload_object_without_profiling, :reload_object

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



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

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



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

alias_method :set_bucket_props_without_profiling, :set_bucket_props

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



88
89
90
# File 'lib/patches/db/riak.rb', line 88

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



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

alias_method :store_object_without_profiling, :store_object