Class: FacebookService::Client

Inherits:
Object
  • Object
show all
Includes:
Thrift::Client
Defined in:
lib/rb/jp/gen-rb/facebook_service.rb

Direct Known Subclasses

Jp::JobPool::Client

Instance Method Summary collapse

Instance Method Details

#aliveSinceObject



163
164
165
166
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 163

def aliveSince()
  send_aliveSince()
  return recv_aliveSince()
end

#getCounter(key) ⇒ Object



89
90
91
92
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 89

def getCounter(key)
  send_getCounter(key)
  return recv_getCounter()
end

#getCountersObject



74
75
76
77
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 74

def getCounters()
  send_getCounters()
  return recv_getCounters()
end

#getCpuProfile(profileDurationInSec) ⇒ Object



148
149
150
151
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 148

def getCpuProfile(profileDurationInSec)
  send_getCpuProfile(profileDurationInSec)
  return recv_getCpuProfile()
end

#getNameObject



14
15
16
17
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 14

def getName()
  send_getName()
  return recv_getName()
end

#getOption(key) ⇒ Object



118
119
120
121
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 118

def getOption(key)
  send_getOption(key)
  return recv_getOption()
end

#getOptionsObject



133
134
135
136
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 133

def getOptions()
  send_getOptions()
  return recv_getOptions()
end

#getStatusObject



44
45
46
47
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 44

def getStatus()
  send_getStatus()
  return recv_getStatus()
end

#getStatusDetailsObject



59
60
61
62
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 59

def getStatusDetails()
  send_getStatusDetails()
  return recv_getStatusDetails()
end

#getVersionObject



29
30
31
32
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 29

def getVersion()
  send_getVersion()
  return recv_getVersion()
end

#recv_aliveSinceObject

Raises:

  • (::Thrift::ApplicationException)


172
173
174
175
176
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 172

def recv_aliveSince()
  result = receive_message(AliveSince_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'aliveSince failed: unknown result')
end

#recv_getCounterObject

Raises:

  • (::Thrift::ApplicationException)


98
99
100
101
102
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 98

def recv_getCounter()
  result = receive_message(GetCounter_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getCounter failed: unknown result')
end

#recv_getCountersObject

Raises:

  • (::Thrift::ApplicationException)


83
84
85
86
87
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 83

def recv_getCounters()
  result = receive_message(GetCounters_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getCounters failed: unknown result')
end

#recv_getCpuProfileObject

Raises:

  • (::Thrift::ApplicationException)


157
158
159
160
161
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 157

def recv_getCpuProfile()
  result = receive_message(GetCpuProfile_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getCpuProfile failed: unknown result')
end

#recv_getNameObject

Raises:

  • (::Thrift::ApplicationException)


23
24
25
26
27
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 23

def recv_getName()
  result = receive_message(GetName_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getName failed: unknown result')
end

#recv_getOptionObject

Raises:

  • (::Thrift::ApplicationException)


127
128
129
130
131
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 127

def recv_getOption()
  result = receive_message(GetOption_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getOption failed: unknown result')
end

#recv_getOptionsObject

Raises:

  • (::Thrift::ApplicationException)


142
143
144
145
146
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 142

def recv_getOptions()
  result = receive_message(GetOptions_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getOptions failed: unknown result')
end

#recv_getStatusObject

Raises:

  • (::Thrift::ApplicationException)


53
54
55
56
57
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 53

def recv_getStatus()
  result = receive_message(GetStatus_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getStatus failed: unknown result')
end

#recv_getStatusDetailsObject

Raises:

  • (::Thrift::ApplicationException)


68
69
70
71
72
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 68

def recv_getStatusDetails()
  result = receive_message(GetStatusDetails_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getStatusDetails failed: unknown result')
end

#recv_getVersionObject

Raises:

  • (::Thrift::ApplicationException)


38
39
40
41
42
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 38

def recv_getVersion()
  result = receive_message(GetVersion_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getVersion failed: unknown result')
end

#recv_setOptionObject



113
114
115
116
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 113

def recv_setOption()
  result = receive_message(SetOption_result)
  return
end

#reinitializeObject



178
179
180
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 178

def reinitialize()
  send_reinitialize()
end

#send_aliveSinceObject



168
169
170
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 168

def send_aliveSince()
  send_message('aliveSince', AliveSince_args)
end

#send_getCounter(key) ⇒ Object



94
95
96
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 94

def send_getCounter(key)
  send_message('getCounter', GetCounter_args, :key => key)
end

#send_getCountersObject



79
80
81
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 79

def send_getCounters()
  send_message('getCounters', GetCounters_args)
end

#send_getCpuProfile(profileDurationInSec) ⇒ Object



153
154
155
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 153

def send_getCpuProfile(profileDurationInSec)
  send_message('getCpuProfile', GetCpuProfile_args, :profileDurationInSec => profileDurationInSec)
end

#send_getNameObject



19
20
21
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 19

def send_getName()
  send_message('getName', GetName_args)
end

#send_getOption(key) ⇒ Object



123
124
125
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 123

def send_getOption(key)
  send_message('getOption', GetOption_args, :key => key)
end

#send_getOptionsObject



138
139
140
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 138

def send_getOptions()
  send_message('getOptions', GetOptions_args)
end

#send_getStatusObject



49
50
51
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 49

def send_getStatus()
  send_message('getStatus', GetStatus_args)
end

#send_getStatusDetailsObject



64
65
66
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 64

def send_getStatusDetails()
  send_message('getStatusDetails', GetStatusDetails_args)
end

#send_getVersionObject



34
35
36
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 34

def send_getVersion()
  send_message('getVersion', GetVersion_args)
end

#send_reinitializeObject



182
183
184
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 182

def send_reinitialize()
  send_message('reinitialize', Reinitialize_args)
end

#send_setOption(key, value) ⇒ Object



109
110
111
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 109

def send_setOption(key, value)
  send_message('setOption', SetOption_args, :key => key, :value => value)
end

#send_shutdownObject



189
190
191
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 189

def send_shutdown()
  send_message('shutdown', Shutdown_args)
end

#setOption(key, value) ⇒ Object



104
105
106
107
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 104

def setOption(key, value)
  send_setOption(key, value)
  recv_setOption()
end

#shutdownObject



185
186
187
# File 'lib/rb/jp/gen-rb/facebook_service.rb', line 185

def shutdown()
  send_shutdown()
end