/vendor/gen-rb/fb303_types.rb

http://github.com/twitter/scribe · Ruby · 18 lines · 10 code · 3 blank · 5 comment · 0 complexity · 4f53586f5e92290336d42e5f02c231fa MD5 · raw file

  1. #
  2. # Autogenerated by Thrift
  3. #
  4. # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  5. #
  6. module Fb_status
  7. DEAD = 0
  8. STARTING = 1
  9. ALIVE = 2
  10. STOPPING = 3
  11. STOPPED = 4
  12. WARNING = 5
  13. VALUE_MAP = {0 => "DEAD", 1 => "STARTING", 2 => "ALIVE", 3 => "STOPPING", 4 => "STOPPED", 5 => "WARNING"}
  14. VALID_VALUES = Set.new([DEAD, STARTING, ALIVE, STOPPING, STOPPED, WARNING]).freeze
  15. end