@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.
Constructor and Description |
---|
HttpProxyExample(org.apache.hadoop.conf.Configuration conf,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
join() |
static void |
main(String[] args) |
int |
port() |
void |
start() |
void |
stop() |
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
IOException
public static void main(String[] args) throws InterruptedException, ExecutionException
Copyright © 2007–2019 Cloudera. All rights reserved.