public final class StreamFetchHandler
extends co.cask.http.AbstractHttpHandler
| Constructor and Description |
|---|
StreamFetchHandler(CConfiguration cConf,
StreamAdmin streamAdmin,
StreamMetaStore streamMetaStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
fetch(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String stream,
String start,
String end,
int limit)
Handler for the HTTP API
/streams/[stream_name]/events?start=[start_ts]&end=[end_ts]&limit=[event_limit] |
@Inject public StreamFetchHandler(CConfiguration cConf, StreamAdmin streamAdmin, StreamMetaStore streamMetaStore)
public void fetch(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String stream,
String start,
String end,
int limit)
throws Exception
/streams/[stream_name]/events?start=[start_ts]&end=[end_ts]&limit=[event_limit]
Responds with:
Response body is a JSON array of the StreamEvent object.
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.