@Path(value="/hbase") @ApplicationScoped public class HbaseResource extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) org.apache.camel.ConsumerTemplate |
consumerTemplate |
(package private) org.apache.camel.ProducerTemplate |
producerTemplate |
| Constructor and Description |
|---|
HbaseResource() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.component.hbase.model.HBaseData |
get(String table) |
javax.ws.rs.core.Response |
put(String body,
String table,
String id,
String family,
String column) |
@Inject org.apache.camel.ProducerTemplate producerTemplate
@Inject org.apache.camel.ConsumerTemplate consumerTemplate
@Path(value="/get/{table}")
@GET
@Produces(value="application/json")
public org.apache.camel.component.hbase.model.HBaseData get(@PathParam(value="table")
String table)
@Path(value="/put/{table}/{id}/{family}/{column}")
@POST
@Produces(value="text/plain")
public javax.ws.rs.core.Response put(String body,
@PathParam(value="table")
String table,
@PathParam(value="id")
String id,
@PathParam(value="family")
String family,
@PathParam(value="column")
String column)
throws Exception
ExceptionCopyright © 2019–2020 The Apache Software Foundation. All rights reserved.