[HBASE-10894] Adding mock implementations to the HTableInterface, HConnection and HFile.Reader which Appserver uses to avoid the dependency on the Interfaces.

Author: manukranthk

Summary: This will enable us to upgrade the interfaces without breaking Prometheus.

Test Plan: Simple code gen by eclipse

Reviewers: adela, liyintang

Reviewed By: adela

CC: hbase-eng@

Differential Revision: https://phabricator.fb.com/D1253204

Task ID: 3947783

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1584194 13f79535-47bb-0310-9956-ffa450edef68
[HBASE-10891] Catch Exception instead of IllegalArgument exception and set socks proxy.

Author: manukranthk

Summary: NullPointerException thrown by the HostAndPort.fromString() function. I was catching only IllegalArgumentException. Instead catching Exception will fix this case.

Test Plan: Ran TestFromClientSide

Reviewers: adela, gauravm

Reviewed By: gauravm

CC: hbase-eng@

Differential Revision: https://phabricator.fb.com/D1254156

Task ID: 4025730

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1584195 13f79535-47bb-0310-9956-ffa450edef68