@InterfaceAudience.Private public class HttpProxyExample extends Object
AsyncTable to write a fully
asynchronous HTTP proxy server. The AsyncConnection will share the same event loop with
the HTTP server.
The request URL is:
http://<host>:<port>/<table>/<rowgt;/<family>:<qualifier>Use HTTP GET to fetch data, and use HTTP PUT to put data. Encode the value as the request content when doing PUT.
| 构造器和说明 |
|---|
HttpProxyExample(org.apache.hadoop.conf.Configuration conf,
int port) |
public HttpProxyExample(org.apache.hadoop.conf.Configuration conf,
int port)
public void start()
throws InterruptedException,
ExecutionException
public void join()
public int port()
public void stop()
throws IOException
IOExceptionpublic static void main(String[] args) throws InterruptedException, ExecutionException
Copyright © 2007–2020. All rights reserved.