public class AnalyticsComponent extends SearchComponent
SolrInfoMBean.Category, SolrInfoMBean.Group
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_NAME |
standard_components
Constructor and Description |
---|
AnalyticsComponent() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Simple one or two line description
|
String |
getName()
Simple common usage name, e.g.
|
NamedList |
getStatistics()
Any statistics this instance would like to be publicly available via
the Solr Administration interface.
|
String |
getVersion()
Simple common usage version, e.g.
|
void |
prepare(ResponseBuilder rb)
Prepare the response.
|
void |
process(ResponseBuilder rb)
Process the request for this component
|
distributedProcess, finishStage, getCategory, getDocs, getSource, handleResponses, init, modifyRequest, setName
public static final String COMPONENT_NAME
public AnalyticsComponent()
public void prepare(ResponseBuilder rb) throws IOException
SearchComponent
SearchComponent.process(org.apache.solr.handler.component.ResponseBuilder)
method.
Called for every incoming request.
The place to do initialization that is request dependent.prepare
in class SearchComponent
rb
- The ResponseBuilder
IOException
- If there is a low-level I/O error.public void process(ResponseBuilder rb) throws IOException
SearchComponent
process
in class SearchComponent
rb
- The ResponseBuilder
IOException
- If there is a low-level I/O error.public String getName()
SolrInfoMBean
getName
in interface SolrInfoMBean
getName
in class SearchComponent
public String getDescription()
SolrInfoMBean
getDescription
in interface SolrInfoMBean
getDescription
in class SearchComponent
public String getVersion()
SolrInfoMBean
getVersion
in interface SolrInfoMBean
getVersion
in class SearchComponent
public NamedList getStatistics()
SolrInfoMBean
Any Object type may be stored in the list, but only the
toString()
representation will be used.
getStatistics
in interface SolrInfoMBean
getStatistics
in class SearchComponent