jubatus/jubatus — pull request #616 by rimms (2014-01-15 12:12:51+00:00)
Title: Improve get_status

I imploved `get_status` method.

### Interface

* Not Changed

### Changed

* Don't return following keys in standalone mode
* interval_sec
* interval_count
* zk
* use_cht (Converted to string like `true` or `false`)
* Add following keys
* Key: type, Value: machine laerning type (e.g. `classifier`, `anomaly` ...)
* Key: loglevel, Value: Command-line argument or default value (Converted to string like `INFO`, `FATAL` ...)
* Key: logdir, Value: Command-line argument or `/dev/stderr` (It's default value)
* Key: configpath, Value:
* Standalone Mode: Command-line argument
* Distributed Mode: Node path in zookeeper
* Key: clock_time, Value: System clock time when receiving a request
* Key: uptime, Value: How long the process has been running (sec)
* Key: start_time, Value: System clock time when process started
* Key: pid, Value: Process ID
* Key: user, Value: User ID who started process
* Key: last_saved, Value: System clock time when saved model file at last
* Key: last_saved_path, Value: Model file path which was saved at last
* Key: last_loaded, Value: System clock time when loaded model file at last
* Key: last_saved_path, Value: Model file path which was loaded at last
* Followings are returned only in distributed mode
* Key: name, Value: Command-line argument
* Key: zookeeper_timeout, Value: Command-line argument or default valu
* Key: interconnect_timeout, Value: Command-line argument or default valu
* Key: connected_zookeeper, Value: Host and Port of zookeeper that process connected (e.g. `127.0.0.1_2181`)
* Key: join, Value: Command-line argument or default value (Converted to string like `true` or `false`)
* Key: mixer, Value: Command-line argument or default value
* Status of mixer

### example

In python, output of `pprint` is followings:
* https://gist.github.com/rimms/8434705

### TBD (I will create new issues)

* I want to change values of `xxxpath` to full-path.
* We should reconsider about status of storages.