[ 
https://issues.apache.org/jira/browse/SOLR-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696897#action_12696897
 ] 

Hoss Man commented on SOLR-1101:
--------------------------------

bq. A simple string may not be quite sufficient

sure ... no disagreement.

my point is that instead of a marker interface that the components implement 
(which would only allow one level of drill down) the marker interface could be 
on new objects put into the NamedList returned by the existing getStatistics() 
method -- when that interface is detected, show getLabel(), otherwise show 
toString().

the extended display (extrastats.jsp if you want, or some new option on 
stats.jsp) would be able to getDetails() on the object ... and any of those 
details might themselves implement StatsDetails to allow further drilldown.



> expose extra statistics like slow queries 
> ------------------------------------------
>
>                 Key: SOLR-1101
>                 URL: https://issues.apache.org/jira/browse/SOLR-1101
>             Project: Solr
>          Issue Type: New Feature
>          Components: web gui
>            Reporter: Noble Paul
>             Fix For: 1.5
>
>
> Solr Objects may want to expose extra information for diagnostics etc. These 
> information can be large and we may not wish to show it in the stats page 
> which can make it unwieldly. I propose an extension of the stats itself which 
> can be shown separately. 
> I wish to implement slow queries as a part of this.  There is a new interface 
> which can be implemented by components
> {code:java}
> public interface StatsDetails {
> public interface StatsDetails {
>   /**The details info is a Map of details name versus description. The 
> details name must
>    * return the details when the getDetails() method is invoked on the same 
> object.
>    * @return a map of details name vs the description. the description may be 
> used in a link text
>    */
>   public Map<String ,String> getDetailsInfo();
>   /**The details key should be known for this Object . 
>    * This key will may be obj=tained by invoking getDetailsInfo() 
>    * 
>    * @param detailsCommand
>    * @return
>    */
>   public NamedList getDetails(String detailsCommand);
> }
> {code}
> The stats.jsp can be enhanced to show these extra links .

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to