| Constructor and Description |
|---|
LogHandler(LogReader logReader,
CConfiguration cConfig,
ProgramStore programStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
getLogs(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String appId,
String programType,
String programId,
long fromTimeSecsParam,
long toTimeSecsParam,
boolean escape,
String filterStr) |
void |
getRunIdLogs(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String appId,
String programType,
String programId,
String runId,
long fromTimeSecsParam,
long toTimeSecsParam,
boolean escape,
String filterStr) |
void |
next(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String appId,
String programType,
String programId,
int maxEvents,
String fromOffsetStr,
boolean escape,
String filterStr) |
void |
prev(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String appId,
String programType,
String programId,
int maxEvents,
String fromOffsetStr,
boolean escape,
String filterStr) |
void |
runIdNext(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String appId,
String programType,
String programId,
String runId,
int maxEvents,
String fromOffsetStr,
boolean escape,
String filterStr) |
void |
runIdPrev(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String namespaceId,
String appId,
String programType,
String programId,
String runId,
int maxEvents,
String fromOffsetStr,
boolean escape,
String filterStr) |
void |
sysList(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String componentId,
String serviceId,
long fromTimeSecsParam,
long toTimeSecsParam,
boolean escape,
String filterStr) |
void |
sysNext(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String componentId,
String serviceId,
int maxEvents,
String fromOffsetStr,
boolean escape,
String filterStr) |
void |
sysPrev(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String componentId,
String serviceId,
int maxEvents,
String fromOffsetStr,
boolean escape,
String filterStr) |
@Inject public LogHandler(LogReader logReader, CConfiguration cConfig, ProgramStore programStore)
@GET @Path(value="/namespaces/{namespace-id}/apps/{app-id}/{program-type}/{program-id}/logs") public void getLogs(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="namespace-id") String namespaceId, @PathParam(value="app-id") String appId, @PathParam(value="program-type") String programType, @PathParam(value="program-id") String programId, @QueryParam(value="start")@DefaultValue(value="-1") long fromTimeSecsParam, @QueryParam(value="stop")@DefaultValue(value="-1") long toTimeSecsParam, @QueryParam(value="escape")@DefaultValue(value="true") boolean escape, @QueryParam(value="filter")@DefaultValue(value="") String filterStr)
@GET @Path(value="/namespaces/{namespace-id}/apps/{app-id}/{program-type}/{program-id}/runs/{run-id}/logs") public void getRunIdLogs(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="namespace-id") String namespaceId, @PathParam(value="app-id") String appId, @PathParam(value="program-type") String programType, @PathParam(value="program-id") String programId, @PathParam(value="run-id") String runId, @QueryParam(value="start")@DefaultValue(value="-1") long fromTimeSecsParam, @QueryParam(value="stop")@DefaultValue(value="-1") long toTimeSecsParam, @QueryParam(value="escape")@DefaultValue(value="true") boolean escape, @QueryParam(value="filter")@DefaultValue(value="") String filterStr)
@GET @Path(value="/namespaces/{namespace-id}/apps/{app-id}/{program-type}/{program-id}/logs/next") public void next(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="namespace-id") String namespaceId, @PathParam(value="app-id") String appId, @PathParam(value="program-type") String programType, @PathParam(value="program-id") String programId, @QueryParam(value="max")@DefaultValue(value="50") int maxEvents, @QueryParam(value="fromOffset")@DefaultValue(value="") String fromOffsetStr, @QueryParam(value="escape")@DefaultValue(value="true") boolean escape, @QueryParam(value="filter")@DefaultValue(value="") String filterStr)
@GET @Path(value="/namespaces/{namespace-id}/apps/{app-id}/{program-type}/{program-id}/runs/{run-id}/logs/next") public void runIdNext(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="namespace-id") String namespaceId, @PathParam(value="app-id") String appId, @PathParam(value="program-type") String programType, @PathParam(value="program-id") String programId, @PathParam(value="run-id") String runId, @QueryParam(value="max")@DefaultValue(value="50") int maxEvents, @QueryParam(value="fromOffset")@DefaultValue(value="") String fromOffsetStr, @QueryParam(value="escape")@DefaultValue(value="true") boolean escape, @QueryParam(value="filter")@DefaultValue(value="") String filterStr)
@GET @Path(value="/namespaces/{namespace-id}/apps/{app-id}/{program-type}/{program-id}/logs/prev") public void prev(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="namespace-id") String namespaceId, @PathParam(value="app-id") String appId, @PathParam(value="program-type") String programType, @PathParam(value="program-id") String programId, @QueryParam(value="max")@DefaultValue(value="50") int maxEvents, @QueryParam(value="fromOffset")@DefaultValue(value="") String fromOffsetStr, @QueryParam(value="escape")@DefaultValue(value="true") boolean escape, @QueryParam(value="filter")@DefaultValue(value="") String filterStr)
@GET @Path(value="/namespaces/{namespace-id}/apps/{app-id}/{program-type}/{program-id}/runs/{run-id}/logs/prev") public void runIdPrev(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="namespace-id") String namespaceId, @PathParam(value="app-id") String appId, @PathParam(value="program-type") String programType, @PathParam(value="program-id") String programId, @PathParam(value="run-id") String runId, @QueryParam(value="max")@DefaultValue(value="50") int maxEvents, @QueryParam(value="fromOffset")@DefaultValue(value="") String fromOffsetStr, @QueryParam(value="escape")@DefaultValue(value="true") boolean escape, @QueryParam(value="filter")@DefaultValue(value="") String filterStr)
@GET @Path(value="/system/{component-id}/{service-id}/logs") public void sysList(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="component-id") String componentId, @PathParam(value="service-id") String serviceId, @QueryParam(value="start")@DefaultValue(value="-1") long fromTimeSecsParam, @QueryParam(value="stop")@DefaultValue(value="-1") long toTimeSecsParam, @QueryParam(value="escape")@DefaultValue(value="true") boolean escape, @QueryParam(value="filter")@DefaultValue(value="") String filterStr)
@GET @Path(value="/system/{component-id}/{service-id}/logs/next") public void sysNext(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="component-id") String componentId, @PathParam(value="service-id") String serviceId, @QueryParam(value="max")@DefaultValue(value="50") int maxEvents, @QueryParam(value="fromOffset")@DefaultValue(value="") String fromOffsetStr, @QueryParam(value="escape")@DefaultValue(value="true") boolean escape, @QueryParam(value="filter")@DefaultValue(value="") String filterStr)
@GET @Path(value="/system/{component-id}/{service-id}/logs/prev") public void sysPrev(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="component-id") String componentId, @PathParam(value="service-id") String serviceId, @QueryParam(value="max")@DefaultValue(value="50") int maxEvents, @QueryParam(value="fromOffset")@DefaultValue(value="") String fromOffsetStr, @QueryParam(value="escape")@DefaultValue(value="true") boolean escape, @QueryParam(value="filter")@DefaultValue(value="") String filterStr)
Copyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.