class Snowflake::Processor
Public Instance Methods
process_get_datacenter_id(seqid, iprot, oprot)
click to toggle source
# File lib/snowflake.rb, line 100 def process_get_datacenter_id(seqid, iprot, oprot) args = read_args(iprot, Get_datacenter_id_args) result = Get_datacenter_id_result.new() result.success = @handler.get_datacenter_id() write_result(result, oprot, 'get_datacenter_id', seqid) end
process_get_id(seqid, iprot, oprot)
click to toggle source
# File lib/snowflake.rb, line 93 def process_get_id(seqid, iprot, oprot) args = read_args(iprot, Get_id_args) result = Get_id_result.new() result.success = @handler.get_id(args.useragent) write_result(result, oprot, 'get_id', seqid) end
process_get_timestamp(seqid, iprot, oprot)
click to toggle source
# File lib/snowflake.rb, line 86 def process_get_timestamp(seqid, iprot, oprot) args = read_args(iprot, Get_timestamp_args) result = Get_timestamp_result.new() result.success = @handler.get_timestamp() write_result(result, oprot, 'get_timestamp', seqid) end
process_get_worker_id(seqid, iprot, oprot)
click to toggle source
# File lib/snowflake.rb, line 79 def process_get_worker_id(seqid, iprot, oprot) args = read_args(iprot, Get_worker_id_args) result = Get_worker_id_result.new() result.success = @handler.get_worker_id() write_result(result, oprot, 'get_worker_id', seqid) end