public static final class LogAnalysisApp.RequestCounterHandler extends AbstractHttpServiceHandler
TimePartitionedFileSet| Constructor and Description |
|---|
LogAnalysisApp.RequestCounterHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
getRequestFilesetContents(HttpServiceRequest request,
HttpServiceResponder responder)
Handler which reads all the parts files from a given partition in
LogAnalysisApp.REQ_COUNT_STORE
TimePartitionedFileSet and send it as a string. |
void |
getRequestFilesetPartitions(HttpServiceRequest request,
HttpServiceResponder responder)
Handler which lists all the different time partitions available in the
LogAnalysisApp.REQ_COUNT_STORE
TimePartitionedFileSet |
configure, configure, destroy, getConfigurer, getContext, initialize, setProperties, useDatasets, useDatasetsusePlugin, usePlugin, usePluginClass, usePluginClassaddDatasetModule, addDatasetType, addStream, addStream, createDataset, createDataset, createDataset, createDatasetpublic LogAnalysisApp.RequestCounterHandler()
public void getRequestFilesetPartitions(HttpServiceRequest request, HttpServiceResponder responder)
LogAnalysisApp.REQ_COUNT_STORE
TimePartitionedFileSetpublic void getRequestFilesetContents(HttpServiceRequest request, HttpServiceResponder responder)
LogAnalysisApp.REQ_COUNT_STORE
TimePartitionedFileSet and send it as a string.
Note: We make an assumption here that the contents for partitions in the tpfs for this example is not very huge.
This method of serving contents is not ideal for large contents.Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.