Github user blrunner commented on the pull request:
https://github.com/apache/tajo/pull/490#issuecomment-89733757
+1
Great! It looks good overall to me and I found that rest server response
successfully on my laptop as follows.
```
$ curl -XGET 'http://localhost:26880/rest/databases'
{"databases":["default","information_schema"]}
$ curl -XGET 'http://localhost:26880/rest/databases/default/tables'
[{"tableName":"customer","external":true},{"tableName":"lineitem","external":true},{"tableName":"nation","external":true},{"tableName":"orders","external":true},{"tableName":"part","external":true},{"tableName":"partsupp","external":true},{"tableName":"supplier","external":true}]
$ curl -XGET 'http://localhost:26880/rest/cluster'
{"workers":[{"connectionInfo":{"id":-2105400716,"host":"192.168.219.106","peerRpcPort":28091,"pullServerPort":64176,"queryMasterPort":28093,"clientPort":28092,"httpInfoPort":28080},"diskSlots":0.0,"cpuCoreSlots":1,"memoryMB":1024,"usedDiskSlots":0.0,"usedMemoryMB":0,"usedCpuCoreSlots":0,"maxHeap":932184064,"freeHeap":365067488,"totalHeap":458227712,"numRunningTasks":0,"numQueryMasterTasks":0,"lastHeartbeatTime":1428221077181}]}
```
I leaved some trivial comments and I found unused methods in
WorkerConnectionInfoResponse and WorkerResponse, too. Before you ship this,
please check my comments. :)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---